Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
kiwi
:
Appliance
>
zerofree
> zerofree.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File zerofree.spec of Package zerofree
# # spec file for package zerofree # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright 2008 Archie L. Cobbs. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: zerofree Version: 1.0.3 Release: 0 Summary: Utility for ext2 filesystems that zeroes out unallocated blocks License: GPL-2.0 Group: System/Filesystems Url: http://intgat.tigress.co.uk/rmy/uml/index.html BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: http://intgat.tigress.co.uk/rmy/uml/%{name}-%{version}.tgz Source1: http://intgat.tigress.co.uk/rmy/uml/sparsify.c %if 0%{?suse_version} BuildRequires: libext2fs-devel %endif %if 0%{?rhel_version} || 0%{?fedora} || 0%{?centos_version} BuildRequires: e2fsprogs-devel %endif %description zerofree is a utility for ext2 filesystems that will scan the list of free blocks in a filesystem and fill with zeroes any blocks that do not already contain zeroes. This RPM also includes the sparsify utility, which will scan all files in an ext2 filesystem and ensure that they are maximally sparse. See http://intgat.tigress.co.uk/rmy/uml/index.html for more info. %prep %setup -q %build export CFLAGS="%{optflags}" make %__cc %{optflags} -o sparsify %{SOURCE1} -lext2fs %install mkdir -p %{buildroot}%{_bindir} install -s -m 0755 zerofree %{buildroot}%{_bindir}/ install -s -m 0755 sparsify %{buildroot}%{_bindir}/ %files %defattr(-,root,root) %doc COPYING %{_bindir}/* %changelog