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