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