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