511cd6
Name:           fuse
bbdac4
Version:        2.8.7
cbca40
Release:        2%{?dist}
511cd6
Summary:        File System in Userspace (FUSE) utilities
511cd6
511cd6
Group:          System Environment/Base
db640e
License:        GPL+
511cd6
URL:            http://fuse.sf.net
ec06f3
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
db547b
Source1:	%{name}.conf
511cd6
27ce32
Patch1:		fuse-0001-Fix-udev-rules-Fedora-specific.patch
27ce32
Patch2:		fuse-0002-More-parentheses.patch
cbca40
# Apply upstream fix for BZ#870485
cbca40
# http://fuse.git.sourceforge.net/git/gitweb.cgi?p=fuse/fuse;a=commit;h=3c4c063a2fd5cc6e9ce2b5db82e2a0dfa59b2e40
cbca40
Patch3:         fuse-3c4c063a2fd5cc6e9ce2b5db82e2a0dfa59b2e40.patch
511cd6
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
753d4b
Requires:       kernel >= 2.6.14
753d4b
Requires:       which
753d4b
BuildRequires:  libselinux-devel
511cd6
aec3cc
Requires(preun): chkconfig
aec3cc
Requires(preun): initscripts
7b0511
511cd6
%description
7d462e
With FUSE it is possible to implement a fully functional filesystem in a
7d462e
userspace program. This package contains the FUSE userspace tools to
511cd6
mount a FUSE filesystem.
511cd6
511cd6
%package libs
511cd6
Summary:        File System in Userspace (FUSE) libraries
511cd6
Group:          System Environment/Libraries
db640e
License:        LGPLv2+
511cd6
511cd6
%description libs
7d462e
Devel With FUSE it is possible to implement a fully functional filesystem in a
7d462e
userspace program. This package contains the FUSE libraries.
511cd6
511cd6
511cd6
%package devel
511cd6
Summary:        File System in Userspace (FUSE) devel files
511cd6
Group:          Development/Libraries
753d4b
Requires:       %{name}-libs = %{version}-%{release}
753d4b
Requires:       pkgconfig
db640e
License:        LGPLv2+
511cd6
511cd6
%description devel
7d462e
With FUSE it is possible to implement a fully functional filesystem in a
7d462e
userspace program. This package contains development files (headers,
511cd6
pgk-config) to develop FUSE based applications/filesystems.
511cd6
511cd6
511cd6
%prep
511cd6
%setup -q
511cd6
#disable device creation during build/install
511cd6
sed -i 's|mknod|echo Disabled: mknod |g' util/Makefile.in
27ce32
%patch1 -p1 -b .fix_udev_rules
27ce32
%patch2 -p1 -b .add_parentheses
cbca40
%patch3 -p1 -b .bz870485
511cd6
511cd6
%build
10d458
# Can't pass --disable-static here, or else the utils don't build
27ce32
CFLAGS="%{optflags} -D_GNU_SOURCE" %configure \
27ce32
 --libdir=/%{_lib} \
27ce32
 --bindir=/bin \
27ce32
 --exec-prefix=/
