]>
Commit | Line | Data |
---|---|---|
d123be77 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | %bcond_without python2 # CPython 2.x binding | |
5 | %bcond_without python3 # CPython 3.x binding | |
6 | %bcond_without static_libs # static library | |
7 | # | |
8 | Summary: Components common to multiple desktop environments | |
9 | Summary(pl.UTF-8): Komponenty wspólne dla wielu środowisk graficznych | |
10 | Name: xapps | |
1bc18c5a | 11 | Version: 2.2.3 |
7d1f34ca | 12 | Release: 3 |
d123be77 JB |
13 | License: LGPL v3+ (library), GPL v3+ (xfce4-set-wallpaper tool) |
14 | Group: X11/Applications | |
1bc18c5a JB |
15 | #Source0Download: https://github.com/linuxmint/xapp/releases |
16 | Source0: https://github.com/linuxmint/xapp/archive/%{version}/xapp-%{version}.tar.gz | |
17 | # Source0-md5: a0461da68a3774a375b9d37d090f975a | |
18 | URL: https://github.com/linuxmint/xapp | |
d123be77 | 19 | BuildRequires: cairo-devel |
b5971563 JB |
20 | BuildRequires: cairo-gobject-devel |
21 | BuildRequires: dbus-devel | |
d123be77 JB |
22 | BuildRequires: gdk-pixbuf2-devel >= 2.22.0 |
23 | BuildRequires: gettext-tools | |
1bc18c5a JB |
24 | BuildRequires: glib2-devel >= 1:2.44.0 |
25 | BuildRequires: gtk+3-devel >= 3.16 | |
d123be77 | 26 | BuildRequires: gtk-doc |
b5971563 | 27 | BuildRequires: libdbusmenu-gtk3-devel |
d123be77 JB |
28 | BuildRequires: libgnomekbd-devel |
29 | BuildRequires: meson | |
30 | BuildRequires: ninja >= 1.5 | |
31 | BuildRequires: pkgconfig | |
32 | %if %{with python2} | |
33 | BuildRequires: python >= 2 | |
34 | BuildRequires: python-pygobject3 >= 3 | |
35 | %endif | |
36 | %if %{with python3} | |
37 | BuildRequires: python3 >= 1:3 | |
38 | BuildRequires: python3-pygobject3 >= 3 | |
39 | %endif | |
1bc18c5a | 40 | BuildRequires: rpm-build >= 4.6 |
d123be77 JB |
41 | BuildRequires: rpmbuild(macros) >= 1.736 |
42 | BuildRequires: xorg-lib-libX11-devel | |
43 | BuildRequires: xorg-lib-libxkbfile-devel | |
1bc18c5a | 44 | Requires(post,postun): glib2 >= 1:2.44.0 |
d123be77 JB |
45 | Requires(post,postun): gtk-update-icon-cache |
46 | Requires: %{name}-libs = %{version}-%{release} | |
47 | Requires: hicolor-icon-theme | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
51 | This project gathers the components which are common to multiple | |
52 | desktop environments and required to implement cross-DE solutions. | |
53 | ||
54 | This package contains a set of resources and tools. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | Ten projekt gromadzi komponenty wspólne dla wielu środowisk | |
58 | graficznych, wymagane do implementowania rozwiązań działających w | |
59 | wielu różnych środowiskach. | |
60 | ||
61 | Ten pakiet zawiera zbiór zasobów i narzędzi. | |
62 | ||
63 | %package libs | |
64 | Summary: X applications utility library | |
65 | Summary(pl.UTF-8): Biblioteka narzędziowa dla aplikacji X | |
66 | License: LGPL v3+ | |
67 | Group: X11/Applications | |
68 | Requires: gdk-pixbuf2 >= 2.22.0 | |
1bc18c5a JB |
69 | Requires: glib2 >= 1:2.44.0 |
70 | Requires: gtk+3 >= 3.16 | |
d123be77 JB |
71 | |
72 | %description libs | |
73 | X applications utility library. | |
74 | ||
75 | %description libs -l pl.UTF-8 | |
76 | Biblioteka narzędziowa dla aplikacji X. | |
77 | ||
78 | %package devel | |
79 | Summary: Header files for xapp library | |
80 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki xapp | |
81 | License: LGPL v3+ | |
82 | Group: X11/Development/Libraries | |
83 | Requires: %{name}-libs = %{version}-%{release} | |
84 | Requires: cairo-devel | |
85 | Requires: gdk-pixbuf2-devel >= 2.22.0 | |
1bc18c5a JB |
86 | Requires: glib2-devel >= 1:2.44.0 |
87 | Requires: gtk+3-devel >= 3.16 | |
d123be77 JB |
88 | Requires: libgnomekbd-devel |
89 | Requires: xorg-lib-libX11-devel | |
90 | Requires: xorg-lib-libxkbfile-devel | |
91 | ||
92 | %description devel | |
93 | Header files for xapp library. | |
94 | ||
95 | %description devel -l pl.UTF-8 | |
96 | Pliki nagłówkowe biblioteki xapp. | |
97 | ||
98 | %package static | |
99 | Summary: Static xapp library | |
100 | Summary(pl.UTF-8): Statyczna biblioteka xapp | |
101 | License: LGPL v3+ | |
102 | Group: X11/Development/Libraries | |
103 | Requires: %{name}-devel = %{version}-%{release} | |
104 | ||
105 | %description static | |
106 | Static xapp library. | |
107 | ||
108 | %description static -l pl.UTF-8 | |
109 | Statyczna biblioteka xapp. | |
110 | ||
111 | %package apidocs | |
112 | Summary: API documentation for xapp library | |
113 | Summary(pl.UTF-8): Dokumentacja API biblioteki xapp | |
114 | License: LGPL v3+ | |
115 | Group: Documentation | |
d123be77 | 116 | BuildArch: noarch |
d123be77 JB |
117 | |
118 | %description apidocs | |
119 | API documentation for xapp library. | |
120 | ||
121 | %description apidocs -l pl.UTF-8 | |
122 | Dokumentacja API biblioteki xapp. | |
123 | ||
124 | %package glade | |
125 | Summary: Glade catalog file for xapp library | |
126 | Summary(pl.UTF-8): Plik katalogu Glade dla biblioteki xapp | |
127 | License: LGPL v3+ | |
128 | Group: Development/Libraries | |
129 | Requires: %{name}-devel = %{version}-%{release} | |
130 | Requires: glade >= 2 | |
d123be77 | 131 | BuildArch: noarch |
d123be77 JB |
132 | |
133 | %description glade | |
134 | Glade catalog file for xapp library. | |
135 | ||
136 | %description glade -l pl.UTF-8 | |
137 | Plik katalogu Glade dla biblioteki xapp. | |
138 | ||
139 | %package -n vala-xapp | |
140 | Summary: Vala API for xapp library | |
141 | Summary(pl.UTF-8): API języka Vala do biblioteki xapp | |
142 | License: LGPL v3+ | |
143 | Group: Development/Libraries | |
144 | Requires: %{name}-devel = %{version}-%{release} | |
145 | Requires: vala | |
d123be77 | 146 | BuildArch: noarch |
d123be77 JB |
147 | |
148 | %description -n vala-xapp | |
149 | Vala API for xapp library. | |
150 | ||
151 | %description -n vala-xapp -l pl.UTF-8 | |
152 | API języka Vala do biblioteki xapp. | |
153 | ||
9d76ad48 | 154 | %package -n python-xapps-overrides |
d123be77 JB |
155 | Summary: Python 2 binding for xapp library |
156 | Summary(pl.UTF-8): Wiązanie Pythona 2 do biblioteki xapp | |
157 | License: LGPL v3+ | |
158 | Group: Libraries/Python | |
159 | Requires: %{name}-libs = %{version}-%{release} | |
160 | Requires: python-pygobject3 >= 3 | |
9d76ad48 | 161 | Obsoletes: python-xapp < 1.4.8 |
d123be77 | 162 | |
9d76ad48 | 163 | %description -n python-xapps-overrides |
d123be77 JB |
164 | Python 2 binding for xapp library. |
165 | ||
9d76ad48 | 166 | %description -n python-xapps-overrides -l pl.UTF-8 |
d123be77 JB |
167 | Wiązanie Pythona 2 do biblioteki xapp. |
168 | ||
9d76ad48 | 169 | %package -n python3-xapps-overrides |
d123be77 JB |
170 | Summary: Python 3 binding for xapp library |
171 | Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki xapp | |
172 | License: LGPL v3+ | |
173 | Group: Libraries/Python | |
174 | Requires: %{name}-libs = %{version}-%{release} | |
175 | Requires: python3-pygobject3 >= 3 | |
9d76ad48 | 176 | Obsoletes: python3-xapp < 1.4.8 |
d123be77 | 177 | |
9d76ad48 | 178 | %description -n python3-xapps-overrides |
d123be77 JB |
179 | Python 3 binding for xapp library. |
180 | ||
9d76ad48 | 181 | %description -n python3-xapps-overrides -l pl.UTF-8 |
d123be77 JB |
182 | Wiązanie Pythona 3 do biblioteki xapp. |
183 | ||
06f4c976 JB |
184 | %package -n mate-applet-xapp-status |
185 | Summary: XApp Status Applet for MATE | |
186 | Summary(pl.UTF-8): Applet stanu XApp dla MATE | |
187 | Group: X11/Applications | |
188 | Requires: %{name} = %{version}-%{release} | |
189 | Requires: mate-panel >= 1.18 | |
190 | Requires: python3-xapps-overrides = %{version}-%{release} | |
191 | ||
192 | %description -n mate-applet-xapp-status | |
193 | XApp Status Applet for MATE - area where XApp status icons appear. | |
194 | ||
195 | %description -n mate-applet-xapp-status -l pl.UTF-8 | |
196 | Applet stanu XApp dla MATE - miejsce, gdzie pojawiają się ikony stanu | |
197 | XApp. | |
198 | ||
d123be77 | 199 | %prep |
1bc18c5a | 200 | %setup -q -n xapp-%{version} |
d123be77 JB |
201 | |
202 | %build | |
203 | %meson build \ | |
204 | %{!?with_static_libs:--default-library=shared} \ | |
205 | %{?with_apidocs:-Ddocs=true} | |
206 | ||
207 | %ninja_build -C build | |
208 | ||
209 | %install | |
210 | rm -rf $RPM_BUILD_ROOT | |
211 | ||
212 | %ninja_install -C build | |
213 | ||
214 | %if %{with python2} | |
06f4c976 JB |
215 | # since 1.8.0 python 2 module is no longer installed |
216 | install -Dp pygobject/XApp.py $RPM_BUILD_ROOT%{py_sitedir}/gi/overrides/XApp.py | |
d123be77 JB |
217 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
218 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
219 | %py_postclean | |
220 | %endif | |
221 | ||
222 | %if %{with python3} | |
223 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} | |
224 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
225 | %endif | |
226 | ||
730d60ea | 227 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ie,zgh} |
0e9ed478 | 228 | |
d123be77 JB |
229 | %find_lang xapp |
230 | ||
231 | %clean | |
232 | rm -rf $RPM_BUILD_ROOT | |
233 | ||
234 | %post | |
235 | %update_icon_cache hicolor | |
236 | %glib_compile_schemas | |
237 | ||
238 | %postun | |
239 | %update_icon_cache hicolor | |
240 | %glib_compile_schemas | |
241 | ||
242 | %post libs -p /sbin/ldconfig | |
243 | %postun libs -p /sbin/ldconfig | |
244 | ||
1bc18c5a JB |
245 | %post -n mate-applet-xapp-status |
246 | %update_icon_cache hicolor | |
247 | ||
248 | %postun -n mate-applet-xapp-status | |
249 | %update_icon_cache hicolor | |
250 | ||
d123be77 JB |
251 | %files -f xapp.lang |
252 | %defattr(644,root,root,755) | |
06f4c976 | 253 | %doc AUTHORS README.md debian/changelog |
d123be77 JB |
254 | # utility apps, not related to library |
255 | %attr(755,root,root) %{_bindir}/pastebin | |
256 | %attr(755,root,root) %{_bindir}/upload-system-info | |
257 | %attr(755,root,root) %{_bindir}/xfce4-set-wallpaper | |
1bc18c5a JB |
258 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/80xapp-gtk3-module.sh |
259 | %attr(755,root,root) %{_libdir}/gtk-3.0/modules/libxapp-gtk3-module.so | |
06f4c976 | 260 | %dir %{_libexecdir}/xapps |
d123be77 JB |
261 | # misc data, some for use with library, some independently |
262 | %{_datadir}/glib-2.0/schemas/org.x.apps.gschema.xml | |
263 | %{_iconsdir}/hicolor/scalable/actions/add-files-to-archive-symbolic.svg | |
264 | %{_iconsdir}/hicolor/scalable/actions/category-search-symbolic.svg | |
265 | %{_iconsdir}/hicolor/scalable/actions/extract-archive-symbolic.svg | |
266 | %{_iconsdir}/hicolor/scalable/actions/media-mount-symbolic.svg | |
267 | %{_iconsdir}/hicolor/scalable/actions/view-*-symbolic*.svg | |
268 | %{_iconsdir}/hicolor/scalable/actions/xapp-*-symbolic*.svg | |
1bc18c5a JB |
269 | %{_iconsdir}/hicolor/scalable/apps/xapp-favorites-app.svg |
270 | %{_iconsdir}/hicolor/scalable/apps/xapp-favorites-app-symbolic.svg | |
d123be77 | 271 | %{_iconsdir}/hicolor/scalable/categories/xapp-prefs-*-symbolic.svg |
1bc18c5a JB |
272 | %{_iconsdir}/hicolor/scalable/emblems/emblem-xapp-favorite.svg |
273 | %{_iconsdir}/hicolor/scalable/places/xapp-user-favorites.svg | |
274 | %{_iconsdir}/hicolor/scalable/places/xapp-user-favorites-symbolic.svg | |
d123be77 | 275 | |
06f4c976 JB |
276 | # status notifier watcher |
277 | %dir %{_libexecdir}/xapps/sn-watcher | |
278 | %attr(755,root,root) %{_libexecdir}/xapps/sn-watcher/xapp-sn-watcher | |
279 | /etc/xdg/autostart/xapp-sn-watcher.desktop | |
280 | %{_datadir}/dbus-1/services/org.x.StatusNotifierWatcher.service | |
281 | ||
d123be77 JB |
282 | %files libs |
283 | %defattr(644,root,root,755) | |
284 | %attr(755,root,root) %{_libdir}/libxapp.so.*.*.* | |
285 | %attr(755,root,root) %ghost %{_libdir}/libxapp.so.1 | |
286 | %{_libdir}/girepository-1.0/XApp-1.0.typelib | |
287 | ||
288 | %files devel | |
289 | %defattr(644,root,root,755) | |
290 | %attr(755,root,root) %{_libdir}/libxapp.so | |
291 | %{_includedir}/xapp | |
292 | %{_datadir}/gir-1.0/XApp-1.0.gir | |
293 | %{_pkgconfigdir}/xapp.pc | |
294 | ||
295 | %if %{with static_libs} | |
296 | %files static | |
297 | %defattr(644,root,root,755) | |
298 | %{_libdir}/libxapp.a | |
299 | %endif | |
300 | ||
301 | %if %{with apidocs} | |
302 | %files apidocs | |
303 | %defattr(644,root,root,755) | |
304 | %{_gtkdocdir}/libxapp | |
305 | %endif | |
306 | ||
307 | %files glade | |
308 | %defattr(644,root,root,755) | |
309 | %{_datadir}/glade/catalogs/xapp-glade-catalog.xml | |
310 | ||
311 | %files -n vala-xapp | |
312 | %defattr(644,root,root,755) | |
313 | %{_datadir}/vala/vapi/xapp.deps | |
314 | %{_datadir}/vala/vapi/xapp.vapi | |
315 | ||
316 | %if %{with python2} | |
9d76ad48 | 317 | %files -n python-xapps-overrides |
d123be77 JB |
318 | %defattr(644,root,root,755) |
319 | %{py_sitedir}/gi/overrides/XApp.py[co] | |
320 | %endif | |
321 | ||
322 | %if %{with python3} | |
9d76ad48 | 323 | %files -n python3-xapps-overrides |
d123be77 JB |
324 | %defattr(644,root,root,755) |
325 | %{py3_sitedir}/gi/overrides/XApp.py | |
326 | %{py3_sitedir}/gi/overrides/__pycache__/XApp.cpython-*.py[co] | |
327 | %endif | |
06f4c976 JB |
328 | |
329 | %files -n mate-applet-xapp-status | |
330 | %defattr(644,root,root,755) | |
331 | %attr(755,root,root) %{_libexecdir}/xapps/mate-xapp-status-applet.py | |
332 | %{_libexecdir}/xapps/applet_constants.py | |
333 | %{_datadir}/dbus-1/services/org.mate.panel.applet.MateXAppStatusAppletFactory.service | |
334 | %{_datadir}/mate-panel/applets/org.x.MateXAppStatusApplet.mate-panel-applet | |
1bc18c5a | 335 | %{_iconsdir}/hicolor/scalable/apps/xapp-mate-status-applet.svg |