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