public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Robert Scheck <robert@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/zerofree] epel10.2: Build with ext4 support for RHEL 5 (#862934, thanks to Mike Swanson)
Date: Mon, 15 Jun 2026 00:17:18 GMT [thread overview]
Message-ID: <178148263808.1.18039848960939802882.rpms-zerofree-88a623c979a5@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/zerofree
Branch : epel10.2
Commit : 88a623c979a5a999ffc635459386196297b6f222
Author : Robert Scheck <robert@fedoraproject.org>
Date : 2016-04-06T01:22:34+02:00
Stats : +15/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/zerofree/c/88a623c979a5a999ffc635459386196297b6f222?branch=epel10.2
Log:
Build with ext4 support for RHEL 5 (#862934, thanks to Mike Swanson)
---
diff --git a/zerofree.spec b/zerofree.spec
index 8e883a7..ea3a26e 100644
--- a/zerofree.spec
+++ b/zerofree.spec
@@ -1,7 +1,7 @@
Summary: Utility to force unused ext2 inodes and blocks to zero
Name: zerofree
Version: 1.0.3
-Release: 5%{?dist}
+Release: 6%{?dist}
License: GPL+
URL: http://intgat.tigress.co.uk/rmy/uml/
@@ -18,6 +18,9 @@ Source3: zerofree.sgml
Source4: zerofree.8
BuildRequires: e2fsprogs-devel
+%if 0%{?rhel} == 5
+BuildRequires: e4fsprogs-devel
+%endif
%description
@@ -37,11 +40,19 @@ should be careful.
%setup -q
cp -p %{SOURCE1} .
cp -p %{SOURCE2} .
+%if 0%{?rhel} == 5
+sed -e 's@ext2fs/ext2fs.h@ext4fs/ext2fs.h@' -i zerofree.c sparsify.c
+sed -e 's@-lext2fs@-lext4fs@' -i Makefile
+%endif
%build
make CC="gcc $RPM_OPT_FLAGS"
+%if 0%{?rhel} == 5
+gcc $RPM_OPT_FLAGS sparsify.c -o sparsify -lext4fs
+%else
gcc $RPM_OPT_FLAGS sparsify.c -o sparsify -lext2fs
+%endif
%install
@@ -58,6 +69,9 @@ install -D -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8/zerofree.8
%changelog
+* Wed Apr 06 2016 Robert Scheck <robert@fedoraproject.org> - 1.0.3-6
+- Build with ext4 support for RHEL 5 (#862934, thanks to Mike Swanson)
+
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
reply other threads:[~2026-06-15 0:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178148263808.1.18039848960939802882.rpms-zerofree-88a623c979a5@fedoraproject.org \
--to=robert@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox