2017-05-09 20:59:42 +00:00
%global gdk_pixbuf2_version 2.36.5
2015-02-16 15:03:47 +00:00
%global gtk3_version 3.3.6
2022-01-12 11:35:44 +00:00
%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
2015-02-16 15:03:47 +00:00
%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
2023-02-15 22:14:51 +00:00
Version : 44~beta
2022-03-02 15:30:27 +00:00
Release : %autorelease
2019-02-05 22:51:26 +00:00
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
2020-08-25 14:45:13 +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
2021-08-05 08:12:56 +00:00
# https://fedoraproject.org/wiki/Changes/Enhanced_Inscript_as_default_Indic_IM
Patch0 : make-inscript2-default-for-indic-languages.patch
2019-01-09 12:17:50 +00:00
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}
2015-02-16 15:03:47 +00:00
BuildRequires : pkgconfig(gio-2.0) >= %{glib2_version}
2017-06-12 13:12:40 +00:00
BuildRequires : pkgconfig(glib-2.0) >= %{glib2_version}
2015-02-16 15:03:47 +00:00
BuildRequires : pkgconfig(gobject-introspection-1.0)
BuildRequires : pkgconfig(gsettings-desktop-schemas) >= %{gsettings_desktop_schemas_version}
BuildRequires : pkgconfig(gtk+-3.0) >= %{gtk3_version}
2022-01-12 11:35:44 +00:00
BuildRequires : pkgconfig(gtk4) >= %{gtk4_version}
2015-02-16 15:03:47 +00:00
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)
2015-02-16 15:03:47 +00:00
BuildRequires : pkgconfig(xkeyboard-config)
2010-06-21 08:17:58 +00:00
2020-08-25 14:45:13 +00:00
Conflicts : shared-mime-info < 2.0-4
Requires : shared-mime-info
2018-09-28 14:10:17 +00:00
%if !0%{?flatpak}
2017-09-07 07:21:18 +00:00
Requires : bubblewrap
2018-09-28 14:10:17 +00:00
%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}
2016-08-18 12:55:15 +00:00
# needed for GnomeWallClock
Requires : gsettings-desktop-schemas >= %{gsettings_desktop_schemas_version}
2015-10-28 09:06:13 +00:00
2019-07-27 01:27:37 +00:00
# GnomeBGSlideShow API change breaks older gnome-shell versions
Conflicts : gnome-shell < 3.33.4
2014-11-16 15:06:08 +00:00
2010-06-21 08:17:58 +00:00
%description
2022-01-12 11:35:44 +00:00
gnome-desktop3 contains the libgnome-desktop library as well as a data
2019-02-05 22:51:26 +00:00
file that exports the " G N O M E " version to the Settings Details panel.
2010-06-21 08:17:58 +00:00
2019-02-05 22:51:26 +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
2014-11-12 16:05:38 +00:00
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
2019-02-05 22:51:26 +00:00
The %{name} -devel package contains libraries and header files for
developing applications that use %{name} .
2010-06-21 08:17:58 +00:00
2022-01-12 11:35:44 +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
2014-11-12 16:05:38 +00:00
Summary : Tests for the %{name} package
2014-11-12 11:45:17 +00:00
Requires : %{name} %{?_isa} = %{version} -%{release}
%description tests
2014-11-12 16:05:38 +00:00
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
2019-01-09 12:17:50 +00:00
%meson -Dgtk_doc=true -Dinstalled_tests=true
%meson_build
2010-06-21 08:17:58 +00:00
%install
2019-01-09 12:17:50 +00:00
%meson_install
2010-06-21 08:17:58 +00:00
2020-08-25 14:45:13 +00:00
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
2015-02-16 14:57:59 +00:00
%license COPYING COPYING.LIB
2020-08-25 14:45:13 +00:00
%{_datadir} /applications/gnome-mimeapps.list
2010-06-21 08:17:58 +00:00
# LGPL
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
2021-04-01 13:18:14 +00:00
%{_libexecdir} /gnome-desktop-debug/
2010-06-21 08:17:58 +00:00
%files devel
2022-01-12 11:35:44 +00:00
%{_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
2012-10-17 16:57:25 +00:00
%dir %{_datadir} /gtk-doc/
%dir %{_datadir} /gtk-doc/html/
2010-06-21 08:17:58 +00:00
%doc %{_datadir} /gtk-doc/html/gnome-desktop3/
2022-01-12 11:35:44 +00:00
%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{,.*}
2022-01-12 11:35:44 +00:00
%{_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