511cd6
make %{?_smp_mflags}
511cd6
27ce32
511cd6
%install
511cd6
rm -rf $RPM_BUILD_ROOT
511cd6
make install DESTDIR=$RPM_BUILD_ROOT
511cd6
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
511cd6
# change from 4755 to 0755 to allow stripping -- fixed later in files
27ce32
chmod 0755 $RPM_BUILD_ROOT/bin/fusermount
27ce32
# Put pc file in correct place
27ce32
mkdir -p $RPM_BUILD_ROOT%{_libdir}
27ce32
mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}
511cd6
10d458
# Get rid of static libs
27ce32
rm -f $RPM_BUILD_ROOT/%{_lib}/*.a
b5193c
# No need to create init-script
753d4b
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/init.d/fuse
511cd6
27ce32
# Compatibility symlinks
27ce32
mkdir -p $RPM_BUILD_ROOT%{_bindir}
27ce32
cd $RPM_BUILD_ROOT%{_bindir}
27ce32
ln -s /bin/fusermount fusermount
27ce32
ln -s /bin/ulockmgr_server ulockmgr_server
27ce32
db547b
# Install config-file
db547b
install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
db547b
511cd6
%clean
511cd6
rm -rf $RPM_BUILD_ROOT
511cd6
511cd6
7b0511
%preun
753d4b
if [ -f /etc/init.d/fuse ] ; then
753d4b
    /sbin/service fuse stop >/dev/null 2>&1
753d4b
    /sbin/chkconfig --del fuse
7b0511
fi
7b0511
511cd6
511cd6
%post libs -p /sbin/ldconfig
511cd6
511cd6
%postun libs -p /sbin/ldconfig
511cd6
511cd6
%files
272cd2
%defattr(-,root,root,-)
7b0511
%doc AUTHORS ChangeLog COPYING FAQ Filesystems NEWS README README.NFS
27ce32
/sbin/mount.fuse
27ce32
%attr(4755,root,root) /bin/fusermount
27ce32
/bin/ulockmgr_server
27ce32
# Compat symlinks
27ce32
%{_bindir}/fusermount
bfe495
%{_bindir}/ulockmgr_server
27ce32
%config %{_sysconfdir}/udev/rules.d/99-fuse.rules
cc487b
%config(noreplace) %{_sysconfdir}/%{name}.conf
511cd6
511cd6
%files libs
272cd2
%defattr(-,root,root,-)
511cd6
%doc COPYING.LIB
27ce32
/%{_lib}/libfuse.so.*
27ce32
/%{_lib}/libulockmgr.so.*
511cd6
511cd6
%files devel
511cd6
%defattr(-,root,root,-)
27ce32
/%{_lib}/libfuse.so
27ce32
/%{_lib}/libulockmgr.so
bfe495
%{_libdir}/pkgconfig/*.pc
511cd6
%{_includedir}/fuse.h
d5a333
%{_includedir}/ulockmgr.h
511cd6
%{_includedir}/fuse
511cd6
511cd6
%changelog
cbca40
* Wed Oct 31 2012 Tom Callaway <spot@fedoraproject.org> - 2.8.7-2
cbca40
- apply upstream fix for crash caused by freeing a stack address (bz870485)
cbca40
27ce32
* Thu Apr 19 2012 Peter Lemenkov <lemenkov@gmail.com> - 2.8.7-1
bbdac4
- Ver. 2.8.7
bbdac4
d359e1
* Thu Sep 22 2011 Peter Lemenkov <lemenkov@gmail.com> - 2.8.6-1
d359e1
- Ver. 2.8.6
d359e1
- Dropped patch 3 - fixed upstream
d359e1
cc487b
* Thu Mar 03 2011 Peter Lemenkov <lemenkov@gmail.com> - 2.8.5-5
cc487b
- Use noreplace for /etc/fuse.conf
cc487b
db547b
* Tue Feb 15 2011 Peter Lemenkov <lemenkov@gmail.com> - 2.8.5-4
db547b
- Provide /etc/fuse.conf (see rhbz #292811)
db547b
430da1
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.5-3
430da1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
430da1
a353eb
* Wed Oct 27 2010 Peter Lemenkov <lemenkov@gmail.com> 2.8.5-2
a353eb
- Fixed rhbz #622255
a353eb
8357eb
* Tue Oct 26 2010 Peter Lemenkov <lemenkov@gmail.com> 2.8.5-1
8357eb
- Ver. 2.8.5
8357eb
aac476
* Tue Jun  8 2010 Peter Lemenkov <lemenkov@gmail.com> 2.8.4-1
aac476
- Ver. 2.8.4
aac476
- CVE-2009-3297 patch dropped (merged upstream)
aac476
5b19b0
* Tue Jan 26 2010 Peter Lemenkov <lemenkov@gmail.com> 2.8.1-4
5b19b0
- Fixed CVE-2009-3297 (rhbz #558833)
5b19b0
b5193c
* Thu Nov 19 2009 Peter Lemenkov <lemenkov@gmail.com> 2.8.1-3
b5193c
- Fixed udev rules (bz# 538606)
b5193c
b5193c
* Thu Nov 19 2009 Peter Lemenkov <lemenkov@gmail.com> 2.8.1-2
b5193c
- Removed support for MAKEDEV (bz# 511220)
b5193c
aec3cc
* Thu Sep 17 2009 Peter Lemenkov <lemenkov@gmail.com> 2.8.1-1
aec3cc
- Ver. 2.8.1
aec3cc
347d56
* Wed Aug 19 2009 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-1
347d56
- Ver. 2.8.0
347d56
376abd
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.4-4
376abd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
376abd
8a2421
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.4-3
8a2421
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8a2421
753d4b
* Wed Jan 28 2009 Peter Lemenkov <lemenkov@gmail.com> 2.7.4-2
753d4b
- Fixed BZ#479581
753d4b
17b753
* Sat Aug 23 2008 Peter Lemenkov <lemenkov@gmail.com> 2.7.4-1
17b753
- Ver. 2.7.4
17b753
7d462e
* Sat Jul 12 2008 Peter Lemenkov <lemenkov@gmail.com> 2.7.3-3
7d462e
- Fixed initscripts (BZ#441284)
7d462e
5667b6
* Thu Feb 28 2008 Peter Lemenkov <lemenkov@gmail.com> 2.7.3-2
5667b6
- Fixed BZ#434881
5667b6
7b0511
* Wed Feb 20 2008 Peter Lemenkov <lemenkov@gmail.com> 2.7.3-1
7b0511
- Ver. 2.7.3
7b0511
- Removed usergroup fuse
7b0511
- Added chkconfig support (BZ#228088)
7b0511
fe33d7
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.7.2-2
fe33d7
- Autorebuild for GCC 4.3
fe33d7
db640e
* Mon Jan 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.7.2-1
db640e
- bump to 2.7.2
db640e
- fix license tag
db640e
db640e
* Sun Nov  4 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.7.0-9
db640e
- fix initscript to work with chkconfig
b11d4c
b11d4c
* Mon Oct  1 2007 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-8
b11d4c
- Added Require: which (BZ#312511)
b11d4c
7e0a87
* Fri Sep 21 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.7.0-7
7e0a87
- revert udev rules change
7e0a87
972a8c
* Thu Sep 20 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.7.0-6
972a8c
- change udev rules so that /dev/fuse is chmod 666 (bz 298651)
972a8c
df8622
* Wed Aug 29 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.7.0-5
df8622
- fix open issue (bz 265321)
df8622
f4fe6d
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at="" fedoraproject="" dot="" org=""> - 2.7.0-4
f4fe6d
- Rebuild for selinux ppc32 issue.
f4fe6d
bfe495
* Sun Jul 22 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.7.0-3
bfe495
- put pkgconfig file in correct place
bfe495
- enable compat symlinks for files in /bin
bfe495
10d458
* Sat Jul 21 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.7.0-2
10d458
- redefine exec_prefix to /
10d458
- redefine bindir to /bin
10d458
- redefine libdir to %%{_lib}
10d458
- don't pass --disable-static to configure
10d458
- manually rm generated static libs
10d458
10d458
* Wed Jul 18 2007 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-1
10d458
- Version 2.7.0
10d458
- Redefined exec_prefix due to demands from NTFS-3G
e6ed1e
a61f68
* Wed Jun  6 2007 Peter Lemenkov <lemenkov@gmail.com> 2.6.5-2
a61f68
- Add BR libselinux-devel (bug #235145)
a61f68
- Config files properly marked as config (bug #211122)
a61f68
ec06f3
* Sat May 12 2007 Peter Lemenkov <lemenkov@gmail.com> 2.6.5-1
ec06f3
- Version 2.6.5
ec06f3
272cd2
* Thu Feb 22 2007 Peter Lemenkov <lemenkov@gmail.com> 2.6.3-2
272cd2
- Fixed bug #229642
272cd2
4f8c43
* Wed Feb  7 2007 Peter Lemenkov <lemenkov@gmail.com> 2.6.3-1
4f8c43
* Ver. 2.6.3
4f8c43
a94818
* Tue Dec 26 2006 Peter Lemenkov <lemenkov@gmail.com> 2.6.1-1
a94818
- Ver. 2.6.1
a94818
35f5d0
* Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.6.0-2
35f5d0
- fixed nasty typo (see bug #217075)
35f5d0
d5a333
* Fri Nov  3 2006 Peter Lemenkov <lemenkov@gmail.com> 2.6.0-1
d5a333
- Ver. 2.6.0
d5a333
f415f0
* Sun Oct 29 2006 Peter Lemenkov <lemenkov@gmail.com> 2.5.3-5
f415f0
- Fixed udev-rule again
f415f0
8ce4f1
* Sat Oct  7 2006 Peter Lemenkov <lemenkov@gmail.com> 2.5.3-4
8ce4f1
- Fixed udev-rule
8ce4f1
d2c13c
* Tue Sep 12 2006 Peter Lemenkov <lemenkov@gmail.com> 2.5.3-3%{?dist}
d2c13c
- Rebuild for FC6
d2c13c
6c223a
* Wed May 03 2006 Peter Lemenkov <lemenkov@newmail.ru> 2.5.3-1%{?dist}
6c223a
- Update to 2.5.3
6c223a
e6ed1e
* Thu Mar 30 2006 Peter Lemenkov <lemenkov@newmail.ru> 2.5.2-4%{?dist}
e6ed1e
- rebuild
e6ed1e
97e6ea
* Mon Feb 13 2006 Peter Lemenkov <lemenkov@newmail.ru> - 2.5.2-3
97e6ea
- Proper udev rule
97e6ea
f080a7
* Mon Feb 13 2006 Peter Lemenkov <lemenkov@newmail.ru> - 2.5.2-2
f080a7
- Added missing requires
f080a7
3e906e
* Tue Feb 07 2006 Peter Lemenkov <lemenkov@newmail.ru> - 2.5.2-1
3e906e
- Update to 2.5.2
3e906e
- Dropped fuse-mount.fuse.patch
3e906e
511cd6
* Wed Nov 23 2005 Thorsten Leemhuis <fedora[at]leemhuis[dot]info> - 2.4.2-1
511cd6
- Use dist
511cd6
511cd6
* Wed Nov 23 2005 Thorsten Leemhuis <fedora[at]leemhuis[dot]info> - 2.4.2-1
511cd6
- Update to 2.4.2 (solves CVE-2005-3531)
511cd6
- Update README.fedora
511cd6
511cd6
* Sat Nov 12 2005 Thorsten Leemhuis <fedora[at]leemhuis[dot]info> - 2.4.1-3
511cd6
- Add README.fedora
511cd6
- Add hint to README.fedora and that you have to be member of the group "fuse"
511cd6
  in the description
511cd6
- Use groupadd instead of fedora-groupadd
511cd6
511cd6
* Fri Nov 04 2005 Thorsten Leemhuis <fedora[at]leemhuis[dot]info> - 2.4.1-2
511cd6
- Rename packages a bit
511cd6
- use makedev.d/40-fuse.nodes
511cd6
- fix /sbin/mount.fuse
511cd6
- Use a fuse group to restict access to fuse-filesystems
511cd6
511cd6
* Fri Oct 28 2005 Thorsten Leemhuis <fedora[at]leemhuis[dot]info> - 2.4.1-1
511cd6
- Initial RPM release.