2024-02-16 04:22:13 +00:00
|
|
|
%define gcr_version 4.1.0
|
2024-05-13 07:22:14 +00:00
|
|
|
%define gnome_online_accounts_version 3.50.0
|
2024-01-22 13:17:41 +00:00
|
|
|
%define glib2_version 2.76.6
|
2023-08-28 20:41:03 +00:00
|
|
|
%define gnome_desktop_version 44.0-7
|
2022-02-16 05:51:31 +00:00
|
|
|
%define gsd_version 41.0
|
2024-07-17 07:59:14 +00:00
|
|
|
%define gsettings_desktop_schemas_version 46~beta
|
2019-01-09 18:35:01 +00:00
|
|
|
%define upower_version 0.99.8
|
2024-07-16 14:13:50 +00:00
|
|
|
%define gtk4_version 4.15.2
|
2022-02-16 05:51:31 +00:00
|
|
|
%define gnome_bluetooth_version 42~alpha
|
2024-07-16 14:13:50 +00:00
|
|
|
%define libadwaita_version 1.6~alpha
|
2023-07-03 10:01:09 +00:00
|
|
|
%define nm_version 1.24.0
|
2018-04-10 15:29:45 +00:00
|
|
|
|
2021-02-21 20:39:46 +00:00
|
|
|
%global tarball_version %%(echo %{version} | tr '~' '.')
|
|
|
|
|
2023-06-22 12:54:59 +00:00
|
|
|
# Disable parental control for RHEL builds
|
|
|
|
%bcond malcontent %[!0%{?rhel}]
|
|
|
|
|
2018-04-10 15:29:45 +00:00
|
|
|
Name: gnome-control-center
|
2024-11-26 11:55:01 +00:00
|
|
|
Version: 47.2
|
2022-02-23 22:50:56 +00:00
|
|
|
Release: %autorelease
|
2018-04-10 15:29:45 +00:00
|
|
|
Summary: Utilities to configure the GNOME desktop
|
|
|
|
|
2023-03-07 12:27:47 +00:00
|
|
|
License: GPL-2.0-or-later AND CC0-1.0
|
2022-04-27 08:29:52 +00:00
|
|
|
URL: https://gitlab.gnome.org/GNOME/gnome-control-center/
|
2024-01-22 13:17:41 +00:00
|
|
|
Source0: https://download.gnome.org/sources/%{name}/46/%{name}-%{tarball_version}.tar.xz
|
2023-08-28 20:41:03 +00:00
|
|
|
|
2024-08-12 08:28:45 +00:00
|
|
|
# https://issues.redhat.com/browse/RHEL-59200
|
|
|
|
Patch0: power-honor-sleep-inactive-ac-type-server-setting.patch
|
|
|
|
|
2018-04-10 15:29:45 +00:00
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: docbook-style-xsl libxslt
|
2019-02-07 09:54:18 +00:00
|
|
|
BuildRequires: gcc
|
2018-04-10 15:29:45 +00:00
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: pkgconfig(accountsservice)
|
|
|
|
BuildRequires: pkgconfig(colord)
|
2022-02-16 05:51:31 +00:00
|
|
|
BuildRequires: pkgconfig(colord-gtk4)
|
2022-04-27 08:29:52 +00:00
|
|
|
BuildRequires: pkgconfig(cups)
|
2024-02-16 04:22:13 +00:00
|
|
|
BuildRequires: pkgconfig(gcr-4) >= %{gcr_version}
|
2018-04-10 15:29:45 +00:00
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
|
|
|
BuildRequires: pkgconfig(gdk-wayland-3.0)
|
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version}
|
2022-02-16 05:51:31 +00:00
|
|
|
BuildRequires: pkgconfig(gnome-desktop-4) >= %{gnome_desktop_version}
|
2018-04-10 15:29:45 +00:00
|
|
|
BuildRequires: pkgconfig(gnome-settings-daemon) >= %{gsd_version}
|
|
|
|
BuildRequires: pkgconfig(goa-1.0) >= %{gnome_online_accounts_version}
|
|
|
|
BuildRequires: pkgconfig(goa-backend-1.0)
|
|
|
|
BuildRequires: pkgconfig(gsettings-desktop-schemas) >= %{gsettings_desktop_schemas_version}
|
2019-02-07 10:11:46 +00:00
|
|
|
BuildRequires: pkgconfig(gsound)
|
2022-02-16 05:51:31 +00:00
|
|
|
BuildRequires: pkgconfig(gtk4) >= %{gtk4_version}
|
2018-04-10 15:29:45 +00:00
|
|
|
BuildRequires: pkgconfig(gudev-1.0)
|
|
|
|
BuildRequires: pkgconfig(ibus-1.0)
|
2022-02-16 05:51:31 +00:00
|
|
|
BuildRequires: pkgconfig(libadwaita-1) >= %{libadwaita_version}
|
2018-04-10 15:29:45 +00:00
|
|
|
BuildRequires: pkgconfig(libgtop-2.0)
|
2020-09-19 14:10:32 +00:00
|
|
|
BuildRequires: pkgconfig(libnm) >= %{nm_version}
|
2022-02-16 05:51:31 +00:00
|
|
|
BuildRequires: pkgconfig(libnma-gtk4)
|
2018-04-10 15:29:45 +00:00
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
BuildRequires: pkgconfig(libpulse-mainloop-glib)
|
2018-08-12 20:15:00 +00:00
|
|
|
BuildRequires: pkgconfig(libsecret-1)
|
2024-01-22 13:17:41 +00:00
|
|
|
BuildRequires: pkgconfig(libsoup-3.0)
|
2018-04-10 15:29:45 +00:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2023-06-22 12:54:59 +00:00
|
|
|
%if %{with malcontent}
|
2021-06-01 10:51:02 +00:00
|
|
|
BuildRequires: pkgconfig(malcontent-0)
|
2023-06-22 12:54:59 +00:00
|
|
|
%endif
|
2018-04-10 15:29:45 +00:00
|
|
|
BuildRequires: pkgconfig(mm-glib)
|
|
|
|
BuildRequires: pkgconfig(polkit-gobject-1)
|
|
|
|
BuildRequires: pkgconfig(pwquality)
|
|
|
|
BuildRequires: pkgconfig(smbclient)
|
2023-09-19 11:40:14 +00:00
|
|
|
BuildRequires: pkgconfig(tecla)
|
2022-04-27 08:29:52 +00:00
|
|
|
BuildRequires: pkgconfig(udisks2)
|
2018-05-17 13:12:02 +00:00
|
|
|
BuildRequires: pkgconfig(upower-glib) >= %{upower_version}
|
2018-04-10 15:29:45 +00:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xi)
|
|
|
|
%ifnarch s390 s390x
|
2022-02-16 05:51:31 +00:00
|
|
|
BuildRequires: pkgconfig(gnome-bluetooth-3.0) >= %{gnome_bluetooth_version}
|
2018-04-10 15:29:45 +00:00
|
|
|
BuildRequires: pkgconfig(libwacom)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Versioned library deps
|
2022-02-16 05:51:31 +00:00
|
|
|
Requires: libadwaita%{?_isa} >= %{libadwaita_version}
|
2018-04-10 15:29:45 +00:00
|
|
|
Requires: glib2%{?_isa} >= %{glib2_version}
|
2022-02-16 05:51:31 +00:00
|
|
|
Requires: gnome-desktop4%{?_isa} >= %{gnome_desktop_version}
|
2018-04-10 15:29:45 +00:00
|
|
|
Requires: gnome-online-accounts%{?_isa} >= %{gnome_online_accounts_version}
|
|
|
|
Requires: gnome-settings-daemon%{?_isa} >= %{gsd_version}
|
|
|
|
Requires: gsettings-desktop-schemas%{?_isa} >= %{gsettings_desktop_schemas_version}
|
2022-02-16 05:51:31 +00:00
|
|
|
Requires: gtk4%{?_isa} >= %{gtk4_version}
|
2018-05-17 13:12:02 +00:00
|
|
|
Requires: upower%{?_isa} >= %{upower_version}
|
2018-04-10 15:29:45 +00:00
|
|
|
%ifnarch s390 s390x
|
2023-02-27 23:15:23 +00:00
|
|
|
Recommends: gnome-bluetooth%{?_isa} >= 1:%{gnome_bluetooth_version}
|
2018-04-10 15:29:45 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
Requires: %{name}-filesystem = %{version}-%{release}
|
|
|
|
# For user accounts
|
|
|
|
Requires: accountsservice
|
|
|
|
Requires: alsa-lib
|
2018-04-13 14:49:57 +00:00
|
|
|
# For the thunderbolt panel
|
2018-11-17 15:51:18 +00:00
|
|
|
Recommends: bolt
|
2018-04-10 15:29:45 +00:00
|
|
|
# For the color panel
|
|
|
|
Requires: colord
|
|
|
|
# For the printers panel
|
|
|
|
Requires: cups-pk-helper
|
2018-10-11 12:59:42 +00:00
|
|
|
Requires: dbus
|
2018-04-10 15:29:45 +00:00
|
|
|
# For the user languages
|
|
|
|
Requires: iso-codes
|
2023-06-22 12:54:59 +00:00
|
|
|
%if %{with malcontent}
|
2021-08-24 17:28:18 +00:00
|
|
|
# For parental controls support
|
|
|
|
Requires: malcontent
|
2022-05-04 10:16:22 +00:00
|
|
|
Recommends: malcontent-control
|
2023-06-22 12:54:59 +00:00
|
|
|
%endif
|
2020-10-13 17:08:05 +00:00
|
|
|
# For the network panel
|
2018-05-23 09:14:55 +00:00
|
|
|
Recommends: NetworkManager-wifi
|
2020-10-13 17:08:05 +00:00
|
|
|
Recommends: nm-connection-editor
|
2020-08-04 14:49:52 +00:00
|
|
|
# For Show Details in the color panel
|
|
|
|
Recommends: gnome-color-manager
|
2018-04-10 15:29:45 +00:00
|
|
|
# For the sharing panel
|
2018-11-20 13:55:32 +00:00
|
|
|
Recommends: gnome-remote-desktop
|
|
|
|
%if 0%{?fedora}
|
2018-11-17 15:55:33 +00:00
|
|
|
Recommends: rygel
|
2018-04-10 15:29:45 +00:00
|
|
|
%endif
|
|
|
|
# For the info/details panel
|
2021-03-30 15:35:08 +00:00
|
|
|
Recommends: switcheroo-control
|
2018-04-10 15:29:45 +00:00
|
|
|
# For the keyboard panel
|
2023-08-07 19:32:00 +00:00
|
|
|
Requires: /usr/bin/tecla
|
2021-04-02 09:51:59 +00:00
|
|
|
%if 0%{?fedora} >= 35 || 0%{?rhel} >= 9
|
|
|
|
# For the power panel
|
|
|
|
Recommends: power-profiles-daemon
|
|
|
|
%endif
|
2018-04-10 15:29:45 +00:00
|
|
|
|
|
|
|
# Renamed in F28
|
|
|
|
Provides: control-center = 1:%{version}-%{release}
|
|
|
|
Provides: control-center%{?_isa} = 1:%{version}-%{release}
|
|
|
|
Obsoletes: control-center < 1:%{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains configuration utilities for the GNOME desktop, which
|
|
|
|
allow to configure accessibility options, desktop fonts, keyboard and mouse
|
|
|
|
properties, sound setup, desktop theme and background, user interface
|
|
|
|
properties, screen resolution, and other settings.
|
|
|
|
|
|
|
|
%package filesystem
|
|
|
|
Summary: GNOME Control Center directories
|
|
|
|
# NOTE: this is an "inverse dep" subpackage. It gets pulled in
|
|
|
|
# NOTE: by the main package and MUST not depend on the main package
|
|
|
|
BuildArch: noarch
|
|
|
|
# Renamed in F28
|
|
|
|
Provides: control-center-filesystem = 1:%{version}-%{release}
|
|
|
|
Obsoletes: control-center-filesystem < 1:%{version}-%{release}
|
|
|
|
|
|
|
|
%description filesystem
|
|
|
|
The GNOME control-center provides a number of extension points
|
|
|
|
for applications. This package contains directories where applications
|
|
|
|
can install configuration files that are picked up by the control-center
|
|
|
|
utilities.
|
|
|
|
|
|
|
|
%prep
|
2022-07-28 12:49:34 +00:00
|
|
|
%autosetup -p1 -n %{name}-%{tarball_version}
|
2018-04-10 15:29:45 +00:00
|
|
|
|
|
|
|
%build
|
2021-03-10 20:12:23 +00:00
|
|
|
%meson \
|
|
|
|
-Ddocumentation=true \
|
|
|
|
%if 0%{?fedora}
|
2022-03-03 14:57:27 +00:00
|
|
|
-Ddistributor_logo=%{_datadir}/pixmaps/fedora_logo_med.png \
|
|
|
|
-Ddark_mode_distributor_logo=%{_datadir}/pixmaps/fedora_whitelogo_med.png \
|
2021-03-10 20:35:42 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?rhel}
|
2021-03-10 20:12:23 +00:00
|
|
|
-Ddistributor_logo=%{_datadir}/pixmaps/fedora-logo.png \
|
|
|
|
-Ddark_mode_distributor_logo=%{_datadir}/pixmaps/system-logo-white.png \
|
2023-06-22 12:54:59 +00:00
|
|
|
%endif
|
|
|
|
%if %{with malcontent}
|
|
|
|
-Dmalcontent=true \
|
|
|
|
%else
|
|
|
|
-Dmalcontent=false \
|
2021-03-10 20:12:23 +00:00
|
|
|
%endif
|
|
|
|
%{nil}
|
2018-04-10 15:29:45 +00:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
# We do want this
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties
|
|
|
|
|
|
|
|
# We don't want these
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/autostart
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/cursor-fonts
|
|
|
|
|
|
|
|
%find_lang %{name} --all-name --with-gnome
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%license COPYING
|
2018-08-12 19:12:51 +00:00
|
|
|
%doc NEWS README.md
|
2018-04-10 15:29:45 +00:00
|
|
|
%{_bindir}/gnome-control-center
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/bash-completion/completions/gnome-control-center
|
2022-02-16 11:27:38 +00:00
|
|
|
%{_datadir}/dbus-1/services/org.gnome.Settings.SearchProvider.service
|
|
|
|
%{_datadir}/dbus-1/services/org.gnome.Settings.service
|
2018-04-10 15:29:45 +00:00
|
|
|
%{_datadir}/gettext/
|
2022-02-16 11:27:38 +00:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.Settings.gschema.xml
|
2018-04-10 15:29:45 +00:00
|
|
|
%{_datadir}/gnome-control-center/keybindings/*.xml
|
|
|
|
%{_datadir}/gnome-control-center/pixmaps
|
2022-02-16 11:27:38 +00:00
|
|
|
%{_datadir}/gnome-shell/search-providers/org.gnome.Settings.search-provider.ini
|
|
|
|
%{_datadir}/icons/gnome-logo-text*.svg
|
2018-04-10 15:29:45 +00:00
|
|
|
%{_datadir}/icons/hicolor/*/*/*
|
2023-03-21 08:22:05 +00:00
|
|
|
%{_mandir}/man1/gnome-control-center.1*
|
2022-02-16 11:27:38 +00:00
|
|
|
%{_metainfodir}/org.gnome.Settings.appdata.xml
|
2018-04-10 15:29:45 +00:00
|
|
|
%{_datadir}/pixmaps/faces
|
|
|
|
%{_datadir}/pkgconfig/gnome-keybindings.pc
|
|
|
|
%{_datadir}/polkit-1/actions/org.gnome.controlcenter.*.policy
|
|
|
|
%{_datadir}/polkit-1/rules.d/gnome-control-center.rules
|
|
|
|
%{_datadir}/sounds/gnome/default/*/*.ogg
|
|
|
|
%{_libexecdir}/gnome-control-center-search-provider
|
2020-02-03 14:49:00 +00:00
|
|
|
%{_libexecdir}/gnome-control-center-print-renderer
|
2018-04-10 15:29:45 +00:00
|
|
|
|
|
|
|
%files filesystem
|
|
|
|
%dir %{_datadir}/gnome-control-center
|
|
|
|
%dir %{_datadir}/gnome-control-center/keybindings
|
|
|
|
%dir %{_datadir}/gnome/wm-properties
|
|
|
|
|
|
|
|
%changelog
|
2022-02-23 22:45:14 +00:00
|
|
|
%autochangelog
|