123 Star 0 Fork 7

src-openEuler/zerofree

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
zerofree.spec 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
Name: zerofree
Version: 1.1.1
Release: 4
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
%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 <[email protected]> - 1.1.1-4
- Completing build dependencies to fix gcc compiler missing error
* Thu Dec 12 2019 openEuler Buildteam <[email protected]> - 1.1.1-3
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/zerofree.git
[email protected]:src-openeuler/zerofree.git
src-openeuler
zerofree
zerofree
master

搜索帮助