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