]>
Commit | Line | Data |
---|---|---|
2d830a60 JB |
1 | # TODO: make gtkhash.spec with https://github.com/tristanheaven/gtkhash |
2 | %define nemo_ver 4.6.0 | |
3 | Summary: Extensions for Nemo file manager | |
4 | Summary(pl.UTF-8): Rozszerzenia zarządcy plików Nemo | |
5 | Name: cinnamon-nemo-extensions | |
6 | Version: 4.6.0 | |
ed85ea51 | 7 | Release: 3 |
2d830a60 JB |
8 | License: GPL v2+, GPL v3+, LGPL v2 |
9 | Group: X11/Applications | |
10 | #Source0Download: https://github.com/linuxmint/nemo-extensions/releases | |
11 | Source0: https://github.com/linuxmint/nemo-extensions/archive/%{version}/nemo-extensions-%{version}.tar.gz | |
12 | # Source0-md5: 9e923e27b402940735b81d39e07e99e4 | |
13 | #Source1Download: https://github.com/linuxmint/cinnamon-translations/releases | |
14 | Source1: https://github.com/linuxmint/cinnamon-translations/archive/%{version}/cinnamon-translations-%{version}.tar.gz | |
15 | # Source1-md5: 2a7f336ad50c2ec8ec4e80a7acf5f899 | |
16 | Patch0: %{name}-pc.patch | |
17 | Patch1: %{name}-ac.patch | |
18 | URL: https://github.com/linuxmint/nemo-extensions | |
19 | BuildRequires: autoconf >= 2.63 | |
20 | BuildRequires: automake >= 1:1.11 | |
21 | BuildRequires: cinnamon-desktop-devel >= 3.0.0 | |
22 | BuildRequires: cinnamon-nemo-devel >= %{nemo_ver} | |
23 | BuildRequires: cjs-devel >= 4.6.0 | |
24 | BuildRequires: clutter-devel >= 1.11.4 | |
25 | BuildRequires: clutter-gst-devel >= 3.0 | |
26 | BuildRequires: clutter-gtk-devel >= 1.0.1 | |
27 | BuildRequires: dbus-glib-devel >= 0.78 | |
28 | BuildRequires: freetype-devel >= 2 | |
29 | BuildRequires: gcr-ui-devel >= 3.4.0 | |
30 | BuildRequires: gdk-pixbuf2-devel >= 2.23.0 | |
31 | BuildRequires: gettext-tools | |
32 | BuildRequires: glib2-devel >= 1:2.38 | |
33 | BuildRequires: gnome-common | |
34 | BuildRequires: gobject-introspection-devel >= 0.9.2 | |
35 | BuildRequires: gpgme-devel >= 1.2.0 | |
36 | BuildRequires: gstreamer-devel >= 1.0 | |
37 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
38 | BuildRequires: gtk+3-devel >= 3.6 | |
39 | BuildRequires: gtk-doc | |
40 | BuildRequires: gtk-webkit4-devel | |
41 | BuildRequires: gtksourceview3-devel >= 3.0 | |
42 | BuildRequires: intltool >= 0.40.6 | |
43 | BuildRequires: libcryptui-devel | |
44 | BuildRequires: libgnome-keyring-devel | |
45 | BuildRequires: libmusicbrainz5-devel | |
46 | BuildRequires: libnotify-devel >= 0.7.0 | |
47 | BuildRequires: libtool >= 2:2 | |
48 | BuildRequires: linux-libc-headers >= 7:2.6.38 | |
49 | BuildRequires: meson | |
50 | BuildRequires: ninja >= 1.5 | |
51 | BuildRequires: perl-XML-Parser | |
52 | BuildRequires: pkgconfig >= 1:0.22 | |
53 | BuildRequires: python-pygobject3-common-devel | |
54 | BuildRequires: python3-devel >= 1:3.2 | |
55 | BuildRequires: python3-distutils-extra | |
56 | BuildRequires: python3-pygobject3-devel >= 3.0 | |
57 | BuildRequires: python3-setuptools | |
58 | BuildRequires: rpmbuild(macros) >= 1.736 | |
59 | BuildRequires: xreader-devel | |
60 | BuildRequires: zlib-devel | |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
62 | ||
63 | %description | |
64 | Extensions for Nemo file manager (used in Cinnamon desktop | |
65 | environment). | |
66 | ||
67 | %description -l pl.UTF-8 | |
68 | Rozszerzenia zarządcy plików Nemo (używanego w środowisku graficznym | |
69 | Cinnamon). | |
70 | ||
71 | %package common | |
72 | Summary: Common files for Nemo file manager extensions | |
73 | Summary(pl.UTF-8): Wspólne pliki rozszerzeń zarządcy plików Nemo | |
74 | Group: X11/Applications | |
75 | ||
76 | %description common | |
77 | Common files for Nemo file manager extensions. | |
78 | ||
79 | %description common -l pl.UTF-8 | |
80 | Wspólne pliki rozszerzeń zarządcy plików Nemo. | |
81 | ||
82 | %package -n cinnamon-nemo-python | |
83 | Summary: Python scripting extension for Nemo | |
84 | Summary(pl.UTF-8): Rozszerzenie Nemo o obsługę skryptów Pythona | |
85 | License: GPL v2+ | |
86 | Group: X11/Libraries | |
87 | Requires: cinnamon-nemo >= %{nemo_ver} | |
2126aa5b | 88 | Requires: python3-pygobject3 >= 3 |
2d830a60 JB |
89 | |
90 | %description -n cinnamon-nemo-python | |
91 | Python scripting extension for Nemo. | |
92 | ||
93 | %description -n cinnamon-nemo-python -l pl.UTF-8 | |
94 | Rozszerzenie Nemo o obsługę skryptów Pythona. | |
95 | ||
96 | %package -n cinnamon-nemo-python-devel | |
97 | Summary: Development files for Python scripting extension for Nemo | |
98 | Summary(pl.UTF-8): Pliki programistyczne dla rozszerzenia Nemo o obsługę skryptów w Pythonie | |
99 | License: GPL v2+ | |
100 | Group: X11/Development/Libraries | |
101 | Requires: cinnamon-nemo-python = %{version}-%{release} | |
102 | Requires: pkgconfig | |
103 | ||
104 | %description -n cinnamon-nemo-python-devel | |
105 | Development files for Python scripting extension for Nemo. | |
106 | ||
107 | %description -n cinnamon-nemo-python-devel -l pl.UTF-8 | |
108 | Pliki programistyczne dla rozszerzenia Nemo o obsługę skryptów w | |
109 | Pythonie. | |
110 | ||
111 | %package -n cinnamon-nemo-python-apidocs | |
112 | Summary: API documentation for Nemo Python scripting extension | |
113 | Summary(pl.UTF-8): Dokumentacja API rozszerzenia Nemo do obsługi skryptów Pythona | |
114 | Group: Documentation | |
115 | ||
116 | %description -n cinnamon-nemo-python-apidocs | |
117 | API documentation for Nemo Python scripting extension. | |
118 | ||
119 | %description -n cinnamon-nemo-python-apidocs -l pl.UTF-8 | |
120 | Dokumentacja API rozszerzenia Nemo do obsługi skryptów Pythona. | |
121 | ||
122 | %package -n cinnamon-nemo-extension-audio-tab | |
123 | Summary: Audio tag information extension for Nemo | |
124 | Summary(pl.UTF-8): Rozszerzenie Nemo z informacjami o znacznikach w plikach dźwiękowych | |
125 | License: GPL v3+ | |
126 | Group: X11/Applications | |
127 | Requires: %{name}-common = %{version}-%{release} | |
128 | Requires: cinnamon-nemo-python = %{version}-%{release} | |
129 | Requires: python3-mutagen | |
130 | Requires: python3-pygobject3 >= 3.0 | |
131 | %if "%{_rpmversion}" >= "4.6" | |
132 | BuildArch: noarch | |
133 | %endif | |
134 | ||
135 | %description -n cinnamon-nemo-extension-audio-tab | |
136 | audio-tab is Nemo extension to view audio tag information from the | |
137 | properties tab. | |
138 | ||
139 | %description -n cinnamon-nemo-extension-audio-tab -l pl.UTF-8 | |
140 | audio-tab to rozszerzenie Nemo do oglądania informacji o znacznikach w | |
141 | plikach dźwiękowych z poziomu zakładki właściwości. | |
142 | ||
143 | %package -n cinnamon-nemo-extension-compare | |
144 | Summary: Context menu comparison extension for Nemo file manager | |
145 | Summary(pl.UTF-8): Rozszerzenie zarządcy plików Nemo o porównywanie z menu kontekstowego | |
146 | License: GPL v3+ | |
147 | Group: X11/Applications | |
148 | Requires: %{name}-common = %{version}-%{release} | |
149 | Requires: cinnamon-nemo-python = %{version}-%{release} | |
150 | Requires: meld | |
151 | Requires: python3-pygobject3 >= 3.0 | |
152 | %if "%{_rpmversion}" >= "4.6" | |
153 | BuildArch: noarch | |
154 | %endif | |
155 | ||
156 | %description -n cinnamon-nemo-extension-compare | |
157 | Simple Nemo file manager extension, inspired by the discontinued | |
158 | diff-ext extension. It extends context menu by providing "Compare ..." | |
159 | actions. Compare tool for different situations (one-on-one, three-way, | |
160 | multi-compare) can be chosen by configurator tool. | |
161 | ||
162 | %description -n cinnamon-nemo-extension-compare -l pl.UTF-8 | |
163 | Proste rozszerzenie zarządcy plików Nemo, zainspirowane porzuconym już | |
164 | rozszerzeniem diff-ext. Rozszerza menu kontekstowe udostępniając akcje | |
165 | "Porównaj ...". Narzędzie do porównywania w różnych sytuacjach (jeden | |
166 | do jednego, trzech wersji, wielokrotnego) można wybrać w | |
167 | konfiguratorze. | |
168 | ||
169 | %package -n cinnamon-nemo-extension-dropbox | |
170 | Summary: Dropbox extension for Nemo file manager | |
171 | Summary(pl.UTF-8): Rozszerzenie Dropbox do zarządcy plików Nemo | |
172 | License: GPL v3+ | |
173 | Group: X11/Applications | |
174 | Requires(post,postun): gtk-update-icon-cache | |
175 | Requires: cinnamon-nemo >= %{nemo_ver} | |
176 | Requires: glib2 >= 1:2.38 | |
177 | Requires: hicolor-icon-theme | |
178 | ||
179 | %description -n cinnamon-nemo-extension-dropbox | |
180 | Dropbox extension for Nemo file manager. | |
181 | ||
182 | %description -n cinnamon-nemo-extension-dropbox -l pl.UTF-8 | |
183 | Rozszerzenie Dropbox do zarządcy plików Nemo. | |
184 | ||
185 | %package -n cinnamon-nemo-extension-emblems | |
186 | Summary: Emblem support for Nemo | |
187 | Summary(pl.UTF-8): Obsługa emblematów dla Nemo | |
188 | License: GPL v3+ | |
189 | Group: X11/Applications | |
190 | Requires: %{name}-common = %{version}-%{release} | |
191 | Requires: cinnamon-nemo-python = %{version}-%{release} | |
192 | Requires: python3-pygobject3 >= 3.0 | |
193 | %if "%{_rpmversion}" >= "4.6" | |
194 | BuildArch: noarch | |
195 | %endif | |
196 | ||
197 | %description -n cinnamon-nemo-extension-emblems | |
198 | Restores the emblems functionality that used to be in GNOME 2. | |
199 | ||
200 | %description -n cinnamon-nemo-extension-emblems -l pl.UTF-8 | |
201 | To rozszerzenie przywraca funkcjonalność emblematów, obecną w GNOME 2. | |
202 | ||
203 | %package -n cinnamon-nemo-extension-fileroller | |
204 | Summary: File Roller extension for Nemo | |
205 | Summary(pl.UTF-8): Rozszerzenie File Roller dla Nemo | |
206 | License: GPL v2+ | |
207 | Group: X11/Applications | |
208 | Requires: %{name}-common = %{version}-%{release} | |
209 | Requires: cinnamon-nemo >= %{nemo_ver} | |
210 | Requires: file-roller | |
211 | ||
212 | %description -n cinnamon-nemo-extension-fileroller | |
213 | This extension adds entries to the context menu in Nemo, which allow | |
214 | you to make use of the compress and extract functions of the File | |
215 | Roller archive manager. | |
216 | ||
217 | %description -n cinnamon-nemo-extension-fileroller -l pl.UTF-8 | |
218 | To rozszerzenie dodane do menu kontekstowego w Nemo pozycje | |
219 | pozwalające na wykorzystanie funkcji kompresji i rozpakowywania | |
220 | zarządcy archiwów File Roller. | |
221 | ||
222 | %package -n cinnamon-nemo-extension-gtkhash | |
223 | Summary: GtkHash extension for Nemo | |
224 | Summary(pl.UTF-8): Rozszerzenie GtkHash dla Nemo | |
225 | License: GPL v2+ | |
226 | Group: X11/Applications | |
227 | Requires(post,postun): glib2 >= 1:2.38 | |
228 | Requires: %{name}-common = %{version}-%{release} | |
229 | Requires: cinnamon-nemo >= %{nemo_ver} | |
230 | Requires: glib2 >= 1:2.38 | |
231 | ||
232 | %description -n cinnamon-nemo-extension-gtkhash | |
233 | Nemo GtkHash extension for computing message digests or checksums. | |
234 | ||
235 | %description -n cinnamon-nemo-extension-gtkhash -l pl.UTF-8 | |
236 | Rozszerzenie Nemo GtkHash do obliczania skrótów lub sum kontrolnych. | |
237 | ||
238 | %package -n cinnamon-nemo-extension-image-converter | |
239 | Summary: Nemo extension to mass resize images | |
240 | Summary(pl.UTF-8): Rozszerzenie Nemo do masowej zmiany rozmiarów obrazów | |
241 | License: GPL v2+ | |
242 | Group: X11/Applications | |
243 | Requires: %{name}-common = %{version}-%{release} | |
244 | Requires: cinnamon-nemo >= %{nemo_ver} | |
245 | Requires: ImageMagick | |
246 | ||
247 | %description -n cinnamon-nemo-extension-image-converter | |
248 | Adds a "Resize Images..." menu item to the context menu. This opens a | |
249 | dialog where you set the desired image size and file name. | |
250 | ||
251 | %description -n cinnamon-nemo-extension-image-converter -l pl.UTF-8 | |
252 | To rozszerzenie dodaje element menu kontekstowego "Zmień rozmiar | |
253 | zdjęć...", otwierający okno dialogowe, gdzie można ustawić pożądany | |
254 | rozmiar obrazu i nazwę pliku. | |
255 | ||
256 | %package -n cinnamon-nemo-extension-media-columns | |
257 | Summary: Nemo Media Columns extension | |
258 | Summary(pl.UTF-8): Rozszerzenie Nemo Media Columns | |
259 | License: GPL v3 | |
260 | Group: X11/Applications | |
261 | Requires: %{name}-common = %{version}-%{release} | |
262 | Requires: cinnamon-nemo-python = %{version}-%{release} | |
263 | Requires: gdk-pixbuf2 >= 2 | |
264 | Requires: gexiv2 >= 0.10 | |
265 | Requires: python3-PyPDF2 | |
266 | Requires: python3-pygobject3 >= 3.0 | |
267 | Requires: python3-mutagen | |
268 | Requires: python3-pillow | |
269 | Requires: python3-pymediainfo | |
270 | ||
271 | %description -n cinnamon-nemo-extension-media-columns | |
272 | This Nemo File Manager extension provides additional columns for the | |
273 | List View related to media-type files. | |
274 | ||
275 | %description -n cinnamon-nemo-extension-media-columns -l pl.UTF-8 | |
276 | To rozszerzenie zarządcy plików Nemo zapewnia na widoku listy | |
277 | dodatkowe kolumny związane z plikami multimedialnymi. | |
278 | ||
279 | %package -n cinnamon-nemo-extension-pastebin | |
280 | Summary: Pastebin extension for Nemo | |
281 | Summary(pl.UTF-8): Rozszerzenie Pastebin dla Nemo | |
282 | License: GPL v2+ | |
283 | Group: X11/Applications | |
284 | Requires(post,postun): glib2 >= 1:2.38 | |
285 | Requires(post,postun): gtk-update-icon-cache | |
286 | Requires: %{name}-common = %{version}-%{release} | |
287 | Requires: cinnamon-nemo-python = %{version}-%{release} | |
288 | Requires: hicolor-icon-theme | |
289 | Requires: libnotify >= 0.7 | |
290 | Requires: pastebinit | |
291 | Requires: python3-pygobject3 >= 3.0 | |
292 | %if "%{_rpmversion}" >= "4.6" | |
293 | BuildArch: noarch | |
294 | %endif | |
295 | ||
296 | %description -n cinnamon-nemo-extension-pastebin | |
297 | nemo-pastebin is an extension for the Nemo file manager, which allows | |
298 | users to send files to pastebins just a right-click away. | |
299 | ||
300 | %description -n cinnamon-nemo-extension-pastebin -l pl.UTF-8 | |
301 | nemo-pastebin to rozszerzenie zarządcy plików Nemo, pozwalające | |
302 | użytkownikom wysyłać pliki do pastebinów zwykłym kliknięciem prawym | |
303 | przyciskiem. | |
304 | ||
305 | %package -n cinnamon-nemo-extension-preview | |
306 | Summary: A quick previewer for Nemo | |
307 | Summary(pl.UTF-8): Szybki podgląd dla Nemo | |
308 | License: GPL v2+ | |
309 | Group: X11/Applications | |
310 | Requires: %{name}-common = %{version}-%{release} | |
311 | Requires: cinnamon-nemo >= %{nemo_ver} | |
312 | ||
313 | %description -n cinnamon-nemo-extension-preview | |
314 | Nemo Preview is a GtkClutter and Javascript-based quick previewer for | |
315 | Nemo. It is capable of previewing documents, PDFs, sound and video | |
316 | files, some text files, and possibly others in the future. | |
317 | ||
318 | %description -n cinnamon-nemo-extension-preview -l pl.UTF-8 | |
319 | Nemo Preview to oparty na bibliotece GtkClutter i JavaScripcie szybki | |
320 | podgląd dla Nemo. Potrafi podglądać dokumenty, pliki PDF, dźwiękowe i | |
321 | filmowe, niektóre pliki tekstowe, a w przyszłości inne. | |
322 | ||
323 | %package -n cinnamon-nemo-extension-repairer | |
324 | Summary: Nemo extension for filename encoding repair | |
325 | Summary(pl.UTF-8): Rozszerzenie Nemo do naprawy kodowania nazw plików | |
326 | License: GPL v2+ | |
327 | Group: X11/Applications | |
328 | Requires: %{name}-common = %{version}-%{release} | |
329 | Requires: cinnamon-nemo >= %{nemo_ver} | |
330 | ||
331 | %description -n cinnamon-nemo-extension-repairer | |
332 | nemo-filename-repairer is a Nemo extension which repairs filename | |
333 | which uses wrong encoding in Nemo. This extension provides the context | |
334 | menu for any file whose filename uses wrong encoding, so that you | |
335 | cannot read the filename in Nemo. You can find a candidate for | |
336 | filename in context menu or submenu. This extension also provides a | |
337 | decoded name for URL encoded filename. | |
338 | ||
339 | %description -n cinnamon-nemo-extension-repairer -l pl.UTF-8 | |
340 | nemo-filename-repairer to rozszerzenie Nemo służące do naprawiania | |
341 | nazw plików, które w Nemo używają złego kodowania. Rozszerzenie | |
342 | udostępnia menu kontekstowe dla każdego pliku ze złym kodowaniem, | |
343 | pozwalając wybrać kandydata dla właściwej nazwy. Rozszerzenie | |
344 | pozwala także dekodować nazwy z kodowania URL. | |
345 | ||
346 | %package -n cinnamon-nemo-extension-seahorse | |
347 | Summary: PGP encryption and signing for Nemo | |
348 | Summary(pl.UTF-8): Szyfrowanie i podpisy PGP dla Nemo | |
349 | License: GPL v2+ | |
350 | Group: X11/Applications | |
351 | Requires(post,postun): glib2 >= 1:2.38 | |
352 | Requires: %{name}-common = %{version}-%{release} | |
353 | Requires: cinnamon-nemo >= %{nemo_ver} | |
354 | Requires: dbus-glib >= 0.78 | |
355 | Requires: gcr >= 3.4.0 | |
356 | Requires: glib2 >= 1:2.38 | |
357 | Requires: gnupg2 >= 2.2 | |
358 | Requires: gpgme >= 1.2.0 | |
359 | Requires: libnotify >= 0.7.0 | |
360 | Requires: seahorse | |
361 | ||
362 | %description -n cinnamon-nemo-extension-seahorse | |
363 | Seahorse Nemo is an extension for Nemo which allows encryption and | |
364 | decryption of OpenPGP files using GnuPG. | |
365 | ||
366 | %description -n cinnamon-nemo-extension-seahorse -l pl.UTF-8 | |
367 | Seahorse Nemo to rozszerzenie Nemo pozwalające na szyfrowanie i | |
368 | odszyfrowywanie plików OpenPGP przy użyciu GnuPG. | |
369 | ||
370 | %package -n cinnamon-nemo-extension-share | |
371 | Summary: Nemo extension to share folder using Samba | |
372 | Summary(pl.UTF-8): Rozszerzenie Nemo do współdzielenia folderów przy użyciu Samby | |
373 | License: GPL v2+ | |
374 | Group: X11/Applications | |
375 | Requires: %{name}-common = %{version}-%{release} | |
376 | Requires: cinnamon-desktop >= 3.0.0 | |
377 | Requires: cinnamon-nemo >= %{nemo_ver} | |
378 | Requires: glib2 >= 1:2.38 | |
379 | Requires: samba-client | |
380 | ||
381 | %description -n cinnamon-nemo-extension-share | |
382 | Nemo Share allows you to quickly share a folder from the Nemo file | |
383 | manager without requiring root access. | |
384 | ||
385 | %description -n cinnamon-nemo-extension-share -l pl.UTF-8 | |
386 | Nemo Share pozwala na szybkie udostępnienie folderu z zarządcy plików | |
387 | Nemo bez wymagania dostępu administratora. | |
388 | ||
389 | %package -n cinnamon-nemo-extension-terminal | |
390 | Summary: Embedded terminal window for Nemo | |
391 | Summary(pl.UTF-8): Osadzone okno terminala dla Nemo | |
392 | License: GPL v3+ | |
393 | Group: X11/Applications | |
394 | Requires(post,postun): glib2 >= 1:2.38 | |
395 | Requires: %{name}-common = %{version}-%{release} | |
396 | Requires: cinnamon-nemo-python = %{version}-%{release} | |
397 | Requires: gtk+3 >= 3.6 | |
398 | Requires: python3-pygobject3 >= 3.0 | |
399 | Requires: vte >= 0.38 | |
400 | Requires: xapps >= 1.0 | |
401 | %if "%{_rpmversion}" >= "4.6" | |
402 | BuildArch: noarch | |
403 | %endif | |
404 | ||
405 | %description -n cinnamon-nemo-extension-terminal | |
406 | Embedded terminal window for Nemo. | |
407 | ||
408 | %description -n cinnamon-nemo-extension-terminal -l pl.UTF-8 | |
409 | Osadzone okno terminala dla Nemo. | |
410 | ||
411 | %prep | |
412 | %setup -q -n nemo-extensions-%{version} -a1 | |
413 | %patch0 -p1 | |
414 | %patch1 -p1 | |
415 | ||
416 | %build | |
417 | cd nemo-python | |
418 | %meson build \ | |
419 | -Dgtk_doc=true | |
420 | %ninja_build -C build | |
421 | ||
422 | cd ../nemo-audio-tab | |
423 | %py3_build | |
424 | ||
425 | cd ../nemo-compare | |
426 | %py3_build | |
427 | ||
428 | cd ../nemo-dropbox | |
429 | %{__libtoolize} | |
430 | %{__aclocal} | |
431 | %{__autoconf} | |
432 | %{__autoheader} | |
433 | %{__automake} | |
434 | %configure \ | |
435 | --disable-static | |
436 | %{__make} | |
437 | ||
438 | cd ../nemo-emblems | |
439 | %py3_build | |
440 | ||
441 | cd ../nemo-fileroller | |
442 | %{__libtoolize} | |
443 | %{__aclocal} | |
444 | %{__autoconf} | |
445 | %{__autoheader} | |
446 | %{__automake} | |
447 | %configure \ | |
448 | --disable-static | |
449 | %{__make} | |
450 | ||
451 | cd ../nemo-gtkhash | |
452 | install -d m4 | |
453 | %{__glib_gettextize} | |
454 | %{__intltoolize} | |
455 | %{__libtoolize} | |
456 | %{__aclocal} -I m4 | |
457 | %{__autoconf} | |
458 | %{__autoheader} | |
459 | %{__automake} | |
460 | %configure \ | |
461 | --enable-linux-crypto \ | |
462 | --enable-nemo \ | |
463 | --disable-silent-rules \ | |
464 | --with-gtk=3.0 | |
465 | %{__make} | |
466 | ||
467 | cd ../nemo-image-converter | |
468 | install -d m4 | |
469 | %{__glib_gettextize} | |
470 | %{__intltoolize} | |
471 | %{__libtoolize} | |
472 | %{__aclocal} -I m4 | |
473 | %{__autoconf} | |
474 | %{__autoheader} | |
475 | %{__automake} | |
476 | %configure \ | |
477 | --disable-silent-rules | |
478 | %{__make} | |
479 | ||
480 | cd ../nemo-media-columns | |
481 | %py3_build | |
482 | ||
483 | cd ../nemo-pastebin | |
484 | %py3_build | |
485 | ||
486 | cd ../nemo-preview | |
487 | install -d m4 | |
488 | %{__intltoolize} | |
489 | %{__libtoolize} | |
490 | %{__aclocal} -I m4 | |
491 | %{__autoconf} | |
492 | %{__autoheader} | |
493 | %{__automake} | |
494 | %configure \ | |
495 | --disable-silent-rules | |
496 | %{__make} | |
497 | ||
498 | cd ../nemo-repairer | |
499 | install -d m4 | |
500 | %{__glib_gettextize} | |
501 | %{__intltoolize} | |
502 | %{__libtoolize} | |
503 | %{__aclocal} -I m4 | |
504 | %{__autoconf} | |
505 | %{__autoheader} | |
506 | %{__automake} | |
507 | %configure \ | |
508 | --disable-static | |
509 | %{__make} | |
510 | ||
511 | cd ../nemo-seahorse | |
512 | %{__glib_gettextize} | |
513 | %{__intltoolize} | |
514 | %{__libtoolize} | |
515 | %{__aclocal} -I m4 | |
516 | %{__autoconf} | |
517 | %{__autoheader} | |
518 | %{__automake} | |
519 | %configure \ | |
520 | GNUPG=/usr/bin/gpg \ | |
521 | --disable-gpg-check \ | |
522 | --disable-silent-rules | |
523 | %{__make} | |
524 | ||
525 | cd ../nemo-share | |
526 | install -d m4 | |
527 | %{__glib_gettextize} | |
528 | %{__intltoolize} | |
529 | %{__libtoolize} | |
530 | %{__aclocal} -I m4 | |
531 | %{__autoconf} | |
532 | %{__autoheader} | |
533 | %{__automake} | |
534 | %configure \ | |
535 | --disable-static | |
536 | %{__make} | |
537 | ||
538 | cd ../nemo-terminal | |
539 | %py3_build | |
540 | cd .. | |
541 | ||
542 | %{__make} -C cinnamon-translations-%{version} | |
543 | ||
544 | %install | |
545 | rm -rf $RPM_BUILD_ROOT | |
546 | ||
547 | %ninja_install -C nemo-python/build | |
548 | ||
549 | install -d $RPM_BUILD_ROOT%{_examplesdir}/cinnamon-nemo-python-%{version} | |
550 | cp -p nemo-python/examples/* $RPM_BUILD_ROOT%{_examplesdir}/cinnamon-nemo-python-%{version} | |
551 | ||
552 | cd nemo-audio-tab | |
553 | %py3_install | |
554 | ||
555 | cd ../nemo-compare | |
556 | %py3_install | |
557 | cd .. | |
558 | ||
559 | %{__make} -C nemo-dropbox install \ | |
560 | DESTDIR=$RPM_BUILD_ROOT | |
561 | ||
562 | cd nemo-emblems | |
563 | %py3_install | |
564 | cd .. | |
565 | ||
566 | %{__make} -C nemo-fileroller install \ | |
567 | DESTDIR=$RPM_BUILD_ROOT | |
568 | ||
569 | %{__make} -C nemo-gtkhash install \ | |
570 | DESTDIR=$RPM_BUILD_ROOT | |
571 | ||
572 | %{__make} -C nemo-image-converter install \ | |
573 | DESTDIR=$RPM_BUILD_ROOT | |
574 | ||
575 | cd nemo-media-columns | |
576 | %py3_install | |
577 | ||
578 | cd ../nemo-pastebin | |
579 | %py3_install | |
580 | cd .. | |
581 | ||
582 | %{__make} -C nemo-preview install \ | |
583 | DESTDIR=$RPM_BUILD_ROOT | |
584 | ||
585 | %{__make} -C nemo-repairer install \ | |
586 | DESTDIR=$RPM_BUILD_ROOT | |
587 | ||
588 | %{__make} -C nemo-seahorse install \ | |
589 | DESTDIR=$RPM_BUILD_ROOT | |
590 | ||
591 | %{__make} -C nemo-share install \ | |
592 | DESTDIR=$RPM_BUILD_ROOT | |
593 | ||
594 | cd nemo-terminal | |
595 | %py3_install | |
596 | cd .. | |
597 | ||
598 | # drop useless .la | |
599 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nemo/extensions-3.0/libnemo-*.la | |
600 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nemo/extensions-3.0/libgtkhash-properties.la | |
601 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nemo-preview/libnemo-preview-1.0.la | |
602 | ||
603 | #%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/nemo-python/ | |
604 | ||
605 | cd cinnamon-translations-%{version} | |
606 | for f in usr/share/locale/*/LC_MESSAGES/nemo-extensions.mo ; do | |
607 | install -D "$f" "$RPM_BUILD_ROOT/$f" | |
608 | done | |
609 | cd .. | |
610 | ||
611 | # not supported by glibc 2.31 | |
612 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
613 | ||
614 | # common for nemo-audio-tab[py],nemo-compare[py],nemo-emblems[py],nemo-fileroller[so],nemo-gtkhash[so],nemo-image-converter[so],nemo-media-columns[py],nemo-pastebin[py],nemo-preview[so],nemo-repairer[so],nemo-seahorse[so],nemo-share[so],nemo-terminal[py] | |
615 | %find_lang nemo-extensions | |
616 | # not used(?), C part doesn't have defined domain, JS part uses "nemo-extensions" domain | |
617 | %find_lang nemo-preview | |
618 | # not used actually(?), sources have "nemo-extensions" domain hardcoded | |
619 | %find_lang nemo-share | |
620 | ||
621 | %clean | |
622 | rm -rf $RPM_BUILD_ROOT | |
623 | ||
624 | %post -n cinnamon-nemo-extension-dropbox | |
625 | %update_icon_cache hicolor | |
626 | ||
627 | %postun -n cinnamon-nemo-extension-dropbox | |
628 | %update_icon_cache hicolor | |
629 | ||
630 | %post -n cinnamon-nemo-extension-gtkhash | |
631 | %glib_compile_schemas | |
632 | ||
633 | %postun -n cinnamon-nemo-extension-gtkhash | |
634 | %glib_compile_schemas | |
635 | ||
636 | %post -n cinnamon-nemo-extension-pastebin | |
637 | %glib_compile_schemas | |
638 | %update_icon_cache hicolor | |
639 | ||
640 | %postun -n cinnamon-nemo-extension-pastebin | |
641 | %glib_compile_schemas | |
642 | %update_icon_cache hicolor | |
643 | ||
644 | %post -n cinnamon-nemo-extension-seahorse | |
645 | %glib_compile_schemas | |
646 | ||
647 | %postun -n cinnamon-nemo-extension-seahorse | |
648 | %glib_compile_schemas | |
649 | ||
650 | %post -n cinnamon-nemo-extension-terminal | |
651 | %glib_compile_schemas | |
652 | ||
653 | %postun -n cinnamon-nemo-extension-terminal | |
654 | %glib_compile_schemas | |
655 | ||
656 | %files common -f nemo-extensions.lang | |
657 | %defattr(644,root,root,755) | |
658 | %doc README | |
659 | ||
660 | %files -n cinnamon-nemo-python | |
661 | %defattr(644,root,root,755) | |
662 | %doc nemo-python/{AUTHORS,README} | |
663 | %attr(755,root,root) %{_libdir}/nemo/extensions-3.0/libnemo-python.so | |
664 | %dir %{_datadir}/nemo-python | |
665 | %dir %{_datadir}/nemo-python/extensions | |
666 | ||
667 | %files -n cinnamon-nemo-python-devel | |
668 | %defattr(644,root,root,755) | |
669 | %{_pkgconfigdir}/nemo-python.pc | |
670 | ||
671 | %files -n cinnamon-nemo-python-apidocs | |
672 | %defattr(644,root,root,755) | |
673 | %{_gtkdocdir}/nemo-python | |
674 | %{_examplesdir}/cinnamon-nemo-python-%{version} | |
675 | ||
676 | %files -n cinnamon-nemo-extension-audio-tab | |
677 | %defattr(644,root,root,755) | |
678 | %{_datadir}/nemo-python/extensions/nemo-audio-tab.py | |
2126aa5b | 679 | %dir %{_datadir}/nemo-audio-tab |
2d830a60 JB |
680 | %{_datadir}/nemo-audio-tab/nemo-audio-tab.glade |
681 | %{py3_sitescriptdir}/nemo_audio_tab-%{version}-py*.egg-info | |
682 | ||
683 | %files -n cinnamon-nemo-extension-compare | |
684 | %defattr(644,root,root,755) | |
685 | %attr(755,root,root) %{_bindir}/nemo-compare-preferences | |
686 | %{_datadir}/nemo-python/extensions/nemo-compare.py | |
2126aa5b | 687 | %dir %{_datadir}/nemo-compare |
2d830a60 JB |
688 | %{_datadir}/nemo-compare/nemo-compare-preferences.py |
689 | %{_datadir}/nemo-compare/utils.py* | |
690 | %{py3_sitescriptdir}/nemo_compare-%{version}-py?.?.egg-info/ | |
691 | ||
692 | %files -n cinnamon-nemo-extension-dropbox | |
693 | %defattr(644,root,root,755) | |
694 | %doc nemo-dropbox/{AUTHORS,README} | |
695 | %attr(755,root,root) %{_libdir}/nemo/extensions-3.0/libnemo-dropbox.so | |
696 | %{_datadir}/nemo-dropbox | |
697 | %{_iconsdir}/hicolor/*x*/apps/dropbox.png | |
698 | ||
699 | %files -n cinnamon-nemo-extension-emblems | |
700 | %defattr(644,root,root,755) | |
701 | %{_datadir}/nemo-python/extensions/nemo-emblems.py | |
702 | %{py3_sitescriptdir}/nemo_emblems-%{version}-py?.?.egg-info/ | |
703 | ||
704 | %files -n cinnamon-nemo-extension-fileroller | |
705 | %defattr(644,root,root,755) | |
706 | %doc nemo-fileroller/README | |
707 | %attr(755,root,root) %{_libdir}/nemo/extensions-3.0/libnemo-fileroller.so | |
708 | ||
709 | %files -n cinnamon-nemo-extension-gtkhash | |
710 | %defattr(644,root,root,755) | |
711 | %doc nemo-gtkhash/{AUTHORS,NEWS,README} | |
712 | %attr(755,root,root) %{_bindir}/gtkhash | |
713 | %attr(755,root,root) %{_libdir}/nemo/extensions-3.0/libgtkhash-properties.so | |
714 | %{_datadir}/glib-2.0/schemas/app.gtkhash.gschema.xml | |
715 | %{_datadir}/glib-2.0/schemas/org.nemo.extensions.gtkhash.gschema.xml | |
716 | %{_datadir}/nemo-gtkhash | |
717 | ||
718 | %files -n cinnamon-nemo-extension-image-converter | |
719 | %defattr(644,root,root,755) | |
720 | %doc nemo-image-converter/{AUTHORS,NEWS,README} | |
721 | %attr(755,root,root) %{_libdir}/nemo/extensions-3.0/libnemo-image-converter.so | |
722 | %{_datadir}/nemo-image-converter | |
723 | ||
724 | %files -n cinnamon-nemo-extension-media-columns | |
725 | %defattr(644,root,root,755) | |
726 | %doc nemo-media-columns/{AUTHORS,MAINTAINERS,README} | |
727 | %{_datadir}/nemo-python/extensions/nemo-media-columns.py | |
728 | %{py3_sitescriptdir}/nemo_media_columns-%{version}-py*.egg-info | |
729 | ||
730 | %files -n cinnamon-nemo-extension-pastebin | |
731 | %defattr(644,root,root,755) | |
732 | %doc nemo-pastebin/{NEWS,README} | |
733 | %attr(755,root,root) %{_bindir}/nemo-pastebin-configurator | |
734 | %{_datadir}/nemo-python/extensions/nemo-pastebin.py | |
735 | %{_datadir}/glib-2.0/schemas/nemo-pastebin.gschema.xml | |
736 | %{_datadir}/nemo-pastebin | |
737 | %{py3_sitescriptdir}/nemo_pastebin-%{version}-py*.egg-info | |
738 | %{_iconsdir}/hicolor/48x48/apps/nemo-pastebin.png | |
739 | %{_iconsdir}/hicolor/scalable/apps/nemo-pastebin.svg | |
740 | ||
741 | %files -n cinnamon-nemo-extension-preview -f nemo-preview.lang | |
742 | %defattr(644,root,root,755) | |
743 | %doc nemo-preview/{AUTHORS,README,TODO} | |
744 | %attr(755,root,root) %{_bindir}/nemo-preview | |
745 | %attr(755,root,root) %{_libexecdir}/nemo-preview-start | |
746 | %dir %{_libdir}/nemo-preview | |
747 | %attr(755,root,root) %{_libdir}/nemo-preview/libnemo-preview-1.0.so | |
748 | %{_libdir}/nemo-preview/girepository-1.0 | |
749 | %dir %{_datadir}/nemo-preview | |
750 | %{_datadir}/nemo-preview/gir-1.0 | |
751 | %{_datadir}/nemo-preview/js | |
752 | %{_datadir}/nemo-preview/style | |
753 | %{_datadir}/dbus-1/services/org.nemo.Preview.service | |
754 | ||
755 | %files -n cinnamon-nemo-extension-repairer | |
756 | %defattr(644,root,root,755) | |
757 | %doc nemo-repairer/{AUTHORS,NEWS,README} | |
758 | %attr(755,root,root) %{_bindir}/nemo-filename-repairer | |
759 | %attr(755,root,root) %{_libdir}/nemo/extensions-3.0/libnemo-filename-repairer.so | |
760 | %{_datadir}/nemo-filename-repairer | |
761 | ||
762 | %files -n cinnamon-nemo-extension-seahorse | |
763 | %defattr(644,root,root,755) | |
764 | %doc nemo-seahorse/{AUTHORS,MAINTAINERS,NEWS,README} | |
765 | %attr(755,root,root) %{_bindir}/nemo-seahorse-tool | |
766 | %attr(755,root,root) %{_libdir}/nemo/extensions-3.0/libnemo-seahorse.so | |
767 | %{_desktopdir}/nemo-seahorse-pgp-*.desktop | |
768 | %{_datadir}/glib-2.0/schemas/org.nemo.plugins.seahorse*gschema.xml | |
769 | %{_datadir}/nemo-seahorse | |
770 | %{_mandir}/man1/nemo-seahorse-tool.1* | |
771 | ||
772 | %files -n cinnamon-nemo-extension-share -f nemo-share.lang | |
773 | %defattr(644,root,root,755) | |
774 | %doc nemo-share/AUTHORS | |
775 | %{_libdir}/nemo/extensions-3.0/libnemo-share.so | |
776 | %{_datadir}/nemo-share | |
777 | %{_datadir}/polkit-1/actions/org.nemo.share.samba_install.policy | |
778 | ||
779 | %files -n cinnamon-nemo-extension-terminal | |
780 | %defattr(644,root,root,755) | |
781 | %doc nemo-terminal/{AUTHORS,README} | |
782 | %attr(755,root,root) %{_bindir}/nemo-terminal-prefs | |
783 | %{_datadir}/nemo-python/extensions/nemo_terminal.py | |
784 | %{_datadir}/nemo-terminal | |
785 | %{_datadir}/glib-2.0/schemas/org.nemo.extensions.nemo-terminal.gschema.xml | |
786 | %{py3_sitescriptdir}/nemo_terminal-%{version}-py*.egg-info |