]>
Commit | Line | Data |
---|---|---|
9a1058cd | 1 | # |
2 | # Conditinal build: | |
29b9984f | 3 | %bcond_without apidocs # disable API documentation |
9a1058cd | 4 | # |
38fc004d | 5 | Summary: Nautilus is a file manager for the GNOME desktop environment |
8c9c4b24 ER |
6 | Summary(pl.UTF-8): Nautilus - powłoka GNOME i zarządca plików |
7 | Summary(pt_BR.UTF-8): Nautilus é um gerenciador de arquivos para o GNOME | |
5022deb0 | 8 | Name: nautilus |
93ae7777 MB |
9 | Version: 3.0.0 |
10 | Release: 1 | |
9f7cb215 | 11 | License: GPL v2+ |
707ac973 | 12 | Group: X11/Applications |
93ae7777 MB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/nautilus/3.0/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: 9adbdb30d988e4a200fc76863b3bafae | |
2db2fc13 | 15 | Source1: %{name}.PLD.readme |
2063fb7d | 16 | URL: http://www.gnome.org/projects/nautilus/ |
9f7cb215 | 17 | BuildRequires: autoconf >= 2.54 |
5f8050fd | 18 | BuildRequires: automake >= 1:1.9 |
e8c191e0 | 19 | BuildRequires: docbook-dtd412-xml |
93ae7777 | 20 | BuildRequires: exempi-devel >= 2.1.0 |
38fc004d | 21 | BuildRequires: gettext-devel |
93ae7777 MB |
22 | BuildRequires: glib2-devel >= 1:2.28.0 |
23 | BuildRequires: gnome-desktop-devel >= 3.0.0 | |
7e6e46c3 | 24 | BuildRequires: gobject-introspection-devel >= 0.6.4 |
93ae7777 MB |
25 | BuildRequires: gsettings-desktop-schemas-devel |
26 | BuildRequires: gtk+3-devel >= 3.0.8 | |
09483640 | 27 | BuildRequires: gtk-doc >= 1.8 |
23f90bd5 | 28 | BuildRequires: intltool >= 0.40.1 |
93ae7777 MB |
29 | BuildRequires: libexif-devel >= 1:0.6.20 |
30 | BuildRequires: libnotify-devel >= 0.7 | |
e8c191e0 | 31 | BuildRequires: libselinux-devel |
067ec4d9 | 32 | BuildRequires: libtool |
93ae7777 | 33 | BuildRequires: libxml2-devel >= 1:2.7.8 |
1eee0929 | 34 | BuildRequires: pkgconfig |
93ae7777 | 35 | BuildRequires: rpmbuild(macros) >= 1.601 |
e8c191e0 | 36 | # libegg |
37 | BuildRequires: xorg-lib-libSM-devel | |
b441649d | 38 | Requires(post,postun): desktop-file-utils |
22f321fa | 39 | Requires(post,postun): gtk-update-icon-cache |
9a1058cd | 40 | Requires(post,postun): shared-mime-info |
93ae7777 | 41 | Requires(post,postun): glib2 >= 1:2.26.0 |
8caf1403 | 42 | Requires: %{name}-libs = %{version}-%{release} |
93ae7777 | 43 | Requires: glib2 >= 1:2.28.0 |
23f90bd5 | 44 | Requires: gnome-icon-theme >= 2.26.0 |
93ae7777 MB |
45 | Requires: gsettings-desktop-schemas |
46 | Requires: gvfs >= 1.8.0 | |
47 | Requires: hicolor-icon-theme | |
dc0b317e | 48 | Provides: gnome-volume-manager |
5b4f83db | 49 | Obsoletes: eel |
dc0b317e | 50 | Obsoletes: gnome-volume-manager |
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} |
93ae7777 MB |
89 | Requires: glib2-devel >= 1:2.28.0 |
90 | Requires: gtk+3-devel >= 3.0.8 | |
e8c191e0 | 91 | Requires: libselinux-devel |
5b4f83db | 92 | Obsoletes: eel-devel |
bc314b50 | 93 | |
94 | %description devel | |
4ed3035e KT |
95 | This package provides the necessary development libraries and include |
96 | files to allow you to develop Nautilus components. | |
bc314b50 | 97 | |
2b737679 JR |
98 | %description devel -l pl.UTF-8 |
99 | Biblioteki i pliki nagłówkowe potrzebne do programowania. | |
bc314b50 | 100 | |
2b737679 JR |
101 | %description devel -l pt_BR.UTF-8 |
102 | Este pacote fornece os arquivos necessários para desenvolvimento | |
38fc004d | 103 | utilizando componentes do nautilus. |
dae44d33 | 104 | |
38fc004d | 105 | %package static |
106 | Summary: Static Nautilus libraries | |
8c9c4b24 | 107 | Summary(pl.UTF-8): Biblioteki statyczne Nautilusa |
707ac973 | 108 | Group: X11/Development/Libraries |
1eee0929 | 109 | Requires: %{name}-devel = %{version}-%{release} |
38fc004d | 110 | |
111 | %description static | |
112 | Static Nautilus libraries. | |
113 | ||
2b737679 | 114 | %description static -l pl.UTF-8 |
91588ecf | 115 | Biblioteki statyczne Nautilusa. |
dae44d33 | 116 | |
29b9984f MB |
117 | %package apidocs |
118 | Summary: Nautilus API documentation | |
119 | Summary(pl.UTF-8): Dokumentacja API Nautilusa | |
120 | Group: Documentation | |
121 | Requires: gtk-doc-common | |
122 | ||
123 | %description apidocs | |
124 | Nautilus API documentation. | |
125 | ||
126 | %description apidocs -l pl.UTF-8 | |
127 | Dokumentacja API Nautilusa. | |
128 | ||
707ac973 | 129 | %prep |
ef313bbe | 130 | %setup -q |
ef313bbe | 131 | |
2676370b | 132 | sed -i -e 's#^io##' po/LINGUAS |
93ae7777 | 133 | %{__rm} po/io.po |
e1e2166d | 134 | |
ef313bbe | 135 | %build |
09483640 | 136 | %{__gtkdocize} |
0c38bfba | 137 | %{__glib_gettextize} |
138 | %{__intltoolize} | |
4e85253d | 139 | %{__libtoolize} |
55d8a20e | 140 | %{__aclocal} -I m4 |
593e6d35 | 141 | %{__autoconf} |
a81c031d | 142 | %{__autoheader} |
593e6d35 | 143 | %{__automake} |
ef313bbe | 144 | %configure \ |
9a1058cd | 145 | --enable-static \ |
23f90bd5 | 146 | --enable-packagekit \ |
29b9984f | 147 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
29b9984f | 148 | --with-html-dir=%{_gtkdocdir} \ |
2676370b | 149 | --disable-silent-rules \ |
9a1058cd | 150 | --disable-update-mimedb |
c1620b8e | 151 | %{__make} |
ef313bbe | 152 | |
153 | %install | |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | ||
156 | %{__make} install \ | |
ec96f59d | 157 | DESTDIR=$RPM_BUILD_ROOT |
ef313bbe | 158 | |
e097aa7c | 159 | # kill it - use banner instead |
2db2fc13 | 160 | install %{SOURCE1} . |
a3d2aa03 | 161 | |
93ae7777 MB |
162 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.{a,la} |
163 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
164 | ||
09483640 MB |
165 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
166 | ||
ef313bbe | 167 | %find_lang %{name} --with-gnome --all-name |
168 | ||
169 | %clean | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
b441649d | 172 | %post |
ab7700bc | 173 | %update_mime_database |
0c38bfba | 174 | %update_desktop_database_post |
892cfdc1 | 175 | %update_icon_cache hicolor |
93ae7777 | 176 | %glib_compile_schemas |
b441649d | 177 | |
178 | %postun | |
0c38bfba | 179 | %update_desktop_database_postun |
ab7700bc | 180 | %update_mime_database |
892cfdc1 | 181 | %update_icon_cache hicolor |
93ae7777 MB |
182 | if [ "$1" = "0" ]; then |
183 | %glib_compile_schemas | |
184 | fi | |
b441649d | 185 | |
d072a499 | 186 | %post libs -p /sbin/ldconfig |
187 | %postun libs -p /sbin/ldconfig | |
b3b1f241 | 188 | |
c52d9b8d | 189 | %files -f %{name}.lang |
5022deb0 | 190 | %defattr(644,root,root,755) |
9f7cb215 | 191 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README THANKS nautilus.PLD.readme |
2063fb7d PZ |
192 | %attr(755,root,root) %{_bindir}/nautilus |
193 | %attr(755,root,root) %{_bindir}/nautilus-autorun-software | |
194 | %attr(755,root,root) %{_bindir}/nautilus-connect-server | |
55d8a20e | 195 | %attr(755,root,root) %{_libexecdir}/nautilus-convert-metadata |
8d5f7d8d | 196 | %dir %{_libdir}/nautilus |
93ae7777 MB |
197 | %dir %{_libdir}/nautilus/extensions-3.0 |
198 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libnautilus-sendto.so | |
199 | %{_datadir}/GConf/gsettings/nautilus.convert | |
200 | %{_datadir}/dbus-1/services/org.gnome.Nautilus.service | |
201 | %{_datadir}/glib-2.0/schemas/*.gschema.xml | |
9a1058cd | 202 | %{_datadir}/mime/packages/*.xml |
707ac973 | 203 | %{_datadir}/nautilus |
04bd3ecd | 204 | %{_desktopdir}/*.desktop |
892cfdc1 | 205 | %{_iconsdir}/hicolor/*/*/nautilus.* |
29b9984f | 206 | %{_mandir}/man1/nautilus*.1* |
e097aa7c | 207 | %{_pixmapsdir}/nautilus |
707ac973 | 208 | |
209 | %files libs | |
210 | %defattr(644,root,root,755) | |
2063fb7d PZ |
211 | %attr(755,root,root) %{_libdir}/libnautilus-extension.so.*.*.* |
212 | %attr(755,root,root) %ghost %{_libdir}/libnautilus-extension.so.1 | |
7e6e46c3 | 213 | %{_libdir}/girepository-1.0/*.typelib |
bc314b50 | 214 | |
215 | %files devel | |
5022deb0 | 216 | %defattr(644,root,root,755) |
2063fb7d | 217 | %attr(755,root,root) %{_libdir}/libnautilus-extension.so |
2063fb7d PZ |
218 | %{_includedir}/nautilus |
219 | %{_pkgconfigdir}/libnautilus-extension.pc | |
7e6e46c3 | 220 | %{_datadir}/gir-1.0/*.gir |
38fc004d | 221 | |
222 | %files static | |
223 | %defattr(644,root,root,755) | |
2063fb7d | 224 | %{_libdir}/libnautilus-extension.a |
29b9984f MB |
225 | |
226 | %if %{with apidocs} | |
227 | %files apidocs | |
228 | %defattr(644,root,root,755) | |
229 | %{_gtkdocdir}/libnautilus-extension | |
230 | %endif |