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