public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rzip] rawhide: spec cleanup and modernization
@ 2026-06-25 21:28 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-25 21:28 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rzip
Branch : rawhide
Commit : 5974e0beec0b06d5c23b96e966a6abc99acdbc1f
Author : Filipe Rosset <filiperosset@fedoraproject.org>
Date : 2026-06-25T15:20:21-03:00
Stats : +32/-9 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rzip/c/5974e0beec0b06d5c23b96e966a6abc99acdbc1f?branch=rawhide
Log:
spec cleanup and modernization
Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>
---
diff --git a/rzip-makefile.patch b/rzip-makefile.patch
new file mode 100644
index 0000000..cec83e1
--- /dev/null
+++ b/rzip-makefile.patch
@@ -0,0 +1,19 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -9,6 +9,7 @@
+ LIBS=@LIBS@
+ CC=@CC@
+ CFLAGS=@CFLAGS@
++LDFLAGS=@LDFLAGS@
+
+ INSTALLCMD=@INSTALL@
+
+@@ -37,7 +38,7 @@
+ ${INSTALLCMD} -m 644 $(srcdir)/rzip.1 ${INSTALL_MAN}/man1/
+
+ rzip: $(OBJS)
+- $(CC) $(CFLAGS) -o rzip $(OBJS) $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o rzip $(OBJS) $(LIBS)
+
+ rzip.1: rzip.yo
+ yodl2man -o rzip.1 rzip.yo
diff --git a/rzip.spec b/rzip.spec
index ee10d6a..edc581e 100644
--- a/rzip.spec
+++ b/rzip.spec
@@ -1,16 +1,16 @@
Name: rzip
Version: 2.1
-Release: 38%{?dist}
+Release: 39%{?dist}
Summary: A large-file compression program
-# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
URL: http://rzip.samba.org
Source0: http://rzip.samba.org/ftp/rzip/%{name}-%{version}.tar.gz
Patch0: rzip-configure.patch
+Patch1: rzip-makefile.patch
-BuildRequires: make
-BuildRequires: gcc
BuildRequires: bzip2-devel
+BuildRequires: gcc
+BuildRequires: make
%description
rzip is a compression program, similar in functionality to gzip or
@@ -22,20 +22,24 @@ compression ratios than other programs.
%autosetup -p1
%build
-export CFLAGS="${RPM_OPT_FLAGS} -fPIE -pie"
%configure
-make %{?_smp_mflags}
+%make_build
%install
-rm -rf $RPM_BUILD_ROOT
-make install INSTALL_BIN=$RPM_BUILD_ROOT%{_bindir} INSTALL_MAN=$RPM_BUILD_ROOT%{_mandir}
+%make_install INSTALL_BIN=%{buildroot}%{_bindir} INSTALL_MAN=%{buildroot}%{_mandir}
+
+%check
+./testfiles.sh main.c rzip.c
%files
-%doc COPYING
+%license COPYING
%{_bindir}/rzip
%{_mandir}/man1/*
%changelog
+* Thu Jun 25 2026 Filipe Rosset <filiperosset@fedoraproject.org> - 2.1-39
+- Modernize and cleanup spec file according to Fedora Packaging Guidelines
+
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-25 21:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-25 21:28 [rpms/rzip] rawhide: spec cleanup and modernization Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox