]>
Commit | Line | Data |
---|---|---|
eb5b20d5 ŁK |
1 | # |
2 | # Conditional build: | |
dc06c10d JB |
3 | %bcond_without ibus # IBus support |
4 | %bcond_with malcontent # Malcontent support | |
4f093480 | 5 | %bcond_with snap # snap support |
dc06c10d | 6 | %bcond_without wayland # Wayland support |
06703e9c | 7 | |
bbeef7c2 PZ |
8 | Summary: GNOME Control Center |
9 | Summary(es.UTF-8): El centro de controle del GNOME | |
10 | Summary(pl.UTF-8): Centrum Kontroli GNOME | |
11 | Summary(pt_BR.UTF-8): O Centro de Controle do GNOME | |
12 | Summary(ru.UTF-8): Центр управления GNOME | |
13 | Summary(uk.UTF-8): Центр керування GNOME | |
14 | Name: gnome-control-center | |
588ba4ad | 15 | Version: 46.1 |
69ae6559 | 16 | Release: 1 |
bbeef7c2 PZ |
17 | Epoch: 1 |
18 | License: GPL v2+ | |
19 | Group: X11/Applications | |
588ba4ad JB |
20 | Source0: https://download.gnome.org/sources/gnome-control-center/46/%{name}-%{version}.tar.xz |
21 | # Source0-md5: 58c966c88514d267df4ef9a357e4676e | |
5d65ebf7 | 22 | Patch0: krb5.patch |
292120e2 | 23 | URL: https://www.gnome.org/ |
d78b263e | 24 | BuildRequires: ModemManager-devel >= 1.0.0 |
478a581c | 25 | BuildRequires: NetworkManager-devel >= 2:1.24.0 |
aebca01c | 26 | BuildRequires: accountsservice-devel >= 0.6.39 |
7681dd4c | 27 | BuildRequires: cairo-gobject-devel |
6a6da2bb | 28 | BuildRequires: colord-devel >= 0.1.34 |
a1cc202f | 29 | BuildRequires: colord-gtk4-devel >= 0.1.24 |
03729506 | 30 | BuildRequires: cups-devel >= 1.4 |
7681dd4c | 31 | BuildRequires: docbook-dtd42-xml |
baa5e211 | 32 | BuildRequires: fontconfig-devel |
588ba4ad | 33 | BuildRequires: gcr4-devel >= 4.1.0 |
81e3c1bf | 34 | BuildRequires: gdk-pixbuf2-devel >= 2.24.0 |
81b46770 | 35 | BuildRequires: gettext-tools >= 0.17 |
588ba4ad | 36 | BuildRequires: glib2-devel >= 1:2.76.6 |
baa5e211 | 37 | %ifnarch s390 s390x |
a1cc202f | 38 | BuildRequires: gnome-bluetooth3-ui-devel >= 42 |
baa5e211 | 39 | %endif |
a1cc202f | 40 | BuildRequires: gnome-desktop4-devel >= 42 |
588ba4ad | 41 | BuildRequires: gnome-online-accounts-devel >= 3.49.1 |
a1cc202f JB |
42 | BuildRequires: gnome-settings-daemon-devel >= 1:41.0 |
43 | BuildRequires: gnutls-devel | |
588ba4ad | 44 | BuildRequires: gsettings-desktop-schemas-devel >= 46 |
ef3b184f | 45 | BuildRequires: gsound-devel |
a1cc202f JB |
46 | # X11 and Wayland checks in panels/online-accounts/meson.build (subject to update?) |
47 | BuildRequires: gtk+3-devel >= 3.0 | |
588ba4ad | 48 | BuildRequires: gtk4-devel >= 4.11.2 |
49c1b881 | 49 | BuildRequires: heimdal-devel |
6a6da2bb | 50 | %{?with_ibus:BuildRequires: ibus-devel >= 1.5.2} |
588ba4ad JB |
51 | %{?with_snap:BuildRequires: json-glib-devel} |
52 | BuildRequires: libadwaita-devel >= 1.4 | |
baa5e211 | 53 | BuildRequires: libepoxy-devel |
7681dd4c | 54 | BuildRequires: libgtop-devel >= 2.0 |
baa5e211 | 55 | BuildRequires: libgudev-devel >= 232 |
b7d5c587 | 56 | %{?with_malcontent:BuildRequires: libmalcontent-devel >= 0.10.0} |
588ba4ad | 57 | BuildRequires: libnma-gtk4-devel >= 1.10.2 |
6a6da2bb | 58 | BuildRequires: libpwquality-devel >= 1.2.2 |
7681dd4c | 59 | BuildRequires: libsecret-devel |
6a6da2bb | 60 | BuildRequires: libsmbclient-devel |
baa5e211 | 61 | %ifnarch s390 s390x |
4f093480 | 62 | BuildRequires: libwacom-devel >= 0.27 |
baa5e211 | 63 | %endif |
2b3469b3 | 64 | BuildRequires: libxml2-devel >= 1:2.6.31 |
588ba4ad | 65 | BuildRequires: meson >= 0.58.0 |
292120e2 | 66 | BuildRequires: ninja >= 1.5 |
bbeef7c2 | 67 | BuildRequires: pkgconfig |
baa5e211 | 68 | BuildRequires: polkit-devel >= 0.114 |
49c1b881 | 69 | BuildRequires: pulseaudio-devel >= 2.0 |
dc06c10d | 70 | BuildRequires: python3 >= 1:3 |
b7d5c587 | 71 | BuildRequires: rpm-build >= 4.6 |
dbae2c4e | 72 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
4a750620 | 73 | BuildRequires: rpmbuild(macros) >= 1.752 |
4f093480 | 74 | %{?with_snap:BuildRequires: snapd-glib-devel >= 1.57} |
4b3abb10 | 75 | BuildRequires: tar >= 1:1.22 |
6c72cc58 | 76 | BuildRequires: tecla-devel |
a1cc202f | 77 | BuildRequires: udisks2-devel >= 2.8.2 |
8a58cfa6 | 78 | BuildRequires: upower-devel >= 0.99.8 |
478a581c | 79 | BuildRequires: xorg-lib-libX11-devel >= 1.8 |
5d65ebf7 | 80 | BuildRequires: xorg-lib-libXi-devel >= 1.2 |
4b3abb10 | 81 | BuildRequires: xz |
49c1b881 | 82 | BuildRequires: yelp-tools |
bbeef7c2 | 83 | Requires(post,postun): desktop-file-utils |
588ba4ad | 84 | Requires(post,postun): glib2 >= 1:2.76.6 |
491e395f | 85 | Requires(post,postun): gtk-update-icon-cache |
478a581c | 86 | Requires: NetworkManager >= 2:1.24.0 |
8a58cfa6 | 87 | Requires: accountsservice >= 0.6.39 |
292120e2 | 88 | Requires: colord >= 0.1.34 |
a1cc202f | 89 | Requires: colord-gtk4 >= 0.1.24 |
de7f6995 | 90 | Requires: cups-pk-helper |
bbeef7c2 | 91 | Requires: desktop-file-utils |
588ba4ad | 92 | Requires: gcr4-devel >= 4.1.0 |
292120e2 | 93 | Requires: gdk-pixbuf2 >= 2.24.0 |
588ba4ad | 94 | Requires: glib2 >= 1:2.76.6 |
baa5e211 | 95 | %ifnarch s390 s390x |
a1cc202f | 96 | Requires: gnome-bluetooth3-ui-libs >= 42 |
baa5e211 | 97 | %endif |
a1cc202f | 98 | Requires: gnome-desktop4 >= 42 |
588ba4ad | 99 | Requires: gnome-online-accounts >= 3.49.1 |
a1cc202f | 100 | Requires: gnome-settings-daemon >= 1:41.0 |
588ba4ad JB |
101 | Requires: gsettings-desktop-schemas >= 46 |
102 | Requires: gtk4 >= 4.11.2 | |
03729506 | 103 | Requires: hicolor-icon-theme |
292120e2 | 104 | %{?with_ibus:Requires: ibus-libs >= 1.5.2} |
588ba4ad | 105 | Requires: libadwaita >= 1.4 |
baa5e211 | 106 | Requires: libgudev >= 232 |
b7d5c587 | 107 | %{?with_malcontent:Requires: libmalcontent >= 0.10.0} |
588ba4ad | 108 | Requires: libnma-gtk4 >= 1.10.2 |
292120e2 | 109 | Requires: libpwquality >= 1.2.2 |
baa5e211 | 110 | %ifnarch s390 s390x |
4f093480 | 111 | Requires: libwacom >= 0.27 |
baa5e211 JB |
112 | %endif |
113 | Requires: polkit >= 0.114 | |
292120e2 | 114 | Requires: pulseaudio-libs >= 2.0 |
3626efd5 | 115 | Requires: tzdata |
a1cc202f | 116 | Requires: udisks2-libs >= 2.8.2 |
8a58cfa6 | 117 | Requires: upower-libs >= 0.99.8 |
478a581c JB |
118 | Requires: xorg-lib-libX11 >= 1.8 |
119 | Requires: xorg-lib-libXi >= 1.2 | |
292120e2 JB |
120 | Suggests: NetworkManager-applet >= 1.8.0 |
121 | Suggests: cups >= 1.4 | |
137a1374 | 122 | Suggests: gnome-color-manager |
137a1374 | 123 | Suggests: libgnomekbd |
6908e703 MB |
124 | # info panel needs glxinfo |
125 | Suggests: mesa-utils | |
03729506 | 126 | Suggests: mousetweaks >= 3.0.0 |
bbeef7c2 | 127 | Provides: control-center = %{epoch}:%{version}-%{release} |
b7d5c587 JB |
128 | Obsoletes: acme < 2.5 |
129 | Obsoletes: control-center < 1:2.19 | |
130 | Obsoletes: control-center-libs < 1:2.19 | |
131 | Obsoletes: fontilus < 0.5 | |
132 | Obsoletes: gnome < 2 | |
133 | Obsoletes: gnome-control-center-libs < 1:3.4 | |
134 | Obsoletes: gnome-media-volume-control < 2.21 | |
135 | Obsoletes: themus < 0.2 | |
bbeef7c2 PZ |
136 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
137 | ||
138 | %description | |
139 | A Configuration tool for easily setting up your GNOME environment. | |
140 | ||
141 | %description -l es.UTF-8 | |
142 | El control-center es una herramienta para una configuración facilitada | |
143 | el entorno GNOME. | |
144 | ||
145 | %description -l pl.UTF-8 | |
146 | Narzędzie do łatwej konfiguracji środowiska GNOME. | |
147 | ||
148 | %description -l pt_BR.UTF-8 | |
149 | O Control Center é uma ferramenta para facilmente configurar seu | |
150 | ambiente GNOME. | |
151 | ||
152 | %description -l ru.UTF-8 | |
153 | Пакет Control Center содержит утилиты, позволяющие настраивать среду | |
154 | GNOME вашей системы (такие вещи как фон рабочего стола и темы, | |
155 | программа сохранения экрана, оконный менеджер, системные звуки, | |
156 | поведение мыши и др.) | |
157 | ||
158 | Этот пакет нужен, если вы устанавливаете среду GNOME. | |
159 | ||
160 | %description -l uk.UTF-8 | |
161 | Пакет Control Center містить утиліти, які дозволяють настроювати | |
162 | середовище GNOME вашої системи (такі речі як фон робочого столу та | |
163 | теми, програма збереження екрану, віконний менеджер, системні звуки, | |
164 | поведінка миші та ін.) | |
165 | ||
166 | Цей пакет потрібний, якщо ви встановлюєте середовище GNOME. | |
167 | ||
bbeef7c2 | 168 | %package devel |
eb5b20d5 ŁK |
169 | Summary: GNOME Control Center development files |
170 | Summary(pl.UTF-8): Pliki programistyczne GNOME Control Center | |
bbeef7c2 | 171 | Group: X11/Development/Libraries |
567fe714 | 172 | Provides: control-center-devel = %{epoch}:%{version}-%{release} |
b7d5c587 JB |
173 | Obsoletes: control-center-devel < 1:2.19 |
174 | Obsoletes: gnome-control-center-static < 1:3 | |
a1cc202f | 175 | BuildArch: noarch |
bbeef7c2 PZ |
176 | |
177 | %description devel | |
eb5b20d5 | 178 | GNOME Control Center development files. |
bbeef7c2 PZ |
179 | |
180 | %description devel -l pl.UTF-8 | |
eb5b20d5 | 181 | Pliki programistyczne GNOME Control Center. |
bbeef7c2 | 182 | |
5d65ebf7 MB |
183 | %package -n bash-completion-gnome-control-center |
184 | Summary: bash-completion for gnome-control-center | |
185 | Summary(pl.UTF-8): Bashowe uzupełnianie nazw dla gnome-control-center | |
186 | Group: Applications/Shells | |
478a581c | 187 | Requires: bash-completion >= 1:2.0 |
0be01f33 | 188 | BuildArch: noarch |
5d65ebf7 MB |
189 | |
190 | %description -n bash-completion-gnome-control-center | |
191 | bash-completion for gnome-control-center. | |
192 | ||
193 | %description -n bash-completion-gnome-control-center -l pl.UTF-8 | |
194 | Bashowe uzupełnianie nazw dla gnome-control-center. | |
195 | ||
bbeef7c2 PZ |
196 | %prep |
197 | %setup -q | |
a1824854 | 198 | %patch0 -p1 |
dbae2c4e | 199 | |
bbeef7c2 | 200 | %build |
08818d7d | 201 | %meson build \ |
8a58cfa6 JB |
202 | -Ddocumentation=true \ |
203 | %{!?with_ibus:-Dibus=false} \ | |
dc06c10d | 204 | %{?with_malcontent:-Dmalcontent=true} \ |
4f093480 | 205 | %{?with_snap:-Dsnap=true} \ |
d2714dfc | 206 | -Dtests=false \ |
8a58cfa6 | 207 | %{!?with_wayland:-Dwayland=false} |
08818d7d MB |
208 | |
209 | %meson_build -C build | |
bbeef7c2 PZ |
210 | |
211 | %install | |
212 | rm -rf $RPM_BUILD_ROOT | |
08818d7d MB |
213 | |
214 | %meson_install -C build | |
bbeef7c2 | 215 | |
4f093480 JB |
216 | # not supported by glibc (as of 2.37) |
217 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
218 | ||
8a58cfa6 | 219 | %find_lang %{name} --with-gnome --all-name |
bbeef7c2 PZ |
220 | |
221 | %clean | |
222 | rm -rf $RPM_BUILD_ROOT | |
223 | ||
224 | %post | |
08818d7d | 225 | %glib_compile_schemas |
bbeef7c2 PZ |
226 | %update_desktop_database_post |
227 | %update_icon_cache hicolor | |
228 | ||
bbeef7c2 | 229 | %postun |
08818d7d | 230 | %glib_compile_schemas |
bbeef7c2 PZ |
231 | %update_desktop_database_postun |
232 | %update_icon_cache hicolor | |
233 | ||
bbeef7c2 PZ |
234 | %files -f %{name}.lang |
235 | %defattr(644,root,root,755) | |
8a58cfa6 | 236 | %doc NEWS README.md |
2b3469b3 | 237 | %attr(755,root,root) %{_bindir}/gnome-control-center |
b9da9ca6 | 238 | %attr(755,root,root) %{_libexecdir}/gnome-control-center-print-renderer |
08818d7d | 239 | %attr(755,root,root) %{_libexecdir}/gnome-control-center-search-provider |
a1cc202f JB |
240 | %{_datadir}/dbus-1/services/org.gnome.Settings.service |
241 | %{_datadir}/dbus-1/services/org.gnome.Settings.SearchProvider.service | |
242 | %{_datadir}/glib-2.0/schemas/org.gnome.Settings.gschema.xml | |
243 | %{_datadir}/gnome-shell/search-providers/org.gnome.Settings.search-provider.ini | |
244 | %{_datadir}/metainfo/org.gnome.Settings.appdata.xml | |
5d65ebf7 | 245 | %{_datadir}/polkit-1/actions/org.gnome.controlcenter.remote-login-helper.policy |
588ba4ad JB |
246 | %{_datadir}/polkit-1/actions/org.gnome.controlcenter.remote-session-helper.policy |
247 | %{_datadir}/polkit-1/actions/org.gnome.controlcenter.system.policy | |
49c1b881 ŁK |
248 | %{_datadir}/polkit-1/actions/org.gnome.controlcenter.user-accounts.policy |
249 | %{_datadir}/polkit-1/rules.d/gnome-control-center.rules | |
bbeef7c2 | 250 | %{_datadir}/gnome-control-center |
03729506 | 251 | %{_datadir}/sounds/gnome |
8a58cfa6 | 252 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Settings.svg |
a1cc202f | 253 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Settings-*.svg |
5e522e7d | 254 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Settings.Devel.svg |
8a58cfa6 | 255 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Settings-symbolic.svg |
a9203acf JB |
256 | # FIXME: wrong location (move to pixmapsdir or hicolor/scalable/...?) |
257 | %{_iconsdir}/gnome-logo-text.svg | |
258 | %{_iconsdir}/gnome-logo-text-dark.svg | |
8a58cfa6 | 259 | %{_desktopdir}/gnome-*-panel.desktop |
a1cc202f | 260 | %{_desktopdir}/org.gnome.Settings.desktop |
03729506 | 261 | %{_pixmapsdir}/faces |
8a58cfa6 | 262 | %{_mandir}/man1/gnome-control-center.1* |
bbeef7c2 | 263 | |
bbeef7c2 PZ |
264 | %files devel |
265 | %defattr(644,root,root,755) | |
48c91afc MB |
266 | %{_datadir}/gettext/its/gnome-keybindings.its |
267 | %{_datadir}/gettext/its/gnome-keybindings.loc | |
08818d7d MB |
268 | %{_datadir}/gettext/its/sounds.its |
269 | %{_datadir}/gettext/its/sounds.loc | |
03729506 | 270 | %{_npkgconfigdir}/gnome-keybindings.pc |
5d65ebf7 MB |
271 | |
272 | %files -n bash-completion-gnome-control-center | |
273 | %defattr(644,root,root,755) | |
16234678 | 274 | %{bash_compdir}/gnome-control-center |