# # spec file for package gvfs # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: gvfs Version: 1.9.2 Release: 1 # FIXME: add libbluray BuildRequires once available (fate#312440) License: LGPLv2.0+ Summary: VFS functionality for GLib Url: http://www.gnome.org Group: Development/Libraries/C and C++ Source0: http://download.gnome.org/sources/gvfs/1.9/%{name}-%{version}.tar.bz2 Source99: baselibs.conf # PATCH-FIX-UPSTREAM gvfs-g_format_size.patch bgo#655474 vuntz@opensuse.org -- Do not use deprecated glib API to fix build Patch0: gvfs-g_format_size.patch # PATCH-FEATURE-OPENSUSE gvfs-nvvfs.patch ksamrat@novell.com -- Provides gvfs backend for novell nautilus plugin Patch5: gvfs-nvvfs.patch # PATCH-FEATURE-OPENSUSE gvfs-nds.patch ksamrat@novell.com -- Provides NDS browsing for nautilus Patch6: gvfs-nds.patch BuildRequires: bluez-devel BuildRequires: dbus-1-glib-devel BuildRequires: fuse-devel BuildRequires: glib2-devel BuildRequires: intltool BuildRequires: libarchive-devel BuildRequires: libavahi-glib-devel BuildRequires: libcdio-devel BuildRequires: libexpat-devel BuildRequires: libgdu-devel BuildRequires: libgnome-keyring-devel BuildRequires: libgphoto2-devel BuildRequires: libgudev-1_0-devel BuildRequires: libimobiledevice-devel >= 1.1.0 BuildRequires: libsmbclient-devel BuildRequires: libsoup-devel BuildRequires: pkg-config BuildRequires: translation-update-upstream Requires: libgvfscommon0 = %{version} Recommends: %{name}-lang Recommends: gvfs-backends Recommends: gvfs-common Recommends: gvfs-fuse BuildRoot: %{_tmppath}/%{name}-%{version}-build %glib2_gio_module_requires %description VFS functionality for GLib. %package -n libgvfscommon0 License: LGPLv2.0+ Summary: VFS functionality for GLib Group: Development/Libraries/C and C++ Requires: %{name} >= %{version} %description -n libgvfscommon0 VFS functionality for GLib. %package backend-afc License: LGPLv2.0+ Summary: VFS functionality for GLib -- iPod / iPhone Support Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description backend-afc This package provides a gvfs backend that supports iPod / iPhone devices. %package backends License: LGPLv2.0+ ; GPLv3 Summary: VFS functionality for GLib Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Recommends: gvfs-backend-afc Recommends: obex-data-server %glib2_gsettings_schema_requires %description backends VFS functionality for GLib. %package fuse License: LGPLv2.0+ Summary: VFS functionality for GLib Group: System/Filesystems Requires: %{name} = %{version} Requires: fuse %description fuse VFS functionality for GLib. %package devel License: LGPLv2.0+ Summary: VFS functionality for GLib Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description devel VFS functionality for GLib. %lang_package %prep %setup -q translation-update-upstream %patch0 -p1 %patch5 -p1 %patch6 -p1 autoreconf -f libtoolize -c -f %build %configure \ --libexecdir=%{_libexecdir}/%{name} \ --disable-static %__make %install %makeinstall %if 0%{?suse_version} <= 1120 %{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/* %endif rm %{buildroot}%{_libdir}/*.*a rm %{buildroot}%{_libdir}/gio/modules/*.*a # We can drop the chmod when bgo523420 is fixed. chmod -x %{buildroot}%{_sysconfdir}/profile.d/* %find_lang %{name} %post %glib2_gio_module_post %postun %glib2_gio_module_postun %post backends %glib2_gsettings_schema_post %postun backends %glib2_gsettings_schema_postun %post -n libgvfscommon0 -p /sbin/ldconfig %postun -n libgvfscommon0 -p /sbin/ldconfig %clean rm -rf %{buildroot} %files %defattr(-, root, root) %doc AUTHORS NEWS README TODO %{_bindir}/* %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/mounts %dir %{_datadir}/%{name}/remote-volume-monitors %{_libdir}/gio/modules/*.so %dir %{_libexecdir}/%{name} %{_libexecdir}/%{name}/gvfsd %{_datadir}/dbus-1/services/gvfs-daemon.service %{_libexecdir}/%{name}/gvfsd-metadata %{_datadir}/dbus-1/services/gvfs-metadata.service %{_sysconfdir}/profile.d/* %files fuse %defattr(-, root, root) %{_libexecdir}/%{name}/gvfs-fuse-daemon %files backend-afc %defattr(-, root, root) %{_libexecdir}/%{name}/gvfs-afc-volume-monitor %{_datadir}/dbus-1/services/org.gtk.Private.AfcVolumeMonitor.service %{_datadir}/%{name}/remote-volume-monitors/afc.monitor %{_libexecdir}/%{name}/gvfsd-afc %{_datadir}/%{name}/mounts/afc.mount %files backends %defattr(-, root, root) %if 0%{suse_version} > 1110 %{_libexecdir}/%{name}/gvfs-gdu-volume-monitor %{_datadir}/dbus-1/services/org.gtk.Private.GduVolumeMonitor.service %{_datadir}/%{name}/remote-volume-monitors/gdu.monitor %endif %{_libexecdir}/%{name}/gvfs-gphoto2-volume-monitor %{_datadir}/dbus-1/services/org.gtk.Private.GPhoto2VolumeMonitor.service %{_datadir}/%{name}/remote-volume-monitors/gphoto2.monitor %{_libexecdir}/%{name}/gvfsd-archive %{_datadir}/%{name}/mounts/archive.mount %{_libexecdir}/%{name}/gvfsd-burn %{_datadir}/%{name}/mounts/burn.mount %{_libexecdir}/%{name}/gvfsd-cdda %{_datadir}/%{name}/mounts/cdda.mount %{_libexecdir}/%{name}/gvfsd-computer %{_datadir}/%{name}/mounts/computer.mount %{_libexecdir}/%{name}/gvfsd-dav %{_datadir}/%{name}/mounts/dav.mount %{_datadir}/%{name}/mounts/dav+sd.mount %{_libexecdir}/%{name}/gvfsd-dnssd %{_datadir}/%{name}/mounts/dns-sd.mount %{_libexecdir}/%{name}/gvfsd-ftp %{_datadir}/%{name}/mounts/ftp.mount %{_libexecdir}/%{name}/gvfsd-gphoto2 %{_datadir}/%{name}/mounts/gphoto2.mount %{_libexecdir}/%{name}/gvfsd-http %{_datadir}/%{name}/mounts/http.mount %{_libexecdir}/%{name}/gvfsd-localtest %{_datadir}/%{name}/mounts/localtest.mount %{_libexecdir}/%{name}/gvfsd-nds %{_datadir}/%{name}/mounts/nds.mount %{_libexecdir}/%{name}/gvfsd-network %{_datadir}/%{name}/mounts/network.mount %{_libexecdir}/%{name}/gvfsd-nvvfs %{_datadir}/%{name}/mounts/nvvfs.mount %{_libexecdir}/%{name}/gvfsd-obexftp %{_datadir}/%{name}/mounts/obexftp.mount %{_libexecdir}/%{name}/gvfsd-sftp %{_datadir}/%{name}/mounts/sftp.mount %{_libexecdir}/%{name}/gvfsd-smb %{_datadir}/%{name}/mounts/smb.mount %{_libexecdir}/%{name}/gvfsd-smb-browse %{_datadir}/%{name}/mounts/smb-browse.mount # gvfsd-trash is GPLv3 because of trashlib. %{_libexecdir}/%{name}/gvfsd-trash %{_datadir}/%{name}/mounts/trash.mount # GSettings schemas & conversion data # Those schemas are used by gvfsd-network & gvfsd-smb %{_datadir}/glib-2.0/schemas/org.gnome.system.dns_sd.gschema.xml %{_datadir}/glib-2.0/schemas/org.gnome.system.gvfs.enums.xml %{_datadir}/glib-2.0/schemas/org.gnome.system.smb.gschema.xml %dir %{_datadir}/GConf %dir %{_datadir}/GConf/gsettings %{_datadir}/GConf/gsettings/gvfs-dns-sd.convert %{_datadir}/GConf/gsettings/gvfs-smb.convert %files -n libgvfscommon0 %defattr(-, root, root) %{_libdir}/*.so.* %files devel %defattr(-, root, root) %{_includedir}/gvfs-client %{_libdir}/*.so %files lang -f %{name}.lang %changelog