]>
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 |
bd243a9f | 8 | Version: 3.2.2 |
4ddfe495 | 9 | Release: 2 |
2f9cdffa | 10 | License: GPL v2+ |
037de69b | 11 | Group: X11/Applications |
bd243a9f JR |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/nautilus-actions/3.2/%{name}-%{version}.tar.xz |
13 | # Source0-md5: a84d89d50d958edd6b6b9798c9b78904 | |
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 |
35ecff9e | 20 | BuildRequires: gettext-devel |
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 | |
65 | ||
66 | %description apidocs | |
67 | Nautilus Actions API documentation. | |
68 | ||
69 | %description apidocs -l pl.UTF-8 | |
70 | Dokumentacja API Nautilus Actions. | |
71 | ||
037de69b | 72 | %prep |
73 | %setup -q | |
74 | %patch0 -p1 | |
75 | ||
76 | %build | |
7dec46ed | 77 | %{__intltoolize} |
422938d7 MB |
78 | %{__libtoolize} |
79 | %{__aclocal} -I m4 | |
35ecff9e | 80 | %{__autoconf} |
422938d7 | 81 | %{__autoheader} |
35ecff9e | 82 | %{__automake} |
de4c7004 | 83 | %configure \ |
bd243a9f JR |
84 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
85 | --with-html-dir=%{_gtkdocdir} \ | |
422938d7 | 86 | --disable-schemas-install |
8718bc82 | 87 | |
037de69b | 88 | %{__make} |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
35ecff9e | 94 | DESTDIR=$RPM_BUILD_ROOT |
95 | ||
bd243a9f JR |
96 | rm -rf docs-installed |
97 | cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} docs-installed | |
98 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} | |
99 | ||
2f9cdffa | 100 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la |
101 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus-actions/*.la | |
037de69b | 102 | |
bd243a9f JR |
103 | %{!?with_apidocs:%{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
104 | ||
105 | %find_lang %{name} --with-gnome --with-omf --all-name | |
16df0bb7 | 106 | |
037de69b | 107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
6b64aec0 | 110 | %post |
111 | %update_icon_cache hicolor | |
112 | ||
113 | %postun | |
114 | %update_icon_cache hicolor | |
115 | ||
16df0bb7 | 116 | %files -f %{name}.lang |
037de69b | 117 | %defattr(644,root,root,755) |
bd243a9f | 118 | %doc docs-installed/* |
72f65fc9 MB |
119 | %attr(755,root,root) %{_bindir}/nautilus-actions-config-tool |
120 | %attr(755,root,root) %{_bindir}/nautilus-actions-new | |
bd243a9f | 121 | %attr(755,root,root) %{_bindir}/nautilus-actions-print |
72f65fc9 | 122 | %attr(755,root,root) %{_bindir}/nautilus-actions-run |
72f65fc9 MB |
123 | %dir %{_libdir}/nautilus-actions |
124 | %attr(755,root,root) %{_libdir}/nautilus-actions/libna-core.so | |
125 | %attr(755,root,root) %{_libdir}/nautilus-actions/libna-io-desktop.so | |
126 | %attr(755,root,root) %{_libdir}/nautilus-actions/libna-io-gconf.so | |
127 | %attr(755,root,root) %{_libdir}/nautilus-actions/libna-io-xml.so | |
bd243a9f JR |
128 | %attr(755,root,root) %{_libdir}/nautilus-actions/na-delete-xmltree |
129 | %attr(755,root,root) %{_libdir}/nautilus-actions/na-gconf2key.sh | |
130 | %attr(755,root,root) %{_libdir}/nautilus-actions/na-print-schemas | |
131 | %attr(755,root,root) %{_libdir}/nautilus-actions/na-set-conf | |
35ecff9e | 132 | %{_datadir}/%{name} |
72f65fc9 MB |
133 | %{_desktopdir}/nact.desktop |
134 | %{_iconsdir}/hicolor/*/apps/*.png | |
135 | %{_iconsdir}/hicolor/*/apps/*.svg | |
2f9cdffa | 136 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libnautilus-actions-menu.so |
137 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libnautilus-actions-tracker.so | |
72f65fc9 MB |
138 | |
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
141 | %{_includedir}/nautilus-actions | |
bd243a9f JR |
142 | |
143 | %if %{with apidocs} | |
144 | %files apidocs | |
145 | %defattr(644,root,root,755) | |
146 | %{_gtkdocdir}/nautilus-actions-3 | |
147 | %endif |