]>
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 | |
11 | Version: 1.4.5 | |
12 | Release: 1 | |
13 | License: LGPL v3+ (library), GPL v3+ (xfce4-set-wallpaper tool) | |
14 | Group: X11/Applications | |
15 | #Source0Download: https://github.com/linuxmint/xapps/releases | |
16 | Source0: https://github.com/linuxmint/xapps/archive/%{version}/%{name}-%{version}.tar.gz | |
17 | # Source0-md5: 97cb7d5e755e67d1217aa0a1f1b6d3bd | |
18 | URL: https://github.com/linuxmint/xapps | |
19 | BuildRequires: cairo-devel | |
20 | BuildRequires: gdk-pixbuf2-devel >= 2.22.0 | |
21 | BuildRequires: gettext-tools | |
22 | BuildRequires: glib2-devel >= 1:2.37.3 | |
23 | BuildRequires: gtk+3-devel >= 3.3.16 | |
24 | BuildRequires: gtk-doc | |
25 | BuildRequires: libgnomekbd-devel | |
26 | BuildRequires: meson | |
27 | BuildRequires: ninja >= 1.5 | |
28 | BuildRequires: pkgconfig | |
29 | %if %{with python2} | |
30 | BuildRequires: python >= 2 | |
31 | BuildRequires: python-pygobject3 >= 3 | |
32 | %endif | |
33 | %if %{with python3} | |
34 | BuildRequires: python3 >= 1:3 | |
35 | BuildRequires: python3-pygobject3 >= 3 | |
36 | %endif | |
37 | BuildRequires: rpmbuild(macros) >= 1.736 | |
38 | BuildRequires: xorg-lib-libX11-devel | |
39 | BuildRequires: xorg-lib-libxkbfile-devel | |
40 | Requires(post,postun): glib2 >= 1:2.40 | |
41 | Requires(post,postun): gtk-update-icon-cache | |
42 | Requires: %{name}-libs = %{version}-%{release} | |
43 | Requires: hicolor-icon-theme | |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %description | |
47 | This project gathers the components which are common to multiple | |
48 | desktop environments and required to implement cross-DE solutions. | |
49 | ||
50 | This package contains a set of resources and tools. | |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | Ten projekt gromadzi komponenty wspólne dla wielu środowisk | |
54 | graficznych, wymagane do implementowania rozwiązań działających w | |
55 | wielu różnych środowiskach. | |
56 | ||
57 | Ten pakiet zawiera zbiór zasobów i narzędzi. | |
58 | ||
59 | %package libs | |
60 | Summary: X applications utility library | |
61 | Summary(pl.UTF-8): Biblioteka narzędziowa dla aplikacji X | |
62 | License: LGPL v3+ | |
63 | Group: X11/Applications | |
64 | Requires: gdk-pixbuf2 >= 2.22.0 | |
65 | Requires: glib2 >= 1:2.37.3 | |
66 | Requires: gtk+3 >= 3.3.16 | |
67 | ||
68 | %description libs | |
69 | X applications utility library. | |
70 | ||
71 | %description libs -l pl.UTF-8 | |
72 | Biblioteka narzędziowa dla aplikacji X. | |
73 | ||
74 | %package devel | |
75 | Summary: Header files for xapp library | |
76 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki xapp | |
77 | License: LGPL v3+ | |
78 | Group: X11/Development/Libraries | |
79 | Requires: %{name}-libs = %{version}-%{release} | |
80 | Requires: cairo-devel | |
81 | Requires: gdk-pixbuf2-devel >= 2.22.0 | |
82 | Requires: glib2-devel >= 1:2.37.3 | |
83 | Requires: gtk+3-devel >= 3.3.16 | |
84 | Requires: libgnomekbd-devel | |
85 | Requires: xorg-lib-libX11-devel | |
86 | Requires: xorg-lib-libxkbfile-devel | |
87 | ||
88 | %description devel | |
89 | Header files for xapp library. | |
90 | ||
91 | %description devel -l pl.UTF-8 | |
92 | Pliki nagłówkowe biblioteki xapp. | |
93 | ||
94 | %package static | |
95 | Summary: Static xapp library | |
96 | Summary(pl.UTF-8): Statyczna biblioteka xapp | |
97 | License: LGPL v3+ | |
98 | Group: X11/Development/Libraries | |
99 | Requires: %{name}-devel = %{version}-%{release} | |
100 | ||
101 | %description static | |
102 | Static xapp library. | |
103 | ||
104 | %description static -l pl.UTF-8 | |
105 | Statyczna biblioteka xapp. | |
106 | ||
107 | %package apidocs | |
108 | Summary: API documentation for xapp library | |
109 | Summary(pl.UTF-8): Dokumentacja API biblioteki xapp | |
110 | License: LGPL v3+ | |
111 | Group: Documentation | |
112 | %if "%{_rpmversion}" >= "5" | |
113 | BuildArch: noarch | |
114 | %endif | |
115 | ||
116 | %description apidocs | |
117 | API documentation for xapp library. | |
118 | ||
119 | %description apidocs -l pl.UTF-8 | |
120 | Dokumentacja API biblioteki xapp. | |
121 | ||
122 | %package glade | |
123 | Summary: Glade catalog file for xapp library | |
124 | Summary(pl.UTF-8): Plik katalogu Glade dla biblioteki xapp | |
125 | License: LGPL v3+ | |
126 | Group: Development/Libraries | |
127 | Requires: %{name}-devel = %{version}-%{release} | |
128 | Requires: glade >= 2 | |
129 | %if "%{_rpmversion}" >= "5" | |
130 | BuildArch: noarch | |
131 | %endif | |
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 | |
146 | %if "%{_rpmversion}" >= "5" | |
147 | BuildArch: noarch | |
148 | %endif | |
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 | ||
156 | %package -n python-xapp | |
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 | |
163 | ||
164 | %description -n python-xapp | |
165 | Python 2 binding for xapp library. | |
166 | ||
167 | %description -n python-xapp -l pl.UTF-8 | |
168 | Wiązanie Pythona 2 do biblioteki xapp. | |
169 | ||
170 | %package -n python3-xapp | |
171 | Summary: Python 3 binding for xapp library | |
172 | Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki xapp | |
173 | License: LGPL v3+ | |
174 | Group: Libraries/Python | |
175 | Requires: %{name}-libs = %{version}-%{release} | |
176 | Requires: python3-pygobject3 >= 3 | |
177 | ||
178 | %description -n python3-xapp | |
179 | Python 3 binding for xapp library. | |
180 | ||
181 | %description -n python3-xapp -l pl.UTF-8 | |
182 | Wiązanie Pythona 3 do biblioteki xapp. | |
183 | ||
184 | %prep | |
185 | %setup -q | |
186 | ||
187 | %build | |
188 | %meson build \ | |
189 | %{!?with_static_libs:--default-library=shared} \ | |
190 | %{?with_apidocs:-Ddocs=true} | |
191 | ||
192 | %ninja_build -C build | |
193 | ||
194 | %install | |
195 | rm -rf $RPM_BUILD_ROOT | |
196 | ||
197 | %ninja_install -C build | |
198 | ||
199 | %if %{with python2} | |
200 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
201 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
202 | %py_postclean | |
203 | %endif | |
204 | ||
205 | %if %{with python3} | |
206 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} | |
207 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
208 | %endif | |
209 | ||
210 | %find_lang xapp | |
211 | ||
212 | %clean | |
213 | rm -rf $RPM_BUILD_ROOT | |
214 | ||
215 | %post | |
216 | %update_icon_cache hicolor | |
217 | %glib_compile_schemas | |
218 | ||
219 | %postun | |
220 | %update_icon_cache hicolor | |
221 | %glib_compile_schemas | |
222 | ||
223 | %post libs -p /sbin/ldconfig | |
224 | %postun libs -p /sbin/ldconfig | |
225 | ||
226 | %files -f xapp.lang | |
227 | %defattr(644,root,root,755) | |
228 | %doc AUTHORS README.md | |
229 | # utility apps, not related to library | |
230 | %attr(755,root,root) %{_bindir}/pastebin | |
231 | %attr(755,root,root) %{_bindir}/upload-system-info | |
232 | %attr(755,root,root) %{_bindir}/xfce4-set-wallpaper | |
233 | # misc data, some for use with library, some independently | |
234 | %{_datadir}/glib-2.0/schemas/org.x.apps.gschema.xml | |
235 | %{_iconsdir}/hicolor/scalable/actions/add-files-to-archive-symbolic.svg | |
236 | %{_iconsdir}/hicolor/scalable/actions/category-search-symbolic.svg | |
237 | %{_iconsdir}/hicolor/scalable/actions/extract-archive-symbolic.svg | |
238 | %{_iconsdir}/hicolor/scalable/actions/media-mount-symbolic.svg | |
239 | %{_iconsdir}/hicolor/scalable/actions/view-*-symbolic*.svg | |
240 | %{_iconsdir}/hicolor/scalable/actions/xapp-*-symbolic*.svg | |
241 | %{_iconsdir}/hicolor/scalable/categories/xapp-prefs-*-symbolic.svg | |
242 | ||
243 | %files libs | |
244 | %defattr(644,root,root,755) | |
245 | %attr(755,root,root) %{_libdir}/libxapp.so.*.*.* | |
246 | %attr(755,root,root) %ghost %{_libdir}/libxapp.so.1 | |
247 | %{_libdir}/girepository-1.0/XApp-1.0.typelib | |
248 | ||
249 | %files devel | |
250 | %defattr(644,root,root,755) | |
251 | %attr(755,root,root) %{_libdir}/libxapp.so | |
252 | %{_includedir}/xapp | |
253 | %{_datadir}/gir-1.0/XApp-1.0.gir | |
254 | %{_pkgconfigdir}/xapp.pc | |
255 | ||
256 | %if %{with static_libs} | |
257 | %files static | |
258 | %defattr(644,root,root,755) | |
259 | %{_libdir}/libxapp.a | |
260 | %endif | |
261 | ||
262 | %if %{with apidocs} | |
263 | %files apidocs | |
264 | %defattr(644,root,root,755) | |
265 | %{_gtkdocdir}/libxapp | |
266 | %endif | |
267 | ||
268 | %files glade | |
269 | %defattr(644,root,root,755) | |
270 | %{_datadir}/glade/catalogs/xapp-glade-catalog.xml | |
271 | ||
272 | %files -n vala-xapp | |
273 | %defattr(644,root,root,755) | |
274 | %{_datadir}/vala/vapi/xapp.deps | |
275 | %{_datadir}/vala/vapi/xapp.vapi | |
276 | ||
277 | %if %{with python2} | |
278 | %files -n python-xapp | |
279 | %defattr(644,root,root,755) | |
280 | %{py_sitedir}/gi/overrides/XApp.py[co] | |
281 | %endif | |
282 | ||
283 | %if %{with python3} | |
284 | %files -n python3-xapp | |
285 | %defattr(644,root,root,755) | |
286 | %{py3_sitedir}/gi/overrides/XApp.py | |
287 | %{py3_sitedir}/gi/overrides/__pycache__/XApp.cpython-*.py[co] | |
288 | %endif |