zerofree/zerofree.spec

49 lines
1.3 KiB
RPMSpec
Raw Normal View History

2020-02-18 00:22:56 -05:00
Name: zerofree
Version: 1.1.1
Release: 4
2020-02-18 00:22:56 -05:00
Summary: Utility to force unused ext2/3/4 inodes and blocks to zero
License: GPLv2
URL: https://frippery.org/uml/
Source0: https://frippery.org/uml/%{name}-%{version}.tgz
Source1: https://frippery.org/uml/sparsify.c
Source2: zerofree.8
BuildRequires: e2fsprogs-devel gcc
2020-02-18 00:22:56 -05:00
%description
This module is a utility to set unused filesystem inodes and blocks of an ext2/3/4 filesystem to zero,
which can improve the compressibility and privacy of an ext2/3/4 filesystem.
%package help
Summary: man files for %{name}
Requires: man
%description help
This package includes man files for %{name}.
%prep
%autosetup -p1
cp -p %{SOURCE1} .
%build
make CC="gcc $RPM_OPT_FLAGS"
gcc $RPM_OPT_FLAGS sparsify.c -o sparsify -lext2fs
%install
install -D -p -m 755 zerofree $RPM_BUILD_ROOT%{_sbindir}/zerofree
install -D -p -m 755 sparsify $RPM_BUILD_ROOT%{_sbindir}/sparsify
install -D -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man8/zerofree.8
%files
%license COPYING
%{_sbindir}/*
%files help
%{_mandir}/man*/*
%changelog
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 1.1.1-4
- Completing build dependencies to fix gcc compiler missing error
2020-02-18 00:22:56 -05:00
* Thu Dec 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.1-3
- Package init