]>
Commit | Line | Data |
---|---|---|
9a1058cd | 1 | # |
2 | # Conditinal build: | |
29b9984f | 3 | %bcond_without apidocs # disable API documentation |
507d7e5c | 4 | %bcond_without beagle # disable beagle search |
2063fb7d | 5 | %bcond_without tracker # disable tracker search |
9a1058cd | 6 | # |
38fc004d | 7 | Summary: Nautilus is a file manager for the GNOME desktop environment |
8c9c4b24 ER |
8 | Summary(pl.UTF-8): Nautilus - powłoka GNOME i zarządca plików |
9 | Summary(pt_BR.UTF-8): Nautilus é um gerenciador de arquivos para o GNOME | |
5022deb0 | 10 | Name: nautilus |
b1fd3892 | 11 | Version: 2.28.1 |
8fb2a953 | 12 | Release: 2 |
9f7cb215 | 13 | License: GPL v2+ |
707ac973 | 14 | Group: X11/Applications |
55d8a20e | 15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/nautilus/2.28/%{name}-%{version}.tar.bz2 |
b1fd3892 | 16 | # Source0-md5: e759af11a0844828e2b484ff42ee0498 |
2db2fc13 | 17 | Source1: %{name}.PLD.readme |
2063fb7d | 18 | URL: http://www.gnome.org/projects/nautilus/ |
29b9984f | 19 | BuildRequires: GConf2-devel >= 2.24.0 |
9f7cb215 | 20 | BuildRequires: autoconf >= 2.54 |
5f8050fd | 21 | BuildRequires: automake >= 1:1.9 |
23f90bd5 | 22 | BuildRequires: dbus-glib-devel >= 0.74 |
34c557bb | 23 | BuildRequires: docbook-utils >= 0.6.11 |
2063fb7d | 24 | BuildRequires: exempi-devel >= 1.99.5 |
38fc004d | 25 | BuildRequires: gettext-devel |
23f90bd5 | 26 | BuildRequires: glib2-devel >= 1:2.20.0 |
b1fd3892 | 27 | BuildRequires: gnome-desktop-devel >= 2.28.0 |
23f90bd5 | 28 | BuildRequires: gtk+2-devel >= 2:2.16.0 |
09483640 | 29 | BuildRequires: gtk-doc >= 1.8 |
23f90bd5 | 30 | BuildRequires: intltool >= 0.40.1 |
2fe313db | 31 | %{?with_beagle:BuildRequires: libbeagle-devel >= 0.3.0} |
ab7700bc | 32 | BuildRequires: libexif-devel >= 1:0.6.13 |
067ec4d9 | 33 | BuildRequires: libtool |
2063fb7d | 34 | %{?with_tracker:BuildRequires: libtracker-devel} |
b1fd3892 | 35 | BuildRequires: libunique-devel |
2063fb7d | 36 | BuildRequires: libxml2-devel >= 1:2.6.31 |
1eee0929 | 37 | BuildRequires: pkgconfig |
ab7700bc | 38 | BuildRequires: rpmbuild(macros) >= 1.311 |
b441649d | 39 | Requires(post,postun): desktop-file-utils |
892cfdc1 MB |
40 | Requires(post,postun): gtk+2 |
41 | Requires(post,postun): hicolor-icon-theme | |
9a1058cd | 42 | Requires(post,postun): shared-mime-info |
2063fb7d | 43 | Requires(post,preun): GConf2 |
8caf1403 | 44 | Requires: %{name}-libs = %{version}-%{release} |
23f90bd5 | 45 | Requires: gnome-icon-theme >= 2.26.0 |
55d8a20e | 46 | Requires: gvfs >= 1.3.2 |
22d2e9fa | 47 | Obsoletes: gstreamer-player-nautilus |
c5f9c15a | 48 | Obsoletes: nautilus-gtkhtml |
ec5a29d6 | 49 | Obsoletes: nautilus-media |
e1e2166d MB |
50 | # sr@Latn vs. sr@latin |
51 | Conflicts: glibc-misc < 6:2.7 | |
5022deb0 PG |
52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
c6b5c285 | 54 | %description |
5022deb0 PG |
55 | Nautilus integrates access to files, applications, media, |
56 | Internet-based resources and the Web. Nautilus delivers a dynamic and | |
57 | rich user experience. Nautilus is an free software project developed | |
58 | under the GNU General Public License and is a core component of the | |
59 | GNOME desktop project. | |
c6b5c285 | 60 | |
2b737679 JR |
61 | %description -l pl.UTF-8 |
62 | GNU Nautilus jest programem do zarządzania plikami i graficzną powłoką | |
63 | dla GNOME. Służy również bardzo dobrze jako przeglądarka stron WWW. | |
c6b5c285 | 64 | |
2b737679 JR |
65 | %description -l pt_BR.UTF-8 |
66 | O nautilus é um excelente gerenciador de arquivos para o GNOME. | |
dae44d33 | 67 | |
707ac973 | 68 | %package libs |
69 | Summary: Nautilus libraries | |
8c9c4b24 | 70 | Summary(pl.UTF-8): Biblioteki Nautilusa |
707ac973 | 71 | Group: X11/Libraries |
72 | ||
73 | %description libs | |
74 | Nautilus libraries. | |
75 | ||
2b737679 | 76 | %description libs -l pl.UTF-8 |
707ac973 | 77 | Biblioteki Nautilusa. |
78 | ||
bc314b50 | 79 | %package devel |
4ed3035e | 80 | Summary: Libraries and include files for developing Nautilus components |
8c9c4b24 ER |
81 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia komponentów dla Nautilusa |
82 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos para desenvolvimento com o nautilus | |
707ac973 | 83 | Group: X11/Development/Libraries |
1eee0929 | 84 | Requires: %{name}-libs = %{version}-%{release} |
23f90bd5 MB |
85 | Requires: glib2-devel >= 1:2.20.0 |
86 | Requires: gtk+2-devel >= 2:2.16.0 | |
bc314b50 | 87 | |
88 | %description devel | |
4ed3035e KT |
89 | This package provides the necessary development libraries and include |
90 | files to allow you to develop Nautilus components. | |
bc314b50 | 91 | |
2b737679 JR |
92 | %description devel -l pl.UTF-8 |
93 | Biblioteki i pliki nagłówkowe potrzebne do programowania. | |
bc314b50 | 94 | |
2b737679 JR |
95 | %description devel -l pt_BR.UTF-8 |
96 | Este pacote fornece os arquivos necessários para desenvolvimento | |
38fc004d | 97 | utilizando componentes do nautilus. |
dae44d33 | 98 | |
38fc004d | 99 | %package static |
100 | Summary: Static Nautilus libraries | |
8c9c4b24 | 101 | Summary(pl.UTF-8): Biblioteki statyczne Nautilusa |
707ac973 | 102 | Group: X11/Development/Libraries |
1eee0929 | 103 | Requires: %{name}-devel = %{version}-%{release} |
38fc004d | 104 | |
105 | %description static | |
106 | Static Nautilus libraries. | |
107 | ||
2b737679 | 108 | %description static -l pl.UTF-8 |
91588ecf | 109 | Biblioteki statyczne Nautilusa. |
dae44d33 | 110 | |
29b9984f MB |
111 | %package apidocs |
112 | Summary: Nautilus API documentation | |
113 | Summary(pl.UTF-8): Dokumentacja API Nautilusa | |
114 | Group: Documentation | |
115 | Requires: gtk-doc-common | |
116 | ||
117 | %description apidocs | |
118 | Nautilus API documentation. | |
119 | ||
120 | %description apidocs -l pl.UTF-8 | |
121 | Dokumentacja API Nautilusa. | |
122 | ||
707ac973 | 123 | %prep |
ef313bbe | 124 | %setup -q |
ef313bbe | 125 | |
29b9984f MB |
126 | sed -i -e 's#io##' po/LINGUAS |
127 | rm -f po/io.po | |
e1e2166d | 128 | |
ef313bbe | 129 | %build |
09483640 | 130 | %{__gtkdocize} |
0c38bfba | 131 | %{__glib_gettextize} |
132 | %{__intltoolize} | |
4e85253d | 133 | %{__libtoolize} |
55d8a20e | 134 | %{__aclocal} -I m4 |
593e6d35 | 135 | %{__autoconf} |
a81c031d | 136 | %{__autoheader} |
593e6d35 | 137 | %{__automake} |
ef313bbe | 138 | %configure \ |
9a1058cd | 139 | --enable-static \ |
23f90bd5 | 140 | --enable-packagekit \ |
2063fb7d | 141 | %{?!with_beagle:--disable-beagle} \ |
29b9984f | 142 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
2063fb7d | 143 | %{?!with_tracker:--disable-tracker} \ |
29b9984f | 144 | --with-html-dir=%{_gtkdocdir} \ |
9a1058cd | 145 | --disable-update-mimedb |
c1620b8e | 146 | %{__make} |
ef313bbe | 147 | |
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
2063fb7d | 150 | install -d $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0 |
ef313bbe | 151 | |
152 | %{__make} install \ | |
ec96f59d | 153 | DESTDIR=$RPM_BUILD_ROOT |
ef313bbe | 154 | |
e097aa7c | 155 | # kill it - use banner instead |
2db2fc13 | 156 | install %{SOURCE1} . |
a3d2aa03 | 157 | |
09483640 MB |
158 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
159 | ||
ef313bbe | 160 | %find_lang %{name} --with-gnome --all-name |
161 | ||
162 | %clean | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
b441649d | 165 | %post |
ab7700bc | 166 | %update_mime_database |
0c38bfba | 167 | %gconf_schema_install apps_nautilus_preferences.schemas |
168 | %update_desktop_database_post | |
892cfdc1 | 169 | %update_icon_cache hicolor |
b441649d | 170 | |
171 | %preun | |
0c38bfba | 172 | %gconf_schema_uninstall apps_nautilus_preferences.schemas |
b441649d | 173 | |
174 | %postun | |
0c38bfba | 175 | %update_desktop_database_postun |
ab7700bc | 176 | %update_mime_database |
892cfdc1 | 177 | %update_icon_cache hicolor |
b441649d | 178 | |
d072a499 | 179 | %post libs -p /sbin/ldconfig |
180 | %postun libs -p /sbin/ldconfig | |
b3b1f241 | 181 | |
c52d9b8d | 182 | %files -f %{name}.lang |
5022deb0 | 183 | %defattr(644,root,root,755) |
9f7cb215 | 184 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README THANKS nautilus.PLD.readme |
2063fb7d PZ |
185 | %attr(755,root,root) %{_bindir}/nautilus |
186 | %attr(755,root,root) %{_bindir}/nautilus-autorun-software | |
187 | %attr(755,root,root) %{_bindir}/nautilus-connect-server | |
188 | %attr(755,root,root) %{_bindir}/nautilus-file-management-properties | |
55d8a20e | 189 | %attr(755,root,root) %{_libexecdir}/nautilus-convert-metadata |
8d5f7d8d | 190 | %dir %{_libdir}/nautilus |
2063fb7d | 191 | %dir %{_libdir}/nautilus/extensions-2.0 |
9a1058cd | 192 | %{_datadir}/mime/packages/*.xml |
707ac973 | 193 | %{_datadir}/nautilus |
04bd3ecd | 194 | %{_desktopdir}/*.desktop |
892cfdc1 | 195 | %{_iconsdir}/hicolor/*/*/nautilus.* |
29b9984f | 196 | %{_mandir}/man1/nautilus*.1* |
e097aa7c | 197 | %{_pixmapsdir}/nautilus |
198 | %{_sysconfdir}/gconf/schemas/apps_nautilus_preferences.schemas | |
707ac973 | 199 | |
200 | %files libs | |
201 | %defattr(644,root,root,755) | |
2063fb7d PZ |
202 | %attr(755,root,root) %{_libdir}/libnautilus-extension.so.*.*.* |
203 | %attr(755,root,root) %ghost %{_libdir}/libnautilus-extension.so.1 | |
bc314b50 | 204 | |
205 | %files devel | |
5022deb0 | 206 | %defattr(644,root,root,755) |
2063fb7d PZ |
207 | %attr(755,root,root) %{_libdir}/libnautilus-extension.so |
208 | %{_libdir}/libnautilus-extension.la | |
209 | %{_includedir}/nautilus | |
210 | %{_pkgconfigdir}/libnautilus-extension.pc | |
38fc004d | 211 | |
212 | %files static | |
213 | %defattr(644,root,root,755) | |
2063fb7d | 214 | %{_libdir}/libnautilus-extension.a |
29b9984f MB |
215 | |
216 | %if %{with apidocs} | |
217 | %files apidocs | |
218 | %defattr(644,root,root,755) | |
219 | %{_gtkdocdir}/libnautilus-extension | |
220 | %endif |