1 |
%define name gvfs |
%define name gvfs |
2 |
%define version 1.6.6 |
%define version 1.7.2 |
3 |
%define release %mkrel 1 |
%define release %mkrel 1 |
4 |
|
|
5 |
%define major 0 |
%define major 0 |
7 |
%define develname %mklibname -d %name |
%define develname %mklibname -d %name |
8 |
|
|
9 |
%define enable_gphoto2 1 |
%define enable_gphoto2 1 |
10 |
%define enable_iphone 1 |
%define enable_iphone 0 |
|
|
|
|
%define enable_gdu 1 |
|
11 |
|
|
12 |
%define giolibname %mklibname gio2.0_ 0 |
%define giolibname %mklibname gio2.0_ 0 |
13 |
|
|
15 |
Name: %{name} |
Name: %{name} |
16 |
Version: %{version} |
Version: %{version} |
17 |
Release: %{release} |
Release: %{release} |
18 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%name/%{name}-%{version}.tar.bz2 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/gvfs/1.7/%{name}-%{version}.tar.bz2 |
19 |
Source1: bash-completion |
Source1: bash-completion |
20 |
#gw from Ubuntu, fix music player detection |
#gw from Ubuntu, fix music player detection |
21 |
# https://bugs.freedesktop.org/show_bug.cgi?id=24500 |
# https://bugs.freedesktop.org/show_bug.cgi?id=24500 |
37 |
BuildRequires: gphoto2-devel |
BuildRequires: gphoto2-devel |
38 |
%endif |
%endif |
39 |
%if %{enable_iphone} |
%if %{enable_iphone} |
40 |
BuildRequires: libimobiledevice-devel >= 1.0.0 |
BuildRequires: libimobiledevice-devel >= 1.1.0 |
41 |
%endif |
%endif |
42 |
BuildRequires: libgnome-keyring-devel |
BuildRequires: libgnome-keyring-devel |
43 |
BuildRequires: avahi-glib-devel |
BuildRequires: avahi-glib-devel |
46 |
BuildRequires: dbus-glib-devel |
BuildRequires: dbus-glib-devel |
47 |
BuildRequires: expat-devel |
BuildRequires: expat-devel |
48 |
BuildRequires: gtk-doc |
BuildRequires: gtk-doc |
|
%if %{enable_gdu} |
|
49 |
BuildRequires: libgdu-devel >= 2.29.0 |
BuildRequires: libgdu-devel >= 2.29.0 |
|
%else |
|
|
BuildRequires: libhal-devel |
|
|
Suggests: gnome-mount |
|
|
%endif |
|
50 |
#gw the dbus service depends on the daemon in the library package |
#gw the dbus service depends on the daemon in the library package |
51 |
Requires: %libname = %version |
Requires: %libname = %version |
52 |
Suggests: %name-fuse |
Suggests: %name-fuse |
64 |
Group: System/Libraries |
Group: System/Libraries |
65 |
Summary: Glib VFS library |
Summary: Glib VFS library |
66 |
Requires: %name >= %version |
Requires: %name >= %version |
67 |
Requires(post): %giolibname >= 2.23.4-2mdv |
Requires(post): %giolibname |
68 |
Requires(postun): %giolibname >= 2.23.4-2mdv |
Requires(postun): %giolibname |
69 |
|
|
70 |
%description -n %{libname} |
%description -n %{libname} |
71 |
This is a Virtual File System library based on gio and Glib. |
This is a Virtual File System library based on gio and Glib. |
145 |
|
|
146 |
%build |
%build |
147 |
%configure2_5x --with-dbus-service-dir=%_datadir/dbus-1/services \ |
%configure2_5x --with-dbus-service-dir=%_datadir/dbus-1/services \ |
148 |
%if !%{enable_gdu} |
--enable-gdu \ |
|
--enable-hal --disable-gdu \ |
|
|
%endif |
|
|
--enable-gconf \ |
|
149 |
%if %{enable_gphoto2} |
%if %{enable_gphoto2} |
150 |
--enable-gphoto2 |
--enable-gphoto2 |
151 |
%else |
%else |
186 |
%endif |
%endif |
187 |
fi |
fi |
188 |
|
|
189 |
|
glib-compile-schemas %{_datadir}/glib-2.0/schemas || : |
190 |
|
|
191 |
|
%posttrans |
192 |
|
glib-compile-schemas %{_datadir}/glib-2.0/schemas || : |
193 |
|
|
194 |
%files -f gvfs.lang |
%files -f gvfs.lang |
195 |
%defattr(-,root,root) |
%defattr(-,root,root) |
196 |
%_sysconfdir/bash_completion.d/gvfs |
%_sysconfdir/bash_completion.d/gvfs |
197 |
%_bindir/gvfs-* |
%_bindir/gvfs-* |
198 |
%_datadir/dbus-1/services/gvfs-daemon.service |
%_datadir/dbus-1/services/gvfs-daemon.service |
199 |
%_datadir/dbus-1/services/gvfs-metadata.service |
%_datadir/dbus-1/services/gvfs-metadata.service |
|
%if %{enable_gdu} |
|
200 |
%_datadir/dbus-1/services/org.gtk.Private.GduVolumeMonitor.service |
%_datadir/dbus-1/services/org.gtk.Private.GduVolumeMonitor.service |
|
%else |
|
|
%_datadir/dbus-1/services/org.gtk.Private.HalVolumeMonitor.service |
|
|
%endif |
|
201 |
%dir %_datadir/gvfs |
%dir %_datadir/gvfs |
202 |
%dir %_datadir/gvfs/mounts |
%dir %_datadir/gvfs/mounts |
203 |
%dir %_datadir/gvfs/remote-volume-monitors |
%dir %_datadir/gvfs/remote-volume-monitors |
|
%if %{enable_gdu} |
|
204 |
%_datadir/gvfs/remote-volume-monitors/gdu.monitor |
%_datadir/gvfs/remote-volume-monitors/gdu.monitor |
|
%else |
|
|
%_datadir/gvfs/remote-volume-monitors/hal.monitor |
|
|
%endif |
|
205 |
%_datadir/gvfs/mounts/sftp.mount |
%_datadir/gvfs/mounts/sftp.mount |
206 |
%_datadir/gvfs/mounts/trash.mount |
%_datadir/gvfs/mounts/trash.mount |
207 |
%_datadir/gvfs/mounts/cdda.mount |
%_datadir/gvfs/mounts/cdda.mount |
214 |
%_datadir/gvfs/mounts/dns-sd.mount |
%_datadir/gvfs/mounts/dns-sd.mount |
215 |
%_datadir/gvfs/mounts/network.mount |
%_datadir/gvfs/mounts/network.mount |
216 |
%_datadir/gvfs/mounts/ftp.mount |
%_datadir/gvfs/mounts/ftp.mount |
217 |
|
%_datadir/GConf/gsettings/*.convert |
218 |
|
%_datadir/glib-2.0/schemas/*.xml |
219 |
|
|
220 |
%files -n %libname |
%files -n %libname |
221 |
%defattr(-,root,root) |
%defattr(-,root,root) |
|
%_libdir/gio/modules/libgiogconf.so |
|
222 |
%_libdir/gio/modules/libgioremote-volume-monitor.so |
%_libdir/gio/modules/libgioremote-volume-monitor.so |
223 |
%_libdir/gio/modules/libgvfsdbus.so |
%_libdir/gio/modules/libgvfsdbus.so |
|
%if %{enable_gdu} |
|
224 |
%_libexecdir/gvfs-gdu-volume-monitor |
%_libexecdir/gvfs-gdu-volume-monitor |
225 |
%else |
|
|
%_libexecdir/gvfs-hal-volume-monitor |
|
|
%endif |
|
226 |
%_libexecdir/gvfsd |
%_libexecdir/gvfsd |
227 |
%_libexecdir/gvfsd-ftp |
%_libexecdir/gvfsd-ftp |
228 |
%_libexecdir/gvfsd-metadata |
%_libexecdir/gvfsd-metadata |
238 |
%_libexecdir/gvfsd-network |
%_libexecdir/gvfsd-network |
239 |
%_libdir/libgvfscommon.so.%{major}* |
%_libdir/libgvfscommon.so.%{major}* |
240 |
%_libdir/libgvfscommon-dnssd.so.%{major}* |
%_libdir/libgvfscommon-dnssd.so.%{major}* |
|
|
|
241 |
%files -n %develname |
%files -n %develname |
242 |
%defattr(-,root,root) |
%defattr(-,root,root) |
243 |
%doc NEWS ChangeLog AUTHORS TODO |
%doc NEWS ChangeLog AUTHORS TODO |
244 |
%_libdir/lib*.so |
%_libdir/lib*.so |
245 |
%_libdir/lib*.la |
%_libdir/lib*.la |
|
#%_includedir/%name/ |
|
246 |
%_includedir/gvfs-client |
%_includedir/gvfs-client |
|
#%_libdir/pkgconfig/%name*.pc |
|
|
#%doc %_datadir/gtk-doc/html/%name |
|
247 |
|
|
248 |
%files fuse |
%files fuse |
249 |
%defattr(-, root, root, -) |
%defattr(-, root, root, -) |
257 |
%{_datadir}/gvfs/mounts/smb-browse.mount |
%{_datadir}/gvfs/mounts/smb-browse.mount |
258 |
%{_datadir}/gvfs/mounts/smb.mount |
%{_datadir}/gvfs/mounts/smb.mount |
259 |
|
|
|
|
|
260 |
%files archive |
%files archive |
261 |
%defattr(-, root, root, -) |
%defattr(-, root, root, -) |
|
#%dir %{_datadir}/applications/mount-archive.desktop |
|
262 |
%{_libexecdir}/gvfsd-archive |
%{_libexecdir}/gvfsd-archive |
263 |
%{_datadir}/gvfs/mounts/archive.mount |
%{_datadir}/gvfs/mounts/archive.mount |
264 |
|
|
287 |
%_datadir/gvfs/mounts/afc.mount |
%_datadir/gvfs/mounts/afc.mount |
288 |
%_datadir/gvfs/remote-volume-monitors/afc.monitor |
%_datadir/gvfs/remote-volume-monitors/afc.monitor |
289 |
%endif |
%endif |
|
|
|
|
|
|