115 lines
4.2 KiB
RPMSpec
115 lines
4.2 KiB
RPMSpec
Summary: Utility to force unused ext2 inodes and blocks to zero
|
|
Name: zerofree
|
|
Version: 1.0.3
|
|
Release: 3%{?dist}
|
|
License: GPL+
|
|
|
|
URL: http://intgat.tigress.co.uk/rmy/uml/
|
|
|
|
Source0: http://intgat.tigress.co.uk/rmy/uml/%{name}-%{version}.tgz
|
|
Source1: http://intgat.tigress.co.uk/rmy/uml/sparsify.c
|
|
Source2: http://intgat.tigress.co.uk/rmy/uml/index.html
|
|
|
|
# zerofree.sgml is the source for the man page from Debian.
|
|
# Unfortunately we cannot build this in Fedora because of an apparent
|
|
# bug in our DocBook tools. Therefore I also include the generated
|
|
# man page (generated on a Debian system from this source).
|
|
Source3: zerofree.sgml
|
|
Source4: zerofree.8
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
|
|
%description
|
|
zerofree is a utility to set unused filesystem inodes and blocks of an
|
|
ext2 filesystem to zero. This can improve the compressibility and
|
|
privacy of an ext2 filesystem.
|
|
|
|
This tool was inspired by the ext2fs privacy (i.e. secure deletion)
|
|
patch described in a Linux kernel mailing list thread.
|
|
|
|
WARNING: The filesystem to be processed should be unmounted or mounted
|
|
read-only. The tool tries to check this before running, but you
|
|
should be careful.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
cp -p %{SOURCE1} .
|
|
cp -p %{SOURCE2} .
|
|
|
|
|
|
%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 %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8/zerofree.8
|
|
|
|
|
|
%files
|
|
%doc COPYING index.html
|
|
%{_sbindir}/zerofree
|
|
%{_sbindir}/sparsify
|
|
%{_mandir}/man8/zerofree.8*
|
|
|
|
|
|
%changelog
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Mon Nov 18 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-1
|
|
- New upstream version 1.0.3.
|
|
- New upstream version of sparsify.c.
|
|
- Fix the license.
|
|
- Modernize the spec file.
|
|
- Remove sparsify patch (equivalent patch has gone upstream).
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-13
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-12
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Mon Jan 16 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-10
|
|
- Patch sparsify to work with e2fsprogs >= 1.42.
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Thu May 27 2010 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-7
|
|
- Include zerofree(8) man page from Debian (RHBZ#596732).
|
|
|
|
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Fri May 15 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-5
|
|
- Include the index file as a source file.
|
|
- Improve the description, remove spelling mistakes and other typos.
|
|
- Use the upstream SRPM directly, unpacking source from it.
|
|
- Fix use of dist macro.
|
|
- Pass the RPM OPTFLAGS to C compiler (should also fix debuginfo pkg).
|
|
- Use 'cp -p' to preserve timestamps when copying index.html file.
|
|
- Fix the defattr line.
|
|
- License is GPL+ (any version of the GPL including 1).
|
|
- Use a simpler install command to install the binary.
|
|
- Fix the upstream URL to point to the real original project.
|
|
- Add the sparsify command.
|
|
|
|
* Thu May 14 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-1
|
|
- Initial packaging for Fedora, based on R P Herrold's package.
|
|
|
|
* Wed May 13 2009 R P Herrold <info@owlriver.com> - 1.0.1-1
|
|
- initial packaging
|