gnome-desktop3/gnome-desktop3.spec

184 lines
7.5 KiB
RPMSpec
Raw Normal View History

2017-05-09 20:59:42 +00:00
%global gdk_pixbuf2_version 2.36.5
%global gtk3_version 3.3.6
%global gtk4_version 4.4.0
2017-06-12 13:11:38 +00:00
%global glib2_version 2.53.0
2018-03-11 13:47:33 +00:00
%global gsettings_desktop_schemas_version 3.27.0
%global po_package gnome-desktop-3.0
2010-06-21 08:17:58 +00:00
2021-02-10 09:34:55 +00:00
%global tarball_version %%(echo %{version} | tr '~' '.')
2022-03-14 08:05:31 +00:00
Name: gnome-desktop3
2022-07-15 10:07:44 +00:00
Version: 43~alpha
2022-03-02 15:30:27 +00:00
Release: %autorelease
Summary: Library with common API for various GNOME modules
2016-09-14 09:17:20 +00:00
License: GPLv2+ and LGPLv2+
2022-03-14 08:05:31 +00:00
URL: https://gitlab.gnome.org/GNOME/gnome-desktop
2022-07-15 10:07:44 +00:00
Source0: https://download.gnome.org/sources/gnome-desktop/43.alpha/gnome-desktop-%{tarball_version}.tar.xz
2011-05-02 18:39:19 +00:00
Source1: gnome-mimeapps.list
# Generated with:
# for i in `cat /home/hadess/Projects/jhbuild/totem/data/mime-type-list.txt | grep -v audio/flac | grep -v ^#` ; do if grep MimeType /home/hadess/Projects/jhbuild/rhythmbox/data/rhythmbox.desktop.in.in | grep -q "$i;" ; then echo "$i=org.gnome.Rhythmbox3.desktop;rhythmbox.desktop;org.gnome.Totem.desktop;" >> totem-defaults.list ; else echo "$i=org.gnome.Totem.desktop;" >> totem-defaults.list ; fi ; done ; for i in `cat /home/hadess/Projects/jhbuild/totem/data/uri-schemes-list.txt | grep -v ^#` ; do echo "x-scheme-handler/$i=org.gnome.Totem.desktop;" >> totem-defaults.list ; done
Source2: totem-defaults.list
# Generated with:
# for i in `cat /home/hadess/Projects/jhbuild/file-roller/data/supported-mime-types | sed 's/;//g'` application/x-source-rpm ; do if grep MimeType /usr/share/applications/org.gnome.Nautilus.desktop | grep -q "$i;" ; then echo "$i=org.gnome.Nautilus.desktop;org.gnome.FileRoller.desktop;" >> file-roller-defaults.list ; elif ! `grep -q $i gnome-mimeapps.list` ; then echo $i=org.gnome.FileRoller.desktop\; >> file-roller-defaults.list ; fi ; done && for i in `grep MimeType= /usr/share/applications/org.gnome.Nautilus.desktop | sed 's/MimeType=//' | sed 's/;/ /g'` ; do if ! `grep -q $i file-roller-defaults.list || grep -q $i gnome-mimeapps.list` ; then echo "missing handler $i" ; fi ; done
Source3: file-roller-defaults.list
# Generated with:
# for i in `grep MimeType= /usr/share/applications/org.gnome.eog.desktop | sed 's/MimeType=//' | sed 's/;/ /g'` ; do echo $i=org.gnome.eog.desktop\; >> eog-defaults.list ; done
Source4: eog-defaults.list
# Generated with:
# for i in `grep MimeType= /usr/share/applications/org.gnome.Evince.desktop | sed 's/MimeType=//' | sed 's/;/ /g'` ; do echo $i=org.gnome.Evince.desktop\; >> evince-defaults.list ; done
Source5: evince-defaults.list
# https://fedoraproject.org/wiki/Changes/Enhanced_Inscript_as_default_Indic_IM
Patch0: make-inscript2-default-for-indic-languages.patch
BuildRequires: gcc
BuildRequires: gettext
BuildRequires: gtk-doc
BuildRequires: itstool
BuildRequires: meson
2015-10-28 09:06:13 +00:00
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= %{gdk_pixbuf2_version}
BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version}
2017-06-12 13:12:40 +00:00
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gsettings-desktop-schemas) >= %{gsettings_desktop_schemas_version}
BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk3_version}
BuildRequires: pkgconfig(gtk4) >= %{gtk4_version}
BuildRequires: pkgconfig(iso-codes)
2017-09-07 07:21:18 +00:00
BuildRequires: pkgconfig(libseccomp)
2016-07-26 13:59:19 +00:00
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(xkeyboard-config)
# For temporary ABI compat
BuildRequires: gnome-desktop3
2010-06-21 08:17:58 +00:00
Conflicts: shared-mime-info < 2.0-4
Requires: shared-mime-info
%if !0%{?flatpak}
2017-09-07 07:21:18 +00:00
Requires: bubblewrap
%endif
2015-10-28 09:06:13 +00:00
Requires: gdk-pixbuf2%{?_isa} >= %{gdk_pixbuf2_version}
2017-06-12 13:12:40 +00:00
Requires: glib2%{?_isa} >= %{glib2_version}
# needed for GnomeWallClock
Requires: gsettings-desktop-schemas >= %{gsettings_desktop_schemas_version}
2015-10-28 09:06:13 +00:00
# GnomeBGSlideShow API change breaks older gnome-shell versions
Conflicts: gnome-shell < 3.33.4
2010-06-21 08:17:58 +00:00
%description
gnome-desktop3 contains the libgnome-desktop library as well as a data
file that exports the "GNOME" version to the Settings Details panel.
2010-06-21 08:17:58 +00:00
The libgnome-desktop library provides API shared by several applications
on the desktop, but that cannot live in the platform for various
reasons. There is no API or ABI guarantee, although we are doing our
best to provide stability. Documentation for the API is available with
gtk-doc.
2010-06-21 08:17:58 +00:00
%package devel
Summary: Libraries and headers for %{name}
2010-06-21 08:17:58 +00:00
License: LGPLv2+
2014-04-16 11:40:19 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
2010-06-21 08:17:58 +00:00
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
2010-06-21 08:17:58 +00:00
%package -n gnome-desktop4
Summary: Library with common API for various GNOME modules
License: GPLv2+ and LGPLv2+
# Depend on base package for translations, help, version and mimeapps.
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n gnome-desktop4
gnome-desktop4 contains the libgnome-desktop library.
The libgnome-desktop library provides API shared by several applications
on the desktop, but that cannot live in the platform for various
reasons. There is no API or ABI guarantee, although we are doing our
best to provide stability.
%package -n gnome-desktop4-devel
Summary: Libraries and headers for gnome-desktop4
License: LGPLv2+
Requires: gnome-desktop4%{?_isa} = %{version}-%{release}
%description -n gnome-desktop4-devel
The gnome-desktop4-devel package contains libraries and header files for
developing applications that use gnome-desktop4.
2014-11-12 11:45:17 +00:00
%package tests
Summary: Tests for the %{name} package
2014-11-12 11:45:17 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tests
The %{name}-tests package contains tests that can be used to verify
the functionality of the installed %{name} package.
2014-11-12 11:45:17 +00:00
2010-06-21 08:17:58 +00:00
%prep
2021-02-10 09:34:55 +00:00
%autosetup -p1 -n gnome-desktop-%{tarball_version}
2010-06-21 08:17:58 +00:00
%build
%meson -Dgtk_doc=true -Dinstalled_tests=true
%meson_build
2010-06-21 08:17:58 +00:00
%install
%meson_install
2010-06-21 08:17:58 +00:00
# For temporary ABI compat
cp -a %{_libdir}/libgnome-desktop-3.so.19{,.*} $RPM_BUILD_ROOT%{_libdir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome
cp -a %{_datadir}/gnome/gnome-version.xml $RPM_BUILD_ROOT%{_datadir}/gnome/
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
install -m 644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE2 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE3 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE4 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE5 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
2010-06-21 08:17:58 +00:00
%find_lang %{po_package} --all-name --with-gnome
%files -f %{po_package}.lang
2021-02-10 09:34:55 +00:00
%doc AUTHORS NEWS README.md
%license COPYING COPYING.LIB
%{_datadir}/gnome/gnome-version.xml
%{_datadir}/applications/gnome-mimeapps.list
2010-06-21 08:17:58 +00:00
# LGPL
%{_libdir}/libgnome-desktop-3.so.19{,.*}
2022-07-15 10:07:44 +00:00
%{_libdir}/libgnome-desktop-3.so.20{,.*}
2011-01-28 16:40:45 +00:00
%{_libdir}/girepository-1.0/GnomeDesktop-3.0.typelib
%{_libexecdir}/gnome-desktop-debug/
2010-06-21 08:17:58 +00:00
%files devel
%{_libdir}/libgnome-desktop-3.so
%{_libdir}/pkgconfig/gnome-desktop-3.0.pc
%{_includedir}/gnome-desktop-3.0
2011-01-28 16:40:45 +00:00
%{_datadir}/gir-1.0/GnomeDesktop-3.0.gir
%dir %{_datadir}/gtk-doc/
%dir %{_datadir}/gtk-doc/html/
2010-06-21 08:17:58 +00:00
%doc %{_datadir}/gtk-doc/html/gnome-desktop3/
%files -n gnome-desktop4
%doc AUTHORS NEWS README.md
%license COPYING COPYING.LIB
# LGPL
2022-07-15 10:07:44 +00:00
%{_libdir}/libgnome-bg-4.so.2{,.*}
%{_libdir}/libgnome-desktop-4.so.2{,.*}
%{_libdir}/libgnome-rr-4.so.2{,.*}
%{_libdir}/girepository-1.0/Gnome*-4.0.typelib
%files -n gnome-desktop4-devel
%{_libdir}/libgnome-*-4.so
%{_libdir}/pkgconfig/gnome-*-4.pc
%{_includedir}/gnome-desktop-4.0
%{_datadir}/gir-1.0/Gnome*-4.0.gir
2014-11-12 11:45:17 +00:00
%files tests
%{_libexecdir}/installed-tests/gnome-desktop
%{_datadir}/installed-tests
2010-06-21 08:17:58 +00:00
%changelog
2022-03-02 15:30:27 +00:00
%autochangelog