2006-12-19 16:59:25 +01:00
|
|
|
#
|
2010-10-28 10:49:26 +02:00
|
|
|
# spec file for package fuse (Version 2.8.5)
|
2006-12-19 16:59:25 +01:00
|
|
|
#
|
2010-01-07 12:57:29 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 16:59:25 +01:00
|
|
|
#
|
2008-12-01 18:27:52 +01:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-12-01 18:27:52 +01:00
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
Name: fuse
|
2007-08-10 17:01:38 +02:00
|
|
|
Summary: User space File System
|
2010-10-28 10:49:26 +02:00
|
|
|
Version: 2.8.5
|
2010-12-13 05:39:18 +01:00
|
|
|
Release: 3
|
2010-01-07 12:57:29 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2006-12-19 16:59:25 +01:00
|
|
|
Group: System/Filesystems
|
2010-10-28 10:49:26 +02:00
|
|
|
# http://sourceforge.net/projects/fuse/files/fuse-2.X/%%{version}/fuse-%%{version}.tar.gz/download
|
2006-12-19 16:59:25 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-09-02 09:43:30 +02:00
|
|
|
Source2: fuse.rpmlintrc
|
2010-01-14 16:36:44 +01:00
|
|
|
Source3: baselibs.conf
|
2006-12-19 16:59:25 +01:00
|
|
|
Patch: fuse-install-fix.diff
|
2007-07-04 23:14:08 +02:00
|
|
|
Patch2: fuse-pc-remove-libdir-from-Libs.diff
|
2010-12-13 05:39:18 +01:00
|
|
|
Patch3: fuse-umount-race-fix.patch
|
2007-11-23 17:24:31 +01:00
|
|
|
Url: http://fuse.sourceforge.net
|
2006-12-19 16:59:25 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-13 05:39:18 +01:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
Requires: util-linux >= 2.18
|
|
|
|
%else
|
|
|
|
Requires: util-linux
|
|
|
|
%endif
|
2007-07-06 08:40:58 +02:00
|
|
|
Requires: licenses
|
2010-12-31 13:37:33 +01:00
|
|
|
BuildRequires: licenses pkgconfig
|
2010-12-13 05:39:18 +01:00
|
|
|
%if 0%{?suse_version} >= 0 && 0%{?suse_version} >= 1000
|
2007-08-10 17:01:38 +02:00
|
|
|
Supplements: filesystem(fuse)
|
2009-12-16 09:47:27 +01:00
|
|
|
%endif
|
2010-10-28 10:49:26 +02:00
|
|
|
PreReq: permissions
|
2006-12-19 16:59:25 +01:00
|
|
|
|
|
|
|
%description
|
2007-08-10 17:01:38 +02:00
|
|
|
With FUSE, a user space program can export a file system through the
|
2007-07-13 20:26:29 +02:00
|
|
|
kernel-default (Linux kernel).
|
2006-12-19 16:59:25 +01:00
|
|
|
|
2007-08-10 17:01:38 +02:00
|
|
|
User space file systems which are implemented using FUSE are provided
|
|
|
|
by the following packages:
|
2007-07-06 08:40:58 +02:00
|
|
|
|
2007-07-13 20:26:29 +02:00
|
|
|
- curlftpfs (mount FTP servers),
|
2007-07-04 23:14:08 +02:00
|
|
|
|
2007-07-13 20:26:29 +02:00
|
|
|
- encfs (layered file encryption),
|
|
|
|
|
|
|
|
- fuseiso (mount iso, img, bin, mdf and nrg CD-ROM images),
|
|
|
|
|
|
|
|
- fusepod (mount iPods),
|
|
|
|
|
|
|
|
- fusesmb (mount a fully browseable network neighborhood),
|
|
|
|
|
|
|
|
- gphotofs (mount gphoto-supported cameras),
|
|
|
|
|
|
|
|
- ntfs-3g (mount NTFS volumes read-write),
|
|
|
|
|
|
|
|
- obexfs (mount of bluetooth devices),
|
|
|
|
|
|
|
|
- sshfs (mount over ssh),
|
|
|
|
|
|
|
|
- wdfs (mount of WebDAV shares)
|
|
|
|
|
2007-08-10 17:01:38 +02:00
|
|
|
This package contains the mount binaries for fuse (might not be needed
|
|
|
|
by some FUSE filesystems like ntfs-3g) and the documentation for FUSE.
|
|
|
|
|
|
|
|
After installing fuse-devel, administrators can compile and install
|
|
|
|
other user space file systems which can be found at
|
|
|
|
http://fuse.sourceforge.net/wiki
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Miklos Szeredi <miklos@szeredi.hu>
|
|
|
|
|
|
|
|
%package -n libfuse2
|
2010-01-07 12:57:29 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2007-08-10 17:01:38 +02:00
|
|
|
Summary: Library of FUSE, the User space File System for GNU/Linux and BSD
|
|
|
|
Group: System/Filesystems
|
|
|
|
|
|
|
|
%description -n libfuse2
|
|
|
|
With FUSE, a user space program can export a file system through the
|
|
|
|
kernel-default (Linux kernel).
|
|
|
|
|
|
|
|
A FUSE file system which only needs libfuse2 is ntfs-3g, other FUSE
|
|
|
|
file systems might need the fuse package in addition to have fusermount
|
|
|
|
and /sbin/mount.fuse.
|
|
|
|
|
|
|
|
User space file systems which are implemented using FUSE are provided
|
|
|
|
by the following packages:
|
|
|
|
|
|
|
|
- curlftpfs (mount FTP servers),
|
|
|
|
|
|
|
|
- encfs (layered file encryption),
|
|
|
|
|
|
|
|
- fuseiso (mount iso, img, bin, mdf and nrg CD-ROM images),
|
|
|
|
|
|
|
|
- fusepod (mount iPods),
|
|
|
|
|
|
|
|
- fusesmb (mount a fully browseable network neighborhood),
|
|
|
|
|
|
|
|
- gphotofs (mount gphoto-supported cameras),
|
|
|
|
|
|
|
|
- ntfs-3g (mount NTFS volumes read-write),
|
|
|
|
|
|
|
|
- obexfs (mount of bluetooth devices),
|
|
|
|
|
|
|
|
- sshfs (mount over ssh),
|
|
|
|
|
|
|
|
- wdfs (mount of WebDAV shares)
|
|
|
|
|
|
|
|
After installing fuse-devel, administrators can compile and install
|
|
|
|
other user space file systems which can be found at
|
2007-07-13 20:26:29 +02:00
|
|
|
http://fuse.sourceforge.net/wiki
|
2006-12-19 16:59:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-02-09 01:22:45 +01:00
|
|
|
Miklos Szeredi <miklos@szeredi.hu>
|
2006-12-19 16:59:25 +01:00
|
|
|
|
|
|
|
%package devel
|
2010-01-07 12:57:29 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2007-07-06 08:40:58 +02:00
|
|
|
Summary: Development package for FUSE (userspace filesystem) modules
|
2007-07-04 23:14:08 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2007-08-10 17:01:38 +02:00
|
|
|
Requires: fuse = %{version} libfuse2 = %{version} glibc-devel
|
2006-12-19 16:59:25 +01:00
|
|
|
|
|
|
|
%description devel
|
2007-07-04 23:14:08 +02:00
|
|
|
This package contains all include files, libraries and configuration
|
2007-07-13 20:26:29 +02:00
|
|
|
files needed to develop programs that use the fuse (FUSE) library to
|
2007-08-10 17:01:38 +02:00
|
|
|
implement kernel-default (Linux) file systems in user space.
|
2007-07-13 20:26:29 +02:00
|
|
|
|
2007-08-10 17:01:38 +02:00
|
|
|
Many user space file systems are already provided as packages for
|
2007-07-13 20:26:29 +02:00
|
|
|
installation:
|
|
|
|
|
|
|
|
- curlftpfs (mount FTP servers),
|
|
|
|
|
|
|
|
- encfs (layered file encryption),
|
|
|
|
|
|
|
|
- fuseiso (mount iso, img, bin, mdf and nrg CD-ROM images),
|
|
|
|
|
|
|
|
- fusepod (mount iPods),
|
|
|
|
|
|
|
|
- fusesmb (mount a fully browseable network neighborhood),
|
|
|
|
|
|
|
|
- gphotofs (mount gphoto-supported cameras),
|
|
|
|
|
|
|
|
- ntfs-3g (mount NTFS volumes read-write),
|
|
|
|
|
|
|
|
- obexfs (mount of bluetooth devices),
|
|
|
|
|
|
|
|
- sshfs (mount over ssh),
|
|
|
|
|
|
|
|
- wdfs (mount of WebDAV shares)
|
|
|
|
|
2007-08-10 17:01:38 +02:00
|
|
|
With fuse-devel, administrators can compile and install other user
|
|
|
|
space file systems which can be found at
|
|
|
|
http://fuse.sourceforge.net/wiki
|
2006-12-19 16:59:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-23 23:46:48 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Miklos Szeredi <mszeredi@inf.bme.hu>
|
|
|
|
|
|
|
|
%package devel-static
|
2010-01-07 12:57:29 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-04-23 23:46:48 +02:00
|
|
|
Summary: Development package for FUSE (userspace filesystem) modules
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: fuse-devel = %{version}
|
|
|
|
Provides: fuse-devel:%{_libdir}/libfuse.a
|
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
This package contains all include files, libraries and configuration
|
|
|
|
files needed to develop programs that use the fuse (FUSE) library to
|
|
|
|
implement kernel-default (Linux) file systems in user space.
|
|
|
|
|
|
|
|
Many user space file systems are already provided as packages for
|
|
|
|
installation:
|
|
|
|
|
|
|
|
- curlftpfs (mount FTP servers),
|
|
|
|
|
|
|
|
- encfs (layered file encryption),
|
|
|
|
|
|
|
|
- fuseiso (mount iso, img, bin, mdf and nrg CD-ROM images),
|
|
|
|
|
|
|
|
- fusepod (mount iPods),
|
|
|
|
|
|
|
|
- fusesmb (mount a fully browseable network neighborhood),
|
|
|
|
|
|
|
|
- gphotofs (mount gphoto-supported cameras),
|
|
|
|
|
|
|
|
- ntfs-3g (mount NTFS volumes read-write),
|
|
|
|
|
|
|
|
- obexfs (mount of bluetooth devices),
|
|
|
|
|
|
|
|
- sshfs (mount over ssh),
|
|
|
|
|
|
|
|
- wdfs (mount of WebDAV shares)
|
|
|
|
|
|
|
|
With fuse-devel, administrators can compile and install other user
|
|
|
|
space file systems which can be found at
|
|
|
|
http://fuse.sourceforge.net/wiki
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Miklos Szeredi <mszeredi@inf.bme.hu>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch
|
2007-07-04 23:14:08 +02:00
|
|
|
%if "%{_exec_prefix}" == "/" || "%{_exec_prefix}" == "/usr"
|
|
|
|
%patch2
|
|
|
|
%endif
|
2010-12-13 05:39:18 +01:00
|
|
|
%patch3 -p1
|
2006-12-19 16:59:25 +01:00
|
|
|
|
|
|
|
%build
|
2010-10-28 10:49:26 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -g -fno-strict-aliasing"
|
2009-04-23 23:46:48 +02:00
|
|
|
%configure --with-pic \
|
|
|
|
--with-pkgconfigdir=%{_libdir}/pkgconfig \
|
|
|
|
--exec-prefix=/ \
|
|
|
|
--libdir=/%{_lib} \
|
2006-12-19 16:59:25 +01:00
|
|
|
--enable-lib \
|
|
|
|
--enable-util \
|
|
|
|
--enable-example
|
2009-04-23 23:46:48 +02:00
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2006-12-19 16:59:25 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/init.d
|
2007-09-02 09:43:30 +02:00
|
|
|
ln -sf /usr/share/doc/licenses/md5/$(md5sum COPYING | sed 's/ .*//') COPYING
|
|
|
|
ln -sf /usr/share/doc/licenses/md5/$(md5sum COPYING.LIB | sed 's/ .*//') COPYING.LIB
|
2007-07-13 20:26:29 +02:00
|
|
|
# Needed for OpenSUSE buildservice
|
|
|
|
%if %suse_version <= 1020
|
|
|
|
install -m644 -D util/udev.rules $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/99-fuse.rules
|
|
|
|
%endif
|
2009-04-23 23:46:48 +02:00
|
|
|
for libname in libfuse libulockmgr;do
|
|
|
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/$libname.so) %{buildroot}%{_libdir}/$libname.so
|
|
|
|
%{__rm} -v %{buildroot}/%{_lib}/$libname.{so,la}
|
|
|
|
%{__mv} -v %{buildroot}/%{_lib}/$libname.a %{buildroot}%{_libdir}
|
|
|
|
done
|
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2009-08-03 16:44:30 +02:00
|
|
|
# not needed for fuse, might reappar in separate package:
|
|
|
|
%{__rm} -f %{buildroot}/%{_bindir}/ulockmgr_server
|
|
|
|
%{__rm} -f %{buildroot}/%{_libdir}/libulockmgr.*
|
|
|
|
%{__rm} -f %{buildroot}/%{_lib}/libulockmgr.so.*
|
|
|
|
%{__rm} -f %{buildroot}/%{_includedir}/ulockmgr.h
|
2006-12-19 16:59:25 +01:00
|
|
|
|
2010-10-28 10:49:26 +02:00
|
|
|
(cd example && %{__make} clean)
|
|
|
|
%{__rm} -rf example/.deps example/Makefile.am example/Makefile.in
|
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
%post
|
|
|
|
%run_permissions
|
|
|
|
%verifyscript
|
2010-10-28 10:49:26 +02:00
|
|
|
%verify_permissions -e %{_bindir}/fusermount
|
2006-12-19 16:59:25 +01:00
|
|
|
|
2009-04-23 23:46:48 +02:00
|
|
|
%post -n libfuse2 -p /sbin/ldconfig
|
2007-08-10 17:01:38 +02:00
|
|
|
|
2009-04-23 23:46:48 +02:00
|
|
|
%postun -n libfuse2 -p /sbin/ldconfig
|
2007-08-10 17:01:38 +02:00
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-09-02 09:43:30 +02:00
|
|
|
%doc AUTHORS ChangeLog FAQ NEWS README* COPYING*
|
2007-07-13 20:26:29 +02:00
|
|
|
%if %suse_version <= 1020
|
|
|
|
%dir %{_sysconfdir}/udev
|
|
|
|
%dir %{_sysconfdir}/udev/rules.d
|
|
|
|
%{_sysconfdir}/udev/rules.d/99-fuse.rules
|
|
|
|
%endif
|
2009-04-23 23:46:48 +02:00
|
|
|
%verify(not mode) %attr(4750,root,trusted) %{_bindir}/fusermount
|
2006-12-19 16:59:25 +01:00
|
|
|
/sbin/mount.fuse
|
2007-08-10 17:01:38 +02:00
|
|
|
|
|
|
|
%files -n libfuse2
|
|
|
|
%defattr(-,root,root)
|
2009-04-23 23:46:48 +02:00
|
|
|
/%{_lib}/libfuse.so.2*
|
2006-12-19 16:59:25 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2010-10-28 10:49:26 +02:00
|
|
|
%doc example doc
|
2009-04-23 23:46:48 +02:00
|
|
|
%{_libdir}/libfuse.so
|
2006-12-19 16:59:25 +01:00
|
|
|
%{_includedir}/fuse.h
|
|
|
|
%{_includedir}/fuse
|
2009-04-23 23:46:48 +02:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%files devel-static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libfuse.a
|
2006-12-19 16:59:25 +01:00
|
|
|
|
2007-05-04 00:28:46 +02:00
|
|
|
%changelog
|