]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without ibus # IBus support | |
4 | %bcond_with malcontent # Malcontent support | |
5 | %bcond_without wayland # Wayland support | |
6 | ||
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 | |
14 | Version: 42.1 | |
15 | Release: 1 | |
16 | Epoch: 1 | |
17 | License: GPL v2+ | |
18 | Group: X11/Applications | |
19 | Source0: https://download.gnome.org/sources/gnome-control-center/42/%{name}-%{version}.tar.xz | |
20 | # Source0-md5: cfa5ea72a2bd9a7385120d0cf577b195 | |
21 | Patch0: krb5.patch | |
22 | URL: https://www.gnome.org/ | |
23 | BuildRequires: ModemManager-devel >= 1.0.0 | |
24 | BuildRequires: NetworkManager-devel >= 1.24.0 | |
25 | BuildRequires: accountsservice-devel >= 0.6.39 | |
26 | BuildRequires: cairo-gobject-devel | |
27 | BuildRequires: colord-devel >= 0.1.34 | |
28 | BuildRequires: colord-gtk4-devel >= 0.1.24 | |
29 | BuildRequires: cups-devel >= 1.4 | |
30 | BuildRequires: docbook-dtd42-xml | |
31 | BuildRequires: fontconfig-devel | |
32 | BuildRequires: gdk-pixbuf2-devel >= 2.24.0 | |
33 | BuildRequires: gettext-tools >= 0.17 | |
34 | BuildRequires: glib2-devel >= 1:2.68.0 | |
35 | %ifnarch s390 s390x | |
36 | BuildRequires: gnome-bluetooth3-ui-devel >= 42 | |
37 | %endif | |
38 | BuildRequires: gnome-desktop4-devel >= 42 | |
39 | BuildRequires: gnome-online-accounts-devel >= 3.26.0 | |
40 | BuildRequires: gnome-settings-daemon-devel >= 1:41.0 | |
41 | BuildRequires: gnutls-devel | |
42 | BuildRequires: gsettings-desktop-schemas-devel >= 42 | |
43 | BuildRequires: gsound-devel | |
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 | |
47 | BuildRequires: heimdal-devel | |
48 | %{?with_ibus:BuildRequires: ibus-devel >= 1.5.2} | |
49 | BuildRequires: libadwaita-devel >= 1.1 | |
50 | BuildRequires: libepoxy-devel | |
51 | BuildRequires: libgtop-devel >= 2.0 | |
52 | BuildRequires: libgudev-devel >= 232 | |
53 | %{?with_malcontent:BuildRequires: libmalcontent-devel >= 0.10.0} | |
54 | BuildRequires: libnma-gtk4-devel >= 1.8.0 | |
55 | BuildRequires: libpwquality-devel >= 1.2.2 | |
56 | BuildRequires: libsecret-devel | |
57 | BuildRequires: libsmbclient-devel | |
58 | %ifnarch s390 s390x | |
59 | BuildRequires: libwacom-devel >= 0.7 | |
60 | %endif | |
61 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
62 | BuildRequires: meson >= 0.53.0 | |
63 | BuildRequires: ninja >= 1.5 | |
64 | BuildRequires: pkgconfig | |
65 | BuildRequires: polkit-devel >= 0.114 | |
66 | BuildRequires: pulseaudio-devel >= 2.0 | |
67 | BuildRequires: python3 >= 1:3 | |
68 | BuildRequires: rpm-build >= 4.6 | |
69 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
70 | BuildRequires: rpmbuild(macros) >= 1.752 | |
71 | BuildRequires: tar >= 1:1.22 | |
72 | BuildRequires: udisks2-devel >= 2.8.2 | |
73 | BuildRequires: upower-devel >= 0.99.8 | |
74 | BuildRequires: xorg-lib-libX11-devel | |
75 | BuildRequires: xorg-lib-libXi-devel >= 1.2 | |
76 | BuildRequires: xz | |
77 | BuildRequires: yelp-tools | |
78 | Requires(post,postun): desktop-file-utils | |
79 | Requires(post,postun): glib2 >= 1:2.68.0 | |
80 | Requires(post,postun): gtk-update-icon-cache | |
81 | Requires: NetworkManager >= 1.24.0 | |
82 | Requires: accountsservice >= 0.6.39 | |
83 | Requires: colord >= 0.1.34 | |
84 | Requires: colord-gtk4 >= 0.1.24 | |
85 | Requires: cups-pk-helper | |
86 | Requires: desktop-file-utils | |
87 | Requires: gdk-pixbuf2 >= 2.24.0 | |
88 | Requires: glib2 >= 1:2.68.0 | |
89 | %ifnarch s390 s390x | |
90 | Requires: gnome-bluetooth3-ui-libs >= 42 | |
91 | %endif | |
92 | Requires: gnome-desktop4 >= 42 | |
93 | Requires: gnome-online-accounts >= 3.26.0 | |
94 | Requires: gnome-settings-daemon >= 1:41.0 | |
95 | Requires: gsettings-desktop-schemas >= 42 | |
96 | Requires: gtk4 >= 4.4 | |
97 | Requires: hicolor-icon-theme | |
98 | %{?with_ibus:Requires: ibus-libs >= 1.5.2} | |
99 | Requires: libadwaita >= 1.1 | |
100 | Requires: libgudev >= 232 | |
101 | %{?with_malcontent:Requires: libmalcontent >= 0.10.0} | |
102 | Requires: libnma-gtk4 >= 1.8.0 | |
103 | Requires: libpwquality >= 1.2.2 | |
104 | %ifnarch s390 s390x | |
105 | Requires: libwacom >= 0.7 | |
106 | %endif | |
107 | Requires: polkit >= 0.114 | |
108 | Requires: pulseaudio-libs >= 2.0 | |
109 | Requires: tzdata | |
110 | Requires: udisks2-libs >= 2.8.2 | |
111 | Requires: upower-libs >= 0.99.8 | |
112 | Suggests: NetworkManager-applet >= 1.8.0 | |
113 | Suggests: cups >= 1.4 | |
114 | Suggests: gnome-color-manager | |
115 | Suggests: libgnomekbd | |
116 | # info panel needs glxinfo | |
117 | Suggests: mesa-utils | |
118 | Suggests: mousetweaks >= 3.0.0 | |
119 | Provides: control-center = %{epoch}:%{version}-%{release} | |
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 | |
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 | ||
160 | %package devel | |
161 | Summary: GNOME Control Center development files | |
162 | Summary(pl.UTF-8): Pliki programistyczne GNOME Control Center | |
163 | Group: X11/Development/Libraries | |
164 | Provides: control-center-devel = %{epoch}:%{version}-%{release} | |
165 | Obsoletes: control-center-devel < 1:2.19 | |
166 | Obsoletes: gnome-control-center-static < 1:3 | |
167 | BuildArch: noarch | |
168 | ||
169 | %description devel | |
170 | GNOME Control Center development files. | |
171 | ||
172 | %description devel -l pl.UTF-8 | |
173 | Pliki programistyczne GNOME Control Center. | |
174 | ||
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 | |
180 | BuildArch: noarch | |
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 | ||
188 | %prep | |
189 | %setup -q | |
190 | %patch0 -p1 | |
191 | ||
192 | %build | |
193 | %meson build \ | |
194 | -Ddocumentation=true \ | |
195 | %{!?with_ibus:-Dibus=false} \ | |
196 | %{?with_malcontent:-Dmalcontent=true} \ | |
197 | %{!?with_wayland:-Dwayland=false} | |
198 | ||
199 | # -Dsnap=true R: snapd-glib >= 1.57 | |
200 | ||
201 | %meson_build -C build | |
202 | ||
203 | %install | |
204 | rm -rf $RPM_BUILD_ROOT | |
205 | ||
206 | %meson_install -C build | |
207 | ||
208 | %find_lang %{name} --with-gnome --all-name | |
209 | ||
210 | %clean | |
211 | rm -rf $RPM_BUILD_ROOT | |
212 | ||
213 | %post | |
214 | %glib_compile_schemas | |
215 | %update_desktop_database_post | |
216 | %update_icon_cache hicolor | |
217 | ||
218 | %postun | |
219 | %glib_compile_schemas | |
220 | %update_desktop_database_postun | |
221 | %update_icon_cache hicolor | |
222 | ||
223 | %files -f %{name}.lang | |
224 | %defattr(644,root,root,755) | |
225 | %doc NEWS README.md | |
226 | %attr(755,root,root) %{_bindir}/gnome-control-center | |
227 | %attr(755,root,root) %{_libexecdir}/cc-remote-login-helper | |
228 | %attr(755,root,root) %{_libexecdir}/gnome-control-center-goa-helper | |
229 | %attr(755,root,root) %{_libexecdir}/gnome-control-center-print-renderer | |
230 | %attr(755,root,root) %{_libexecdir}/gnome-control-center-search-provider | |
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 | |
236 | %{_datadir}/polkit-1/actions/org.gnome.controlcenter.datetime.policy | |
237 | %{_datadir}/polkit-1/actions/org.gnome.controlcenter.remote-login-helper.policy | |
238 | %{_datadir}/polkit-1/actions/org.gnome.controlcenter.user-accounts.policy | |
239 | %{_datadir}/polkit-1/rules.d/gnome-control-center.rules | |
240 | %{_datadir}/gnome-control-center | |
241 | %{_datadir}/sounds/gnome | |
242 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Settings.svg | |
243 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Settings-*.svg | |
244 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Settings.Devel.svg | |
245 | %{_iconsdir}/hicolor/scalable/status/info-symbolic.svg | |
246 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Settings-symbolic.svg | |
247 | # FIXME: wrong location (move to pixmapsdir or hicolor/scalable/...?) | |
248 | %{_iconsdir}/gnome-logo-text.svg | |
249 | %{_iconsdir}/gnome-logo-text-dark.svg | |
250 | %{_desktopdir}/gnome-*-panel.desktop | |
251 | %{_desktopdir}/org.gnome.Settings.desktop | |
252 | %{_pixmapsdir}/faces | |
253 | %{_mandir}/man1/gnome-control-center.1* | |
254 | ||
255 | %files devel | |
256 | %defattr(644,root,root,755) | |
257 | %{_datadir}/gettext/its/gnome-keybindings.its | |
258 | %{_datadir}/gettext/its/gnome-keybindings.loc | |
259 | %{_datadir}/gettext/its/sounds.its | |
260 | %{_datadir}/gettext/its/sounds.loc | |
261 | %{_npkgconfigdir}/gnome-keybindings.pc | |
262 | ||
263 | %files -n bash-completion-gnome-control-center | |
264 | %defattr(644,root,root,755) | |
265 | %{bash_compdir}/gnome-control-center |