SHA256
1
0
forked from pool/gvfs
OBS User unknown 2008-03-21 01:56:41 +00:00 committed by Git OBS Bridge
parent 467361d600
commit 7bf7433ecb
3 changed files with 93 additions and 8 deletions

9
gvfs-no-shebang.patch Normal file
View File

@ -0,0 +1,9 @@
Index: gvfs-0.2.1/programs/gvfs-bash-completion.sh
===================================================================
--- gvfs-0.2.1.orig/programs/gvfs-bash-completion.sh
+++ gvfs-0.2.1/programs/gvfs-bash-completion.sh
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2006-2007 Red Hat, Inc.
#

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Mar 19 18:26:29 CET 2008 - maw@suse.de
- Reduce build requirements
- Split out a shared library package, libgnomevfscommon0, and two
module subpackages, gvfs-backends and gvfs-fuse.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 18 19:05:18 CET 2008 - jpr@suse.de Tue Mar 18 19:05:18 CET 2008 - jpr@suse.de

View File

@ -12,7 +12,7 @@
Name: gvfs Name: gvfs
BuildRequires: bluez-utils dbus-1-glib-devel fuse-devel gconf2-devel glib2-devel gnome-keyring-devel hal-devel intltool libarchive-devel libavahi-glib-devel libsmbclient-devel libsoup-devel pkg-config BuildRequires: bluez-utils fuse-devel gconf2-devel glib2-devel gnome-keyring-devel hal-devel intltool libarchive-devel libavahi-glib-devel libsmbclient-devel libsoup-devel pkg-config
%if %suse_version > 1010 %if %suse_version > 1010
BuildRequires: libgphoto2-devel BuildRequires: libgphoto2-devel
%else %else
@ -25,21 +25,71 @@ BuildRequires: extra-rpm-macros
%endif %endif
Summary: VFS functionality for GLib Summary: VFS functionality for GLib
Version: 0.2.1 Version: 0.2.1
Release: 1 Release: 3
License: LGPL v2.0 or later License: LGPL v2.0 or later
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Source0: %{name}-%{version}.tar.bz2 Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gvfs-no-shebang.patch bgo523420 maw@suse.de -- Is this even worth upstreaming?
Patch0: gvfs-no-shebang.patch
Url: http://www.gnome.org Url: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: on AutoReqProv: on
Requires: %{name}-lang = %{version} Requires: %{name}-lang = %{version}
Recommends: fuse obex-data-server Requires: libgvfscommon0 = %{version}
#
Recommends: gvfs-fuse
Recommends: gvfs-common
%description %description
VFS functionality for GLib. VFS functionality for GLib.
Authors:
--------
Alexander Larsson <alexl@redhat.com>
%package -n libgvfscommon0
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
Summary: VFS functionality for GLib
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
# FIXME: Requires: or Recommends:?
Requires: obex-data-server
%description backends
VFS functionality for GLib.
Authors:
--------
Alexander Larsson <alexl@redhat.com>
%package fuse
Summary: VFS functionality for GLib
Group: System/Filesystems
Requires: %{name} = %{version}
Requires: fuse
%description fuse
VFS functionality for GLib.
Authors: Authors:
-------- --------
Alexander Larsson <alexl@redhat.com> Alexander Larsson <alexl@redhat.com>
@ -61,6 +111,7 @@ Authors:
%lang_package %lang_package
%prep %prep
%setup -n %{name}-%{version} %setup -n %{name}-%{version}
%patch0 -p1
%build %build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
@ -72,14 +123,16 @@ export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%makeinstall %makeinstall
rm $RPM_BUILD_ROOT/%{_libdir}/*.*a rm $RPM_BUILD_ROOT/%{_libdir}/*.*a
rm $RPM_BUILD_ROOT/%{_libdir}/gio/modules/*.*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} %find_lang %{name}
%post -p /sbin/ldconfig %post -n libgvfscommon0 -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -n libgvfscommon0 -p /sbin/ldconfig
%clean %clean
rm -rf $RPM_BUILD_ROOT ###rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-, root, root) %defattr(-, root, root)
@ -87,11 +140,23 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/* %{_bindir}/*
%{_datadir}/dbus-1/services/*.service %{_datadir}/dbus-1/services/*.service
%{_datadir}/gvfs %{_datadir}/gvfs
%{_libdir}/gvfs
%{_libdir}/gio %{_libdir}/gio
%{_libdir}/*.so.* %dir %{_libdir}/%{name}
%{_libdir}/%{name}/gvfsd
%{_sysconfdir}/profile.d/* %{_sysconfdir}/profile.d/*
%files fuse
%defattr(-, root, root)
%{_libdir}/%{name}/gvfs-fuse-daemon
%files backends
%defattr(-, root, root)
%{_libdir}/%{name}/gvfsd-*
%files -n libgvfscommon0
%defattr(-, root, root)
%{_libdir}/*.so.*
%files devel %files devel
%defattr(-, root, root) %defattr(-, root, root)
%{_includedir}/gvfs-client %{_includedir}/gvfs-client
@ -101,6 +166,10 @@ rm -rf $RPM_BUILD_ROOT
%files lang -f %{name}.lang %files lang -f %{name}.lang
%changelog %changelog
* Wed Mar 19 2008 maw@suse.de
- Reduce build requirements
- Split out a shared library package, libgnomevfscommon0, and two
module subpackages, gvfs-backends and gvfs-fuse.
* Tue Mar 18 2008 jpr@suse.de * Tue Mar 18 2008 jpr@suse.de
- Update to version 0.2.1 - Update to version 0.2.1
* Added archive backend * Added archive backend