]>
Commit | Line | Data |
---|---|---|
bd243a9f JR |
1 | # |
2 | # Conditinal build: | |
3 | %bcond_without apidocs # disable API documentation | |
4 | ||
037de69b | 5 | Summary: Nautilus extension which adds customized command in Nautilus menu |
97651a7a | 6 | Summary(pl.UTF-8): Rozszerzenie dodające własne polecenia w menu Nautilusa |
037de69b | 7 | Name: nautilus-actions |
caf90a7d | 8 | Version: 3.2.3 |
b5132e9d | 9 | Release: 2 |
2f9cdffa | 10 | License: GPL v2+ |
037de69b | 11 | Group: X11/Applications |
bd243a9f | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/nautilus-actions/3.2/%{name}-%{version}.tar.xz |
caf90a7d | 13 | # Source0-md5: 45c4715e60bb92180cb85fcbc0d58071 |
037de69b | 14 | Patch0: %{name}-desktop.patch |
de4c7004 | 15 | URL: http://www.grumz.net/node/8/ |
422938d7 MB |
16 | BuildRequires: GConf2-devel >= 2.8.0 |
17 | BuildRequires: autoconf >= 2.53 | |
a4472153 | 18 | BuildRequires: automake |
72f65fc9 | 19 | BuildRequires: dbus-glib-devel |
f73b3ec6 | 20 | BuildRequires: gettext-tools |
422938d7 | 21 | BuildRequires: glib2-devel >= 1:2.16.0 |
422938d7 | 22 | BuildRequires: gnome-common |
2f9cdffa | 23 | BuildRequires: gtk+3-devel >= 3.0.0 |
422938d7 | 24 | BuildRequires: intltool >= 0.40.0 |
2f9cdffa | 25 | BuildRequires: libgtop-devel >= 1:2.23.1 |
35ecff9e | 26 | BuildRequires: libtool |
422938d7 | 27 | BuildRequires: libunique-devel |
c87369d5 | 28 | BuildRequires: libuuid-devel |
6b64aec0 | 29 | BuildRequires: libxml2-devel >= 1:2.6.26 |
2f9cdffa | 30 | BuildRequires: nautilus-devel >= 3.0.0 |
72f65fc9 | 31 | BuildRequires: pkgconfig |
6b64aec0 | 32 | BuildRequires: rpmbuild(macros) >= 1.311 |
72f65fc9 | 33 | BuildRequires: xorg-lib-libSM-devel |
d59b5839 | 34 | Requires(post,postun): gtk-update-icon-cache |
bfc88728 | 35 | Requires(post,postun): hicolor-icon-theme |
2f9cdffa | 36 | Requires: nautilus >= 3.0.0 |
037de69b | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | Nautilus extension which allow to configure program to be launch on | |
41 | files selected into Nautilus interface. | |
42 | ||
5a184839 JR |
43 | %description -l pl.UTF-8 |
44 | Rozszerzenie pozwalające na skonfigurowanie programu uruchamianego na | |
138e471a | 45 | pliku wybranym w Nautilusie. |
46 | ||
72f65fc9 MB |
47 | %package devel |
48 | Summary: Header files for nautilus-actions | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe nautilus-actions | |
50 | Group: X11/Development/Libraries | |
51 | Requires: GConf2-devel >= 2.8.0 | |
52 | Requires: glib2-devel >= 1:2.16.0 | |
53 | ||
54 | %description devel | |
55 | Header files for nautilus-actions. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe nautilus-actions. | |
59 | ||
bd243a9f JR |
60 | %package apidocs |
61 | Summary: Nautilus Actions API documentation | |
62 | Summary(pl.UTF-8): Dokumentacja API Nautilus Actions | |
63 | Group: Documentation | |
64 | Requires: gtk-doc-common | |
b5132e9d ER |
65 | %if "%{_rpmversion}" >= "5" |
66 | BuildArch: noarch | |
67 | %endif | |
bd243a9f JR |
68 | |
69 | %description apidocs | |
70 | Nautilus Actions API documentation. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API Nautilus Actions. | |
74 | ||
037de69b | 75 | %prep |
76 | %setup -q | |
77 | %patch0 -p1 | |
78 | ||
79 | %build | |
7dec46ed | 80 | %{__intltoolize} |
422938d7 MB |
81 | %{__libtoolize} |
82 | %{__aclocal} -I m4 | |
35ecff9e | 83 | %{__autoconf} |
422938d7 | 84 | %{__autoheader} |
35ecff9e | 85 | %{__automake} |
de4c7004 | 86 | %configure \ |
bd243a9f JR |
87 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
88 | --with-html-dir=%{_gtkdocdir} \ | |
422938d7 | 89 | --disable-schemas-install |
8718bc82 | 90 | |
037de69b | 91 | %{__make} |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
35ecff9e | 97 | DESTDIR=$RPM_BUILD_ROOT |
98 | ||
bd243a9f JR |
99 | rm -rf docs-installed |
100 | cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} docs-installed | |
101 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} | |
102 | ||
2f9cdffa | 103 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la |
104 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus-actions/*.la | |
037de69b | 105 | |
bd243a9f JR |
106 | %{!?with_apidocs:%{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
107 | ||
108 | %find_lang %{name} --with-gnome --with-omf --all-name | |
16df0bb7 | 109 | |
037de69b | 110 | %clean |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
6b64aec0 | 113 | %post |
114 | %update_icon_cache hicolor | |
115 | ||
116 | %postun | |
117 | %update_icon_cache hicolor | |
118 | ||
16df0bb7 | 119 | %files -f %{name}.lang |
037de69b | 120 | %defattr(644,root,root,755) |
bd243a9f | 121 | %doc docs-installed/* |
72f65fc9 MB |
122 | %attr(755,root,root) %{_bindir}/nautilus-actions-config-tool |
123 | %attr(755,root,root) %{_bindir}/nautilus-actions-new | |
bd243a9f | 124 | %attr(755,root,root) %{_bindir}/nautilus-actions-print |
72f65fc9 | 125 | %attr(755,root,root) %{_bindir}/nautilus-actions-run |
72f65fc9 MB |
126 | %dir %{_libdir}/nautilus-actions |
127 | %attr(755,root,root) %{_libdir}/nautilus-actions/libna-core.so | |
128 | %attr(755,root,root) %{_libdir}/nautilus-actions/libna-io-desktop.so | |
129 | %attr(755,root,root) %{_libdir}/nautilus-actions/libna-io-gconf.so | |
130 | %attr(755,root,root) %{_libdir}/nautilus-actions/libna-io-xml.so | |
bd243a9f JR |
131 | %attr(755,root,root) %{_libdir}/nautilus-actions/na-delete-xmltree |
132 | %attr(755,root,root) %{_libdir}/nautilus-actions/na-gconf2key.sh | |
133 | %attr(755,root,root) %{_libdir}/nautilus-actions/na-print-schemas | |
134 | %attr(755,root,root) %{_libdir}/nautilus-actions/na-set-conf | |
35ecff9e | 135 | %{_datadir}/%{name} |
72f65fc9 MB |
136 | %{_desktopdir}/nact.desktop |
137 | %{_iconsdir}/hicolor/*/apps/*.png | |
138 | %{_iconsdir}/hicolor/*/apps/*.svg | |
2f9cdffa | 139 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libnautilus-actions-menu.so |
140 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libnautilus-actions-tracker.so | |
72f65fc9 MB |
141 | |
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
144 | %{_includedir}/nautilus-actions | |
bd243a9f JR |
145 | |
146 | %if %{with apidocs} | |
147 | %files apidocs | |
148 | %defattr(644,root,root,755) | |
149 | %{_gtkdocdir}/nautilus-actions-3 | |
150 | %endif |