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