]>
Commit | Line | Data |
---|---|---|
24cc2b5c JB |
1 | # |
2 | # Conditinal build: | |
3 | %bcond_without apidocs # API documentation | |
4 | %bcond_without caja # Caja extension | |
5 | %bcond_without gconf # GConf subsystem (deprecated) | |
6 | %bcond_without nautilus # Nautilus extension | |
7 | %bcond_without nemo # Nemo extension | |
8 | ||
9 | Summary: A file-manager extension which offers user configurable context menu actions | |
10 | Summary(pl.UTF-8): Rozszerzenie zarządców plików dodające własne polecenia w menu kontekstowym | |
11 | Name: filemanager-actions | |
12 | Version: 3.4 | |
bc6389f7 | 13 | Release: 2 |
24cc2b5c JB |
14 | License: GPL v2+ |
15 | Group: X11/Applications | |
16 | Source0: http://ftp.gnome.org/pub/GNOME/sources/filemanager-actions/3.4/%{name}-%{version}.tar.xz | |
17 | # Source0-md5: 5748c9228705645ea67f273c12439955 | |
18 | Patch0: %{name}-desktop.patch | |
19 | Patch1: %{name}-no-nautilus.patch | |
20 | URL: http://www.nautilus-actions.org/ | |
21 | %{?with_gconf:BuildRequires: GConf2-devel >= 2.8.0} | |
22 | BuildRequires: autoconf >= 2.53 | |
23 | BuildRequires: automake | |
24 | %{?with_nautilus:BuildRequires: caja-devel >= 1.16.0} | |
25 | %{?with_nemo:BuildRequires: cinnamon-nemo-devel >= 1.8} | |
26 | BuildRequires: gettext-tools | |
27 | BuildRequires: glib2-devel >= 1:2.32.1 | |
28 | BuildRequires: gnome-doc-utils | |
29 | BuildRequires: gtk+3-devel >= 3.4.1 | |
30 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.16} | |
31 | BuildRequires: intltool >= 0.50.2 | |
32 | BuildRequires: libgtop-devel >= 1:2.28.4 | |
33 | BuildRequires: libtool | |
34 | BuildRequires: libuuid-devel >= 1.6.2 | |
35 | BuildRequires: libxml2-devel >= 1:2.7.8 | |
36 | %{?with_nautilus:BuildRequires: nautilus-devel >= 3.4.1} | |
37 | BuildRequires: pkgconfig | |
38 | BuildRequires: rpmbuild(macros) >= 1.311 | |
39 | BuildRequires: tar >= 1:1.22 | |
40 | BuildRequires: xz | |
41 | Requires(post,postun): gtk-update-icon-cache | |
42 | %{?with_gconf:Requires: GConf2 >= 2.8.0} | |
43 | Requires: glib2 >= 1:2.32.1 | |
44 | Requires: gtk+3 >= 3.4.1 | |
45 | Requires: hicolor-icon-theme | |
46 | Requires: libgtop >= 1:2.28.4 | |
47 | Requires: libxml2 >= 1:2.7.8 | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
51 | Nautilus-actions is an extension for Nautilus file manager which | |
52 | allows the user to add arbitrary program to be launched through the | |
53 | Nautilus file manager popup menu of selected files. | |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | Rozszerzenie pozwalające na skonfigurowanie programu uruchamianego na | |
57 | pliku wybranym w Nautilusie. | |
58 | ||
59 | %package devel | |
60 | Summary: Header files for FileManager-Actions extension interface | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu rozszerzeń FileManager-Actions | |
62 | Group: X11/Development/Libraries | |
63 | %{?with_gconf:Requires: GConf2-devel >= 2.8.0} | |
64 | Requires: gdk-pixbuf2-devel >= 2.0 | |
65 | Requires: glib2-devel >= 1:2.32.1 | |
66 | ||
67 | %description devel | |
68 | Header files for FileManager-Actions extension interface. | |
69 | ||
70 | %description devel -l pl.UTF-8 | |
71 | Pliki nagłówkowe interfejsu rozszerzeń FileManager-Actions | |
72 | ||
73 | %package apidocs | |
74 | Summary: FileManager-Actions extension API documentation | |
75 | Summary(pl.UTF-8): Dokumentacja API rozszerzeń FileManager-Actions | |
76 | Group: Documentation | |
77 | Requires: gtk-doc-common | |
24cc2b5c | 78 | BuildArch: noarch |
24cc2b5c JB |
79 | |
80 | %description apidocs | |
81 | FileManager-Actions extension API documentation. | |
82 | ||
83 | %description apidocs -l pl.UTF-8 | |
84 | Dokumentacja API rozszerzeń FileManager-Actions. | |
85 | ||
86 | %package -n caja-actions | |
87 | Summary: Caja extension which adds customized command in Caja menu | |
88 | Summary(pl.UTF-8): Rozszerzenie dodające własne polecenia w menu zarządcy plików Caja | |
89 | Group: X11/Applications | |
90 | Requires: %{name} = %{version}-%{release} | |
91 | Requires: caja >= 1.16.0 | |
92 | ||
93 | %description -n caja-actions | |
94 | Caja-actions is an extension for Caja file manager which allows the | |
95 | user to add arbitrary program to be launched through the Caja file | |
96 | manager popup menu of selected files. | |
97 | ||
98 | %description -n caja-actions -l pl.UTF-8 | |
99 | Rozszerzenie zarządcy plików Caja pozwalające dodać możliwość | |
100 | uruchamiania dowolnego programu z poziomu menu kontekstowego zarządcy | |
101 | dla wybranych plików. | |
102 | ||
103 | %package -n nautilus-actions | |
104 | Summary: Nautilus extension which adds customized command in Nautilus menu | |
105 | Summary(pl.UTF-8): Rozszerzenie dodające własne polecenia w menu Nautilusa | |
106 | Group: X11/Applications | |
107 | Requires: %{name} = %{version}-%{release} | |
108 | Requires: nautilus >= 3.4.1 | |
109 | ||
110 | %description -n nautilus-actions | |
111 | Nautilus-actions is an extension for Nautilus file manager which | |
112 | allows the user to add arbitrary program to be launched through the | |
113 | Nautilus file manager popup menu of selected files. | |
114 | ||
115 | %description -n nautilus-actions -l pl.UTF-8 | |
116 | Rozszerzenie Nautilusa pozwalające dodać możliwość uruchamiania | |
117 | dowolnego programu z poziomu menu kontekstowego zarządcy dla wybranych | |
118 | plików. | |
119 | ||
120 | %package -n cinnamon-nemo-actions | |
121 | Summary: Nemo extension which adds customized command in Nautilus menu | |
122 | Summary(pl.UTF-8): Rozszerzenie dodające własne polecenia w menu Nemo | |
123 | Group: X11/Applications | |
124 | Requires: %{name} = %{version}-%{release} | |
125 | Requires: cinnamon-nemo >= 1.8 | |
126 | ||
127 | %description -n cinnamon-nemo-actions | |
128 | Nemo-actions is an extension for Nemo file manager which allows the | |
129 | user to add arbitrary program to be launched through the Nemo file | |
130 | manager popup menu of selected files. | |
131 | ||
132 | %description -n cinnamon-nemo-actions -l pl.UTF-8 | |
133 | Rozszerzenie zarządcy plików Nemo pozwalające dodać możliwość | |
134 | uruchamiania dowolnego programu z poziomu menu kontekstowego zarządcy | |
135 | dla wybranych plików. | |
136 | ||
137 | %prep | |
138 | %setup -q | |
139 | %patch0 -p1 | |
140 | %patch1 -p1 | |
141 | ||
142 | %build | |
143 | %{__intltoolize} | |
144 | %{__libtoolize} | |
145 | %{__aclocal} -I m4 | |
146 | %{__autoconf} | |
147 | %{__autoheader} | |
148 | %{__automake} | |
149 | %configure \ | |
150 | %{?with_gconf:--enable-gconf} \ | |
151 | --enable-gtk-doc%{!?with_apidocs:=no} \ | |
152 | --disable-schemas-install \ | |
153 | --disable-silent-rules \ | |
154 | --with-html-dir=%{_gtkdocdir} \ | |
155 | %{!?with_caja:--without-caja} \ | |
156 | %{!?with_nautilus:--without-nautilus} \ | |
157 | %{!?with_nemo:--without-nemo} | |
158 | ||
159 | %{__make} | |
160 | ||
161 | %install | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %{__make} install \ | |
165 | DESTDIR=$RPM_BUILD_ROOT | |
166 | ||
167 | rm -rf docs-installed | |
168 | cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} docs-installed | |
169 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} | |
170 | ||
171 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/filemanager-actions/*.la | |
172 | %if %{with caja} | |
173 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0/*.la | |
174 | %endif | |
175 | %if %{with nautilus} | |
176 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la | |
177 | %endif | |
178 | %if %{with nemo} | |
179 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nemo/extensions-3.0/*.la | |
180 | %endif | |
181 | ||
182 | %{!?with_apidocs:%{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}} | |
183 | ||
184 | # filemanager actions gettext domain, fma-config-tool help, fma-config-tool omf | |
185 | %find_lang %{name} --with-gnome --with-omf --all-name | |
186 | ||
187 | %clean | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
190 | %post | |
191 | %update_icon_cache hicolor | |
192 | ||
193 | %postun | |
194 | %update_icon_cache hicolor | |
195 | ||
196 | %files -f %{name}.lang | |
197 | %defattr(644,root,root,755) | |
198 | %doc ChangeLog NEWS README README-GCONF TODO docs-installed/html | |
199 | %attr(755,root,root) %{_bindir}/fma-config-tool | |
200 | %dir %{_libdir}/filemanager-actions | |
201 | %attr(755,root,root) %{_libdir}/filemanager-actions/libfma-core.so | |
202 | %attr(755,root,root) %{_libdir}/filemanager-actions/libfma-io-desktop.so | |
203 | %if %{with gconf} | |
204 | %attr(755,root,root) %{_libdir}/filemanager-actions/libfma-io-gconf.so | |
205 | %endif | |
206 | %attr(755,root,root) %{_libdir}/filemanager-actions/libfma-io-xml.so | |
207 | %if "%{_libexecdir}" != "%{_libdir}" | |
208 | %dir %{_libexecdir}/filemanager-actions | |
209 | %endif | |
210 | %attr(755,root,root) %{_libexecdir}/filemanager-actions/fma-new | |
211 | %attr(755,root,root) %{_libexecdir}/filemanager-actions/fma-print | |
212 | %attr(755,root,root) %{_libexecdir}/filemanager-actions/fma-print-schemas | |
213 | %attr(755,root,root) %{_libexecdir}/filemanager-actions/fma-run | |
214 | %attr(755,root,root) %{_libexecdir}/filemanager-actions/fma-set-conf | |
215 | %if %{with gconf} | |
216 | %attr(755,root,root) %{_libexecdir}/filemanager-actions/fma-delete-xmltree | |
217 | %attr(755,root,root) %{_libexecdir}/filemanager-actions/fma-gconf2key.sh | |
218 | %endif | |
219 | %{_datadir}/filemanager-actions | |
220 | %{_datadir}/fma-config-tool | |
221 | %{_desktopdir}/fma-config-tool.desktop | |
222 | %{_iconsdir}/hicolor/*x*/apps/filemanager-actions.png | |
223 | %{_iconsdir}/hicolor/scalable/apps/filemanager-actions.svg | |
224 | ||
225 | %files devel | |
226 | %defattr(644,root,root,755) | |
227 | %doc src/api/README | |
228 | %{_includedir}/filemanager-actions | |
229 | ||
230 | %if %{with apidocs} | |
231 | %files apidocs | |
232 | %defattr(644,root,root,755) | |
233 | %{_gtkdocdir}/filemanager-actions-3 | |
234 | %endif | |
235 | ||
236 | %if %{with caja} | |
237 | %files -n caja-actions | |
238 | %defattr(644,root,root,755) | |
239 | %attr(755,root,root) %{_libdir}/caja/extensions-2.0/libfma-caja-menu.so | |
240 | %attr(755,root,root) %{_libdir}/caja/extensions-2.0/libfma-caja-tracker.so | |
241 | %endif | |
242 | ||
243 | %if %{with nautilus} | |
244 | %files -n nautilus-actions | |
245 | %defattr(644,root,root,755) | |
246 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libfma-nautilus-menu.so | |
247 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libfma-nautilus-tracker.so | |
248 | %endif | |
249 | ||
250 | %if %{with nemo} | |
251 | %files -n cinnamon-nemo-actions | |
252 | %defattr(644,root,root,755) | |
253 | %attr(755,root,root) %{_libdir}/nemo/extensions-3.0/libfma-nemo-menu.so | |
254 | %attr(755,root,root) %{_libdir}/nemo/extensions-3.0/libfma-nemo-tracker.so | |
255 | %endif |