fuse/fuse.spec

365 lines
11 KiB
RPMSpec

#
# spec file for package fuse (Version 2.7.1)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: fuse
Summary: User space File System
Version: 2.7.1
Release: 1
License: GPL v2 or later; LGPL v2.1 or later
Group: System/Filesystems
Source: %{name}-%{version}.tar.bz2
Source1: boot.fuse
Source2: fuse.rpmlintrc
Patch: fuse-install-fix.diff
Patch2: fuse-pc-remove-libdir-from-Libs.diff
Url: http://fuse.sourceforge.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: licenses
BuildRequires: licenses
Supplements: filesystem(fuse)
PreReq: %insserv_prereq permissions
%define _exec_prefix /
%define _libdir /%_lib
%define usrbindir %{_prefix}/bin
%define devlibdir %{_prefix}/%{_lib}
%define pkgconfigdir %{_prefix}/%{_lib}/pkgconfig
%description
With FUSE, a user space program can export a file system through the
kernel-default (Linux kernel).
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)
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
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
http://fuse.sourceforge.net/wiki
Authors:
--------
Miklos Szeredi <miklos@szeredi.hu>
%package devel
Summary: Development package for FUSE (userspace filesystem) modules
Group: Development/Languages/C and C++
Requires: fuse = %{version} libfuse2 = %{version} glibc-devel
%description devel
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
Authors:
--------
Miklos Szeredi <mszeredi@inf.bme.hu>
%prep
%setup -q
%patch
%if "%{_exec_prefix}" == "/" || "%{_exec_prefix}" == "/usr"
%patch2
%endif
%build
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure \
--with-pkgconfigdir=%pkgconfigdir \
--disable-kernel-module \
--enable-lib \
--enable-util \
--enable-example
make
%install
make DESTDIR="$RPM_BUILD_ROOT" install
rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/init.d
install -m755 -D %{S:1} $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/boot.fuse
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
# 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
cd %buildroot
mv .%{_libdir}/lib*.*a .%{devlibdir}
rm .%{_libdir}/lib*.so # recreate these pointing upwards:
cd .%{devlibdir}
ln -s ../../lib*/libfuse.so.*.*.* libfuse.so
#not needed for fuse, might reappar in separate package:
#ln -s ../../lib*/libulockmgr.so.*.*.* libulockmgr.so
cd -
mkdir .%{usrbindir}
mv .%{_bindir}/fusermount .%{usrbindir}/fusermount
%post
%{insserv_force_if_yast boot.fuse}
%run_permissions
%verifyscript
%verify_permissions -e %{usrbindir}/fusermount
%preun
%stop_on_removal boot.fuse
%postun
%run_ldconfig
%insserv_cleanup
%post -n libfuse2
%run_ldconfig
%postun -n libfuse2
%run_ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%config %{_sysconfdir}/init.d/boot.fuse
%doc AUTHORS ChangeLog FAQ NEWS README* COPYING*
%if %suse_version <= 1020
%dir %{_sysconfdir}/udev
%dir %{_sysconfdir}/udev/rules.d
%{_sysconfdir}/udev/rules.d/99-fuse.rules
%endif
%verify(not mode) %attr(4750,root,trusted) %{usrbindir}/fusermount
/sbin/mount.fuse
# not needed for fuse, might reappar in separate package:
%exclude %{_bindir}/ulockmgr_server
%exclude %{_libdir}/libulockmgr.so.*
%files -n libfuse2
%defattr(-,root,root)
%{_libdir}/libfuse.so.*
%files devel
%defattr(-,root,root)
%{devlibdir}/libfuse.*
%{_includedir}/fuse.h
%{_includedir}/fuse
%{pkgconfigdir}/*.pc
# not needed for fuse, might reappar in separate package:
%exclude %{_includedir}/ulockmgr.h
%exclude %{devlibdir}/libulockmgr.*
%changelog
* Fri Nov 23 2007 - mszeredi@suse.de
- Update to version 2.7.1
* Add missing context initialization in fuse_fs_chmod()
* Fix a fuse_req leak in do_forget()
* Work around hotplug issue
* Reset args->argc in fuse_opt_free_args()
* Sun Sep 02 2007 - aj@suse.de
- Fix building.
- Rename rpmlintrc to fuse.rpmlintrc and add it as source.
* Fri Aug 31 2007 - mszeredi@suse.de
- fix location of COPYING files (#306681)
* Fri Aug 10 2007 - bk@suse.de
- branch off libfuse2 to avoid having to start fuse on boot (#285101)
- Add "Supplements: filesystem(fuse)" in case someone looks for fuse
- libulockmgr and ulockmgr_server are separate from fuse (#285101)
* Fri Jul 13 2007 - mszeredi@suse.de
- conditionally add udev rule if building with 10.2 or earlier
* Thu Jul 05 2007 - bk@suse.de
- update to new major release 2.7.0:
* Support for stacking filesystem modules
* New module for converting filename character sets
* "setuid=USER" allows to do "su - USER" for the filesystem
* fs subtype has been added to libfuse and the mount commands
* Several problems have been addressed, e.g. mount.fuse is rewritten
the multithreaded loop uses a semaphore instead of signals,
improved locking and O_APPEND is fixed in direct IO mode
* Tue Jul 03 2007 - bk@suse.de
- move libs and programs to /lib and /bin, recommended for ntfs-3g
* Mon Jun 18 2007 - dmueller@suse.de
- fix boot.fuse to start after boot.localfs
* Fri May 04 2007 - mszeredi@suse.de
- fix build error
* Wed May 02 2007 - mszeredi@suse.de
- updated to version 2.6.5
* mount.fuse script fixes
* fix exiting on umount for filesystems which block SIGHUP
- udev rule for fuse device is now in udev package
- don't remove fuse module in the init-script
- use 'fusectl' as the filesystem source
* Fri Feb 09 2007 - ro@suse.de
- change fillup_and_insserv to insserv_force_if_yast in post-script
(there is no sysconfig file involved here)
* Wed Feb 07 2007 - mszeredi@suse.cz
- added init script which loads the fuse module and mounts the control
filesystem (#223663)
* Mon Feb 05 2007 - mszeredi@suse.cz
- updated to version 2.6.3:
* fix regression causing an abort during heavy filesystem use
* update author's email
* Tue Jan 30 2007 - tiwai@suse.de
- updated to version 2.6.2:
* fix 64bit compile problems
* fix fuse_teardown problem
* fix unaligned access in file descriptor in libfuse
* fix detection of fuseblk
* fix use after free in fuse_flush
* fix compatible API for opts == NULL
* Thu Jan 18 2007 - tiwai@suse.de
- fix compat API (#233870)
* Tue Dec 19 2006 - tiwai@suse.de
- updated to version 2.6.1:
* improved fusermout help texts
* fix automake problems
* Mon Oct 23 2006 - cthiel@suse.de
- update to version 2.6.0
* Improved read characteristics (asynchronous reads)
* Support for aborting filesystem connection
* POSIX file locking support
* Request interruption support
* Building module for Linux kernels earlier than 2.6.9 not supported
* Allow block device based filesystems to support swap files
* Several bugs fixed, including a rare system hang on SMP
* Mon Aug 21 2006 - cthiel@suse.de
- fix requirements of -devel package, to require fuse by version (#200496)
* Tue Aug 08 2006 - tiwai@suse.de
- fixed a syntax error in udev rules.
* Mon Jul 03 2006 - cthiel@suse.de
- fix build
* Mon May 15 2006 - tiwai@suse.de
- updated to version 2.5.3.
* Add missing rwlock initialization
* Fix negative entry handling.
* Fix race between RELEASE and UNLINK, which might leave
.fuse_hidden* files around
* libfuse: fix use-after-free bug in interruptred reply_entry().
* Fri Feb 03 2006 - cthiel@suse.de
- update to version 2.5.2
* lib: if "fsname=" option was given, pass it to fusermount
* fuse_opt: fix memory leak in handling "--" option
* fuse_opt.h: fix incompatibility with C++ compilers by renaming
'template' structure member to 'templ'
* fuse.h: fix compatibility bugs.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 14 2006 - cthiel@suse.de
- update to version 2.5.0
* Wed Nov 23 2005 - cthiel@suse.de
- update to version 2.4.2
- changed permission of /usr/bin/fusermount to 4755
* Fri Oct 28 2005 - cthiel@suse.de
- readded -fno-strict-aliasing
* Fri Oct 28 2005 - cthiel@suse.de
- update to version 2.4.1
* Fri Sep 30 2005 - tiwai@suse.de
- fixed CFLAGS to pass RPM_OPT_FLAGS.
- added -fno-strict-aliasing.
* Wed Jun 08 2005 - tiwai@suse.de
- updated to version 2.3.0.
* Tue Feb 03 2004 - adrian@suse.de
- initial package of version 1.1-pre2