zfs-fuse/zfs-fuse.spec

130 lines
3.5 KiB
RPMSpec

Name: zfs-fuse
Epoch: 1
Version: 0.7.2.2
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: https://github.com/gordan-bobic/zfs-fuse
Source: https://github.com/gordan-bobic/zfs-fuse.git/%{version}/zfs-fuse-%{version}.tar.bz2
Source1: zfs-fuse.service
Source2: zfs-fuse-helper
Source3: zfs-fuse.sysconfig
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.2.2-stack.patch
Patch5: zfs-fuse-0.7.2.2-python3.patch
Patch6: zfs-fuse-0.7.2.2-tirpc.patch
Patch7: zfs-fuse-0.7.2.2-common.patch
Patch8: zfs-fuse-0.7.2.2-upstream-ENODATA-errors.patch
Patch9: zfs-fuse-0.7.2.2-xattr.patch
License: Common Development and Distribution License
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libaio-devel
BuildRequires: libbzip2-devel
BuildRequires: libfuse-devel
BuildRequires: liblzma-devel
BuildRequires: liblzo-devel
BuildRequires: libopenssl-devel
BuildRequires: libtirpc-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: scons
%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.
%debug_package
%prep
%setup -q
#%patch1 -p1
#%patch2 -p1
#%patch3 -p1
%patch4 -p0
%patch5 -p1
%patch6 -p1
%patch7 -p0
%patch8 -p1
%patch9 -p1
%build
cd src
export CCFLAGS="%{optflags}"
scons debug=2 optim='%{optflags}'
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
pushd src
scons install \
debug=1 \
install_dir=%{buildroot}%{_sbindir} \
man_dir=%{buildroot}%{_mandir}/man8 \
cfg_dir=%{buildroot}%{_sysconfdir}/zfs
popd
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/zfs-fuse.service
install -D -m 0755 %{SOURCE2} %{buildroot}%{_sbindir}/zfs-fuse-helper
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/zfs-fuse
# remove unpackaged files
rm -f %{buildroot}%{_sbindir}/.sconsign
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%systemd_post zfs-fuse
:
%preun
%systemd_preun zfs-fuse
:
%postun
%systemd_postun_with_restart zfs-fuse
:
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/sysconfig/zfs-fuse
%{_sysconfdir}/zfs/zfs_pool_alert
%{_sbindir}/mount.zfs
%{_sbindir}/zdb
%{_sbindir}/zfs
%{_sbindir}/zfs-fuse
%{_sbindir}/zfs-fuse-helper
%{_sbindir}/zpool
%{_sbindir}/zstreamdump
%{_sbindir}/ztest
%{_unitdir}/zfs-fuse.service
%{_mandir}/man8/zdb.8*
%{_mandir}/man8/zfs-fuse.8*
%{_mandir}/man8/zfs.8*
%{_mandir}/man8/zpool.8*
%{_mandir}/man8/zstreamdump.8*
%doc LICENSE
%changelog
* Wed Mar 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.2.2-1mamba
- update to 0.7.2.2
* 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