public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <filiperosset@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rzip] rawhide: spec cleanup and modernization
Date: Thu, 25 Jun 2026 21:28:35 GMT	[thread overview]
Message-ID: <178242291577.1.17373347538412078124.rpms-rzip-5974e0beec0b@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-06-25 21:28 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=178242291577.1.17373347538412078124.rpms-rzip-5974e0beec0b@fedoraproject.org \
    --to=filiperosset@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