File gvfs.spec of Package gvfs
#
# spec file for package gvfs (Version 1.0.2)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: gvfs
BuildRequires: bluez-devel
BuildRequires: fuse-devel
BuildRequires: gconf2-devel
BuildRequires: glib2-devel
BuildRequires: gnome-keyring-devel
BuildRequires: hal-devel
BuildRequires: intltool
BuildRequires: libarchive-devel
BuildRequires: libavahi-glib-devel
BuildRequires: libcdio-devel
BuildRequires: libexpat-devel
BuildRequires: libsmbclient-devel
BuildRequires: libsoup-devel
BuildRequires: pkg-config
%if %suse_version > 1010
BuildRequires: libgphoto2-devel
%else
BuildRequires: libgphoto2
%endif
%if %suse_version <= 1020
%define _prefix /opt/gnome
%define _sysconfdir /etc/%_prefix
BuildRequires: extra-rpm-macros
%endif
Summary: VFS functionality for GLib
Version: 1.0.2
Release: 2.<RELEASE20>
License: LGPL v2.0 or later
Group: Development/Libraries/C and C++
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gvfs-no-shebang.patch bgo523420 maw@suse.de
Patch0: gvfs-no-shebang.patch
# PATCH-FEATURE-OPENSUSE gvfs-dice-backend.patch hpj@suse.de -- Implements Novell IceDesktop backend. Should be upstreamed eventually.
Patch1: gvfs-dice-backend.patch
# PATCH-FIX-UPSTREAM gvfs-obexftp-update-apis-3.patch jpr@suse.de - Support for bluez 4.x from Fedora
Patch2: gvfs-obexftp-updated-apis-3.patch
# PATCH-FIX-UPSTREAM gvfs-445043-handle-blank-schemas.patch bnc445043 sreeves@suse.de -- Fix URI handler lookup with blank schemas.
Patch3: gvfs-445043-handle-blank-schemas.patch
Url: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: on
Requires: %{name}-lang = %{version}
Requires: libgvfscommon0 = %{version}
Recommends: gvfs-backends
Recommends: gvfs-common
Recommends: gvfs-fuse
%description
VFS functionality for GLib.
Authors:
--------
Alexander Larsson <alexl@redhat.com>
%package -n libgvfscommon0
License: LGPL v2.0 or later
Summary: VFS functionality for GLib
Group: Development/Libraries/C and C++
Requires: %{name} >= %{version}
%description -n libgvfscommon0
VFS functionality for GLib.
Authors:
--------
Alexander Larsson <alexl@redhat.com>
%package backends
License: LGPL v2.0 or later
Summary: VFS functionality for GLib
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
# FIXME: Requires: or Recommends:? -> Recommends
Recommends: obex-data-server
%description backends
VFS functionality for GLib.
Authors:
--------
Alexander Larsson <alexl@redhat.com>
%package fuse
License: LGPL v2.0 or later
Summary: VFS functionality for GLib
Group: System/Filesystems
Requires: %{name} = %{version}
Requires: fuse
%description fuse
VFS functionality for GLib.
Authors:
--------
Alexander Larsson <alexl@redhat.com>
%package devel
License: LGPL v2.0 or later
Summary: VFS functionality for GLib
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
VFS functionality for GLib.
Authors:
--------
Alexander Larsson <alexl@redhat.com>
%lang_package
%prep
%setup -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2
%patch3 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
autoreconf -f
libtoolize -c -f
%configure \
--libexecdir=%{_libdir}/%{name}
%__make
%install
%makeinstall
rm $RPM_BUILD_ROOT/%{_libdir}/*.*a
rm $RPM_BUILD_ROOT/%{_libdir}/gio/modules/*.*a
# We can drop the chmod when bgo523420 is fixed.
chmod -x $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d/*
%find_lang %{name}
%post -n libgvfscommon0 -p /sbin/ldconfig
%postun -n libgvfscommon0 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS NEWS README TODO
%{_bindir}/*
%{_datadir}/dbus-1/services/*.service
%{_datadir}/gvfs
%{_libdir}/gio/modules/*.so
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gvfsd
%{_sysconfdir}/profile.d/*
%files fuse
%defattr(-, root, root)
%{_libdir}/%{name}/gvfs-fuse-daemon
%files backends
%defattr(-, root, root)
%{_libdir}/%{name}/gvfs-fuse-daemon
%{_libdir}/%{name}/gvfs-gphoto2-volume-monitor
%{_libdir}/%{name}/gvfs-hal-volume-monitor
%{_libdir}/%{name}/gvfsd-archive
%{_libdir}/%{name}/gvfsd-burn
%{_libdir}/%{name}/gvfsd-cdda
%{_libdir}/%{name}/gvfsd-computer
%{_libdir}/%{name}/gvfsd-dav
%{_libdir}/%{name}/gvfsd-dice
%{_libdir}/%{name}/gvfsd-dnssd
%{_libdir}/%{name}/gvfsd-ftp
%{_libdir}/%{name}/gvfsd-gphoto2
%{_libdir}/%{name}/gvfsd-http
%{_libdir}/%{name}/gvfsd-localtest
%{_libdir}/%{name}/gvfsd-network
%{_libdir}/%{name}/gvfsd-obexftp
%{_libdir}/%{name}/gvfsd-sftp
%{_libdir}/%{name}/gvfsd-smb
%{_libdir}/%{name}/gvfsd-smb-browse
%{_libdir}/%{name}/gvfsd-trash
%files -n libgvfscommon0
%defattr(-, root, root)
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root)
%{_includedir}/gvfs-client
%{_libdir}/*.so
%files lang -f %{name}.lang
%changelog