]>
Commit | Line | Data |
---|---|---|
9a1058cd | 1 | # |
2 | # Conditinal build: | |
29b9984f | 3 | %bcond_without apidocs # disable API documentation |
fd14bf9f | 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 |
8254d3c2 MB |
9 | Version: 3.12.2 |
10 | Release: 1 | |
9f7cb215 | 11 | License: GPL v2+ |
707ac973 | 12 | Group: X11/Applications |
f2d350b1 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/nautilus/3.12/%{name}-%{version}.tar.xz |
8254d3c2 | 14 | # Source0-md5: cc802f9b49504b8ca5f5ec11fd4418c6 |
88c2f0dd | 15 | Patch0: autostart-desc.patch |
2063fb7d | 16 | URL: http://www.gnome.org/projects/nautilus/ |
9f7cb215 | 17 | BuildRequires: autoconf >= 2.54 |
58d47af8 | 18 | BuildRequires: automake >= 1:1.11 |
e8c191e0 | 19 | BuildRequires: docbook-dtd412-xml |
93ae7777 | 20 | BuildRequires: exempi-devel >= 2.1.0 |
38fc004d | 21 | BuildRequires: gettext-devel |
d089021e | 22 | BuildRequires: glib2-devel >= 1:2.36.0 |
b0ec9f22 | 23 | BuildRequires: gnome-desktop-devel >= 3.2.0 |
7e6e46c3 | 24 | BuildRequires: gobject-introspection-devel >= 0.6.4 |
709b23a5 | 25 | BuildRequires: gsettings-desktop-schemas-devel >= 3.8.0 |
f2d350b1 | 26 | BuildRequires: gtk+3-devel >= 3.12.0 |
09483640 | 27 | BuildRequires: gtk-doc >= 1.8 |
23f90bd5 | 28 | BuildRequires: intltool >= 0.40.1 |
93ae7777 | 29 | BuildRequires: libexif-devel >= 1:0.6.20 |
46af9522 | 30 | BuildRequires: libnotify-devel >= 0.7.0 |
e8c191e0 | 31 | BuildRequires: libselinux-devel |
067ec4d9 | 32 | BuildRequires: libtool |
93ae7777 | 33 | BuildRequires: libxml2-devel >= 1:2.7.8 |
58d47af8 | 34 | BuildRequires: pango-devel >= 1:1.28.3 |
1eee0929 | 35 | BuildRequires: pkgconfig |
93ae7777 | 36 | BuildRequires: rpmbuild(macros) >= 1.601 |
f2d350b1 | 37 | BuildRequires: tracker-devel >= 1.0.0 |
e8c191e0 | 38 | BuildRequires: xorg-lib-libSM-devel |
b441649d | 39 | Requires(post,postun): desktop-file-utils |
9a1058cd | 40 | Requires(post,postun): shared-mime-info |
58d47af8 | 41 | Requires(post,postun): glib2 >= 1:2.34.0 |
8caf1403 | 42 | Requires: %{name}-libs = %{version}-%{release} |
58d47af8 | 43 | Requires: exempi >= 2.1.0 |
d089021e | 44 | Requires: glib2 >= 1:2.36.0 |
58d47af8 | 45 | Requires: gnome-desktop >= 3.2.0 |
709b23a5 | 46 | Requires: gsettings-desktop-schemas >= 3.8.0 |
d089021e | 47 | Requires: gvfs >= 1.16.0 |
58d47af8 JB |
48 | Requires: libexif >= 1:0.6.20 |
49 | Requires: libnotify >= 0.7.0 | |
50 | Requires: libxml2 >= 1:2.7.8 | |
51 | Requires: pango >= 1:1.28.3 | |
f2d350b1 | 52 | Requires: tracker >= 1.0.0 |
dc0b317e | 53 | Provides: gnome-volume-manager |
5b4f83db | 54 | Obsoletes: eel |
dc0b317e | 55 | Obsoletes: gnome-volume-manager |
22d2e9fa | 56 | Obsoletes: gstreamer-player-nautilus |
c5f9c15a | 57 | Obsoletes: nautilus-gtkhtml |
ec5a29d6 | 58 | Obsoletes: nautilus-media |
e1e2166d MB |
59 | # sr@Latn vs. sr@latin |
60 | Conflicts: glibc-misc < 6:2.7 | |
5022deb0 PG |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
62 | ||
c6b5c285 | 63 | %description |
5022deb0 PG |
64 | Nautilus integrates access to files, applications, media, |
65 | Internet-based resources and the Web. Nautilus delivers a dynamic and | |
66 | rich user experience. Nautilus is an free software project developed | |
67 | under the GNU General Public License and is a core component of the | |
68 | GNOME desktop project. | |
c6b5c285 | 69 | |
2b737679 JR |
70 | %description -l pl.UTF-8 |
71 | GNU Nautilus jest programem do zarządzania plikami i graficzną powłoką | |
72 | dla GNOME. Służy również bardzo dobrze jako przeglądarka stron WWW. | |
c6b5c285 | 73 | |
2b737679 JR |
74 | %description -l pt_BR.UTF-8 |
75 | O nautilus é um excelente gerenciador de arquivos para o GNOME. | |
dae44d33 | 76 | |
707ac973 | 77 | %package libs |
78 | Summary: Nautilus libraries | |
8c9c4b24 | 79 | Summary(pl.UTF-8): Biblioteki Nautilusa |
707ac973 | 80 | Group: X11/Libraries |
d089021e | 81 | Requires: glib2 >= 1:2.36.0 |
f2d350b1 | 82 | Requires: gtk+3 >= 3.12.0 |
707ac973 | 83 | |
84 | %description libs | |
85 | Nautilus libraries. | |
86 | ||
2b737679 | 87 | %description libs -l pl.UTF-8 |
707ac973 | 88 | Biblioteki Nautilusa. |
89 | ||
bc314b50 | 90 | %package devel |
4ed3035e | 91 | Summary: Libraries and include files for developing Nautilus components |
8c9c4b24 ER |
92 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia komponentów dla Nautilusa |
93 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos para desenvolvimento com o nautilus | |
707ac973 | 94 | Group: X11/Development/Libraries |
1eee0929 | 95 | Requires: %{name}-libs = %{version}-%{release} |
d089021e | 96 | Requires: glib2-devel >= 1:2.36.0 |
f2d350b1 | 97 | Requires: gtk+3-devel >= 3.12.0 |
e8c191e0 | 98 | Requires: libselinux-devel |
5b4f83db | 99 | Obsoletes: eel-devel |
bc314b50 | 100 | |
101 | %description devel | |
4ed3035e KT |
102 | This package provides the necessary development libraries and include |
103 | files to allow you to develop Nautilus components. | |
bc314b50 | 104 | |
2b737679 JR |
105 | %description devel -l pl.UTF-8 |
106 | Biblioteki i pliki nagłówkowe potrzebne do programowania. | |
bc314b50 | 107 | |
2b737679 JR |
108 | %description devel -l pt_BR.UTF-8 |
109 | Este pacote fornece os arquivos necessários para desenvolvimento | |
38fc004d | 110 | utilizando componentes do nautilus. |
dae44d33 | 111 | |
38fc004d | 112 | %package static |
113 | Summary: Static Nautilus libraries | |
8c9c4b24 | 114 | Summary(pl.UTF-8): Biblioteki statyczne Nautilusa |
707ac973 | 115 | Group: X11/Development/Libraries |
1eee0929 | 116 | Requires: %{name}-devel = %{version}-%{release} |
38fc004d | 117 | |
118 | %description static | |
119 | Static Nautilus libraries. | |
120 | ||
2b737679 | 121 | %description static -l pl.UTF-8 |
91588ecf | 122 | Biblioteki statyczne Nautilusa. |
dae44d33 | 123 | |
29b9984f MB |
124 | %package apidocs |
125 | Summary: Nautilus API documentation | |
126 | Summary(pl.UTF-8): Dokumentacja API Nautilusa | |
127 | Group: Documentation | |
128 | Requires: gtk-doc-common | |
45107b56 ER |
129 | %if "%{_rpmversion}" >= "5" |
130 | BuildArch: noarch | |
131 | %endif | |
29b9984f MB |
132 | |
133 | %description apidocs | |
134 | Nautilus API documentation. | |
135 | ||
136 | %description apidocs -l pl.UTF-8 | |
137 | Dokumentacja API Nautilusa. | |
138 | ||
707ac973 | 139 | %prep |
ef313bbe | 140 | %setup -q |
fd14bf9f | 141 | %patch0 -p1 |
ef313bbe | 142 | |
143 | %build | |
09483640 | 144 | %{__gtkdocize} |
0c38bfba | 145 | %{__glib_gettextize} |
146 | %{__intltoolize} | |
4e85253d | 147 | %{__libtoolize} |
55d8a20e | 148 | %{__aclocal} -I m4 |
593e6d35 | 149 | %{__autoconf} |
a81c031d | 150 | %{__autoheader} |
593e6d35 | 151 | %{__automake} |
ef313bbe | 152 | %configure \ |
9a1058cd | 153 | --enable-static \ |
23f90bd5 | 154 | --enable-packagekit \ |
29b9984f | 155 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
29b9984f | 156 | --with-html-dir=%{_gtkdocdir} \ |
2676370b | 157 | --disable-silent-rules \ |
9a1058cd | 158 | --disable-update-mimedb |
c1620b8e | 159 | %{__make} |
ef313bbe | 160 | |
161 | %install | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %{__make} install \ | |
ec96f59d | 165 | DESTDIR=$RPM_BUILD_ROOT |
ef313bbe | 166 | |
93ae7777 MB |
167 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.{a,la} |
168 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
169 | ||
09483640 MB |
170 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
171 | ||
58d47af8 JB |
172 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} |
173 | # not supported by glibc | |
174 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io | |
175 | ||
ef313bbe | 176 | %find_lang %{name} --with-gnome --all-name |
177 | ||
178 | %clean | |
179 | rm -rf $RPM_BUILD_ROOT | |
180 | ||
b441649d | 181 | %post |
ab7700bc | 182 | %update_mime_database |
0c38bfba | 183 | %update_desktop_database_post |
93ae7777 | 184 | %glib_compile_schemas |
b441649d | 185 | |
186 | %postun | |
0c38bfba | 187 | %update_desktop_database_postun |
ab7700bc | 188 | %update_mime_database |
93ae7777 MB |
189 | if [ "$1" = "0" ]; then |
190 | %glib_compile_schemas | |
191 | fi | |
b441649d | 192 | |
d072a499 | 193 | %post libs -p /sbin/ldconfig |
194 | %postun libs -p /sbin/ldconfig | |
b3b1f241 | 195 | |
c52d9b8d | 196 | %files -f %{name}.lang |
5022deb0 | 197 | %defattr(644,root,root,755) |
709b23a5 | 198 | %doc AUTHORS MAINTAINERS NEWS README THANKS |
2063fb7d PZ |
199 | %attr(755,root,root) %{_bindir}/nautilus |
200 | %attr(755,root,root) %{_bindir}/nautilus-autorun-software | |
201 | %attr(755,root,root) %{_bindir}/nautilus-connect-server | |
55d8a20e | 202 | %attr(755,root,root) %{_libexecdir}/nautilus-convert-metadata |
8d5f7d8d | 203 | %dir %{_libdir}/nautilus |
93ae7777 MB |
204 | %dir %{_libdir}/nautilus/extensions-3.0 |
205 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libnautilus-sendto.so | |
206 | %{_datadir}/GConf/gsettings/nautilus.convert | |
f2d350b1 | 207 | %{_datadir}/appdata/nautilus.appdata.xml |
43ed4905 | 208 | %{_datadir}/dbus-1/services/org.freedesktop.FileManager1.service |
16886573 | 209 | %{_datadir}/dbus-1/services/org.gnome.Nautilus.SearchProvider.service |
93ae7777 | 210 | %{_datadir}/dbus-1/services/org.gnome.Nautilus.service |
58d47af8 JB |
211 | %{_datadir}/glib-2.0/schemas/org.gnome.nautilus.gschema.xml |
212 | %{_datadir}/mime/packages/nautilus.xml | |
707ac973 | 213 | %{_datadir}/nautilus |
58d47af8 | 214 | %{_desktopdir}/nautilus*.desktop |
29b9984f | 215 | %{_mandir}/man1/nautilus*.1* |
ce9a3635 | 216 | %{_sysconfdir}/xdg/autostart/nautilus-autostart.desktop |
16886573 | 217 | %{_datadir}/gnome-shell/search-providers/nautilus-search-provider.ini |
707ac973 | 218 | |
219 | %files libs | |
220 | %defattr(644,root,root,755) | |
2063fb7d PZ |
221 | %attr(755,root,root) %{_libdir}/libnautilus-extension.so.*.*.* |
222 | %attr(755,root,root) %ghost %{_libdir}/libnautilus-extension.so.1 | |
58d47af8 | 223 | %{_libdir}/girepository-1.0/Nautilus-3.0.typelib |
bc314b50 | 224 | |
225 | %files devel | |
5022deb0 | 226 | %defattr(644,root,root,755) |
2063fb7d | 227 | %attr(755,root,root) %{_libdir}/libnautilus-extension.so |
2063fb7d | 228 | %{_includedir}/nautilus |
58d47af8 | 229 | %{_datadir}/gir-1.0/Nautilus-3.0.gir |
2063fb7d | 230 | %{_pkgconfigdir}/libnautilus-extension.pc |
38fc004d | 231 | |
232 | %files static | |
233 | %defattr(644,root,root,755) | |
2063fb7d | 234 | %{_libdir}/libnautilus-extension.a |
29b9984f MB |
235 | |
236 | %if %{with apidocs} | |
237 | %files apidocs | |
238 | %defattr(644,root,root,755) | |
239 | %{_gtkdocdir}/libnautilus-extension | |
240 | %endif |