2023-02-01 10:23:20 +08:00
|
|
|
%global glib2_version 2.58
|
2022-06-09 10:44:08 +08:00
|
|
|
%global colord_version 1.4.5
|
2023-02-01 10:23:20 +08:00
|
|
|
%global geocode_glib_version 3.26.3
|
2022-06-09 10:44:08 +08:00
|
|
|
%global gnome_desktop_version 3.37.1
|
2023-02-01 10:23:20 +08:00
|
|
|
%global gsettings_desktop_schemas_version 42
|
2022-06-09 10:44:08 +08:00
|
|
|
%global gtk3_version 3.15.3
|
|
|
|
|
%global geoclue_version 2.3.1
|
|
|
|
|
|
|
|
|
|
%global tarball_version %%(echo %{version} | tr '~' '.')
|
|
|
|
|
%global major_version %%(echo %{version} | cut -f 1 -d '~' | cut -f 1 -d '.')
|
|
|
|
|
|
2019-11-30 17:27:35 +08:00
|
|
|
Name: gnome-settings-daemon
|
2023-02-01 10:23:20 +08:00
|
|
|
Version: 43.0
|
|
|
|
|
Release: 1
|
|
|
|
|
Summary: The daemon sharing settings from GNOME to GTK+/KDE applications
|
2019-11-30 17:27:35 +08:00
|
|
|
License: GPLv2+
|
2023-02-01 10:23:20 +08:00
|
|
|
URL: https://gitlab.gnome.org/GNOME/gnome-settings-daemon
|
2022-06-09 10:44:08 +08:00
|
|
|
Source0: https://download.gnome.org/sources/%{name}/%{major_version}/%{name}-%{tarball_version}.tar.xz
|
2019-11-30 17:27:35 +08:00
|
|
|
Source1: org.gnome.settings-daemon.plugins.power.gschema.override
|
|
|
|
|
|
2023-02-01 10:23:20 +08:00
|
|
|
# Backported from upstream
|
|
|
|
|
# https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/309
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2128423
|
|
|
|
|
Patch0: 309.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: cups-devel gcc gettext meson >= 0.49.0 perl-interpreter pkgconfig(alsa)
|
2022-06-09 10:44:08 +08:00
|
|
|
BuildRequires: pkgconfig(colord) >= %{colord_version} pkgconfig(fontconfig) pkgconfig(geoclue-2.0) >= %{geoclue_version}
|
2023-02-01 10:23:20 +08:00
|
|
|
BuildRequires: pkgconfig(geocode-glib-2.0) >= %{geocode_glib_version} pkgconfig(glib-2.0) >= %{glib2_version}
|
2022-06-09 10:44:08 +08:00
|
|
|
BuildRequires: pkgconfig(gnome-desktop-3.0) >= %{gnome_desktop_version} pkgconfig(gsettings-desktop-schemas) >= %{gsettings_desktop_schemas_version}
|
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk3_version} pkgconfig(gudev-1.0) pkgconfig(gweather4)
|
2019-11-30 17:27:35 +08:00
|
|
|
BuildRequires: pkgconfig(lcms2) >= 2.2 pkgconfig(libcanberra-gtk3) pkgconfig(libgeoclue-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(libnm) pkgconfig(libnotify) pkgconfig(libpulse) pkgconfig(libpulse-mainloop-glib)
|
|
|
|
|
BuildRequires: pkgconfig(librsvg-2.0) pkgconfig(nss) pkgconfig(polkit-gobject-1) pkgconfig(upower-glib)
|
|
|
|
|
BuildRequires: pkgconfig(x11) pkgconfig(xi) pkgconfig(xtst) pkgconfig(wayland-client)
|
2021-09-09 16:04:07 +08:00
|
|
|
BuildRequires: pkgconfig(libwacom) >= 0.7 pkgconfig(xorg-wacom) pkgconfig(gcr-base-3) pkgconfig(mm-glib) chrpath
|
2019-11-30 17:27:35 +08:00
|
|
|
|
2023-02-01 10:23:20 +08:00
|
|
|
Requires: colord >= %{colord_version} geoclue2 >= %{geoclue_version} geocode-glib2 >= %{geocode_glib_version} glib2 >= %{glib2_version}
|
2022-06-09 10:44:08 +08:00
|
|
|
Requires: gnome-desktop3 >= %{gnome_desktop_version} gsettings-desktop-schemas >= %{gsettings_desktop_schemas_version}
|
|
|
|
|
Requires: gtk3 >= %{gtk3_version} iio-sensor-proxy pkgconfig(gweather4)
|
2019-11-30 17:27:35 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The GNOME Settings Daemon is responsible for setting various parameters of a
|
|
|
|
|
GNOME Session and the applications that run under it.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
gnome-settings-daemon-devel provides static libraries,head files,test cases
|
|
|
|
|
and other related development files of gnome-settings-daemon.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
2023-02-01 10:23:20 +08:00
|
|
|
sed -i '14s/false/true/' meson_options.txt
|
2019-11-30 17:27:35 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%meson
|
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
|
2022-06-09 10:44:08 +08:00
|
|
|
install -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas
|
2019-11-30 17:27:35 +08:00
|
|
|
|
|
|
|
|
%find_lang %{name} --with-gnome
|
|
|
|
|
|
|
|
|
|
install -d $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-3.0/gtk-modules
|
|
|
|
|
|
2021-09-09 16:04:07 +08:00
|
|
|
chrpath -d %{buildroot}%{_libexecdir}/*
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
2023-02-01 10:23:20 +08:00
|
|
|
echo "%{_libdir}/gnome-settings-daemon-43" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
2021-09-09 16:04:07 +08:00
|
|
|
|
|
|
|
|
%post
|
2023-02-01 10:23:20 +08:00
|
|
|
%systemd_user_post %{systemd_units}
|
2021-09-09 16:04:07 +08:00
|
|
|
|
2023-02-01 10:23:20 +08:00
|
|
|
%preun
|
|
|
|
|
%systemd_user_preun %{systemd_units}
|
2021-09-09 16:04:07 +08:00
|
|
|
|
2019-11-30 17:27:35 +08:00
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%license COPYING
|
2023-02-01 10:23:20 +08:00
|
|
|
%doc AUTHORS NEWS README
|
2019-11-30 17:27:35 +08:00
|
|
|
|
2021-05-26 20:38:32 +08:00
|
|
|
%{_libexecdir}/gsd-*
|
2019-11-30 17:27:35 +08:00
|
|
|
%{_sysconfdir}/xdg/autostart/*
|
2021-05-26 20:38:32 +08:00
|
|
|
%{_sysconfdir}/xdg/Xwayland-session.d/00-xrdb
|
2023-02-01 10:23:20 +08:00
|
|
|
%{_userunitdir}/
|
2019-11-30 17:27:35 +08:00
|
|
|
%{_datadir}/glib-2.0/schemas/*
|
|
|
|
|
%{_datadir}/polkit-1/actions/*
|
2022-06-09 10:44:08 +08:00
|
|
|
%{_libdir}/gnome-settings-daemon-%{major_version}/libgsd.so
|
2021-09-09 16:04:07 +08:00
|
|
|
%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
2023-02-01 10:23:20 +08:00
|
|
|
%{_udevrulesdir}/61-gnome-settings-daemon-rfkill.rules
|
2019-11-30 17:27:35 +08:00
|
|
|
|
|
|
|
|
/usr/lib/udev/rules.d/*.rules
|
|
|
|
|
%{_datadir}/gnome-settings-daemon/
|
|
|
|
|
%{_datadir}/GConf/gsettings/gnome-settings-daemon.convert
|
|
|
|
|
|
|
|
|
|
%files devel
|
2022-06-09 10:44:08 +08:00
|
|
|
%{_includedir}/gnome-settings-daemon-%{major_version}
|
2019-11-30 17:27:35 +08:00
|
|
|
%{_libdir}/pkgconfig/gnome-settings-daemon.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-02-01 10:23:20 +08:00
|
|
|
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 43.0-1
|
|
|
|
|
- Update to 43.0
|
|
|
|
|
|
2022-08-25 15:58:28 +08:00
|
|
|
* Mon Jun 6 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 42.2-2
|
|
|
|
|
- modify the libgsd.so search path to /usr/lib64/gnome-settings-daemon-42
|
|
|
|
|
|
2022-06-09 10:44:08 +08:00
|
|
|
* Mon Jun 6 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 42.2-1
|
|
|
|
|
- Upgrade to 42.2
|
|
|
|
|
|
2021-09-09 16:04:07 +08:00
|
|
|
* Thu Sep 09 2021 lingsheng <lingsheng@huawei.com> - 3.38.2-2
|
|
|
|
|
- Delete rpath setting
|
|
|
|
|
|
2021-05-26 20:38:32 +08:00
|
|
|
* Mon May 24 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 3.38.2-1
|
|
|
|
|
- Upgrade to 3.38.2
|
|
|
|
|
- Update Version, Release, stage 'files'
|
|
|
|
|
|
2019-11-30 17:27:35 +08:00
|
|
|
* Fri Nov 29 2019 zhouyihang <zhouyihang1@huawei.com> - 3.30.1.2-2
|
|
|
|
|
- Package init
|