public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/zerofree] epel10: Build with ext4 support for RHEL 5 (#862934, thanks to Mike Swanson)
@ 2026-06-15  0:16 Robert Scheck
  0 siblings, 0 replies; only message in thread
From: Robert Scheck @ 2026-06-15  0:16 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/zerofree
Branch : epel10
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

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-15  0:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15  0:16 [rpms/zerofree] epel10: Build with ext4 support for RHEL 5 (#862934, thanks to Mike Swanson) Robert Scheck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox