fuse/fuse.spec

212 lines
6.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package fuse (Version 2.6.5)
#
# 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: Userspace File System
Version: 2.6.5
Release: 16
License: GPL v2 or later, LGPL v2 or later
Group: System/Filesystems
Source: %{name}-%{version}.tar.bz2
Source1: boot.fuse
Patch: fuse-install-fix.diff
Patch2: fuse-pc-remove-libdir-from-Libs.diff
URL: http://fuse.sourceforge.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %insserv_prereq permissions
%define _exec_prefix /
%define _libdir /%_lib
%define usrbindir %{_prefix}/bin
%define pkgconfigdir %{_prefix}/%{_lib}/pkgconfig
%description
With FUSE, a userspace program can export a file system through the
Linux kernel.
To use fuse, you additional fuse modules like curlftpfs, encfs, obexfs,
sshfs or wdfs.
These and possibly more are likely provided as separate packages in
this distribution.
Authors:
--------
Miklos Szeredi <miklos@szeredi.hu>
%package devel
Summary: Development package for of FUSE (userspace filesystem) modules
Group: Development/Languages/C and C++
Requires: fuse = %{version} glibc-devel
%description devel
This package contains all include files, libraries and configuration
files needed to develop programs that use FUSE library to implement
Linux filesystems in userspace.
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
cd %buildroot
rm -rf .%{_libdir}/lib*.la
mv .%{_libdir}/lib*.a .%{_prefix}/%{_lib}/
mkdir .%{usrbindir}
mv .%{_bindir}/fusermount .%{usrbindir}/fusermount
%post
%{insserv_force_if_yast boot.fuse}
%run_ldconfig
%run_permissions
%verifyscript
%verify_permissions -e %{usrbindir}/fusermount
%preun
%stop_on_removal boot.fuse
%postun
%run_ldconfig
%insserv_cleanup
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%config %{_sysconfdir}/init.d/boot.fuse
%doc AUTHORS ChangeLog FAQ NEWS README*
%{_libdir}/lib*.so.*
%verify(not mode) %attr(4750,root,trusted) %{usrbindir}/fusermount
/sbin/mount.fuse
%{_bindir}/ulockmgr_server
%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_prefix}/%{_lib}/lib*.a
%{_includedir}/fuse.h
%{_includedir}/fuse
%{_includedir}/ulockmgr.h
%{pkgconfigdir}/*.pc
%changelog
* 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