zfs-fuse/zfs-fuse.spec

126 lines
3.2 KiB
RPMSpec

Name: zfs-fuse
Epoch: 1
Version: 0.7.0
Release: 1mamba
Summary: ZFS Filesystem for FUSE/Linux
Group: System/Kernel and Hardware/Drivers
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://zfs-fuse.net/
## To get zfs-fuse:
## hg clone http://www.wizy.org/mercurial/zfs-fuse/trunk
## mv trunk zfs-fuse
## tar jcvf zfs-fuse-hg`date '+%Y%m%d'`.tar.bz2 zfs-fuse
#Source: http://download.berlios.de/zfs-fuse/zfs-fuse-%{version}.tar.bz2
#Source: http://zfs-fuse.net/releases/%{version}/zfs-fuse-%{version}.tar.bz2
Source: http://fossies.org/linux/misc/zfs-fuse-%{version}.tar.xz
#Source: http://zfs-fuse.net/releases/%{version}/zfs-fuse-%{version}.tar.bz2
Source1: %{name}-initscript
Patch: %{name}-0.4.0_beta1-SConstruct.patch
Patch1: %{name}-0.5.0-gcc43.patch
Patch2: %{name}-0.5.0-gcc44.patch
Patch3: zfs-fuse-0.7.0-glibc-2.14.patch
Patch4: zfs-fuse-0.7.0-glibc-tirpc.patch
License: Common Development and Distribution License
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libaio-devel
BuildRequires: libfuse-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: scons
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
ZFS is an advanced modern general-purpose filesystem from Sun Microsystems, originally designed for Solaris/OpenSolaris.
This project is a port of ZFS to the FUSE framework for the Linux operating system.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
#sed -i -e "s,-O2,%{optflags}," src/SConstruct
%build
cd src
scons \
debug=0 \
optim="%{optflags} -ltirpc"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
pushd src
scons install \
debug=0 \
install_dir=%{buildroot}%{_sbindir} \
man_dir=%{buildroot}%{_mandir}/man8 \
cfg_dir=%{buildroot}%{_sysconfdir}/zfs
popd
install -D -m 0755 %{S:1} \
%{buildroot}%{_initrddir}/%{name}
# remove unpackaged files
rm -f %{buildroot}%{_sbindir}/.sconsign
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
# new install
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add %{name}
service %{name} start
fi
:
%preun
# erase
if [ $1 -eq 0 ]; then
service %{name} condstop
/sbin/chkconfig --del %{name}
fi
:
%postun
# upgrade
if [ $1 -eq 1 ]; then
service %{name} condrestart
fi
:
%files
%defattr(-,root,root)
%{_sysconfdir}/zfs/zfs_pool_alert
%{_initrddir}/%{name}
%{_sbindir}/zdb
%{_sbindir}/zfs
%{_sbindir}/zfs-fuse
%{_sbindir}/zpool
%{_sbindir}/zstreamdump
%{_sbindir}/ztest
%{_mandir}/man8/zdb.8*
%{_mandir}/man8/zfs-fuse.8*
%{_mandir}/man8/zfs.8*
%{_mandir}/man8/zpool.8*
%{_mandir}/man8/zstreamdump.8*
%doc LICENSE
#BUGS CHANGES HACKING README STATUS TESTING TODO
%changelog
* Wed Aug 15 2012 Automatic Build System <autodist@mambasoft.it> 0.7.0-1mamba
- automatic version update by autodist
* Fri Feb 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.0-2mamba
- rebuilt to remove executable requirements
* Sun Mar 22 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.0-1mamba
- automatic update by autodist
* Mon Aug 27 2007 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> hg20070828-1mamba
- package created by autospec