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/pigz] rawhide: honer build flags + spec cleanup and modernization
Date: Wed, 10 Jun 2026 06:01:31 GMT	[thread overview]
Message-ID: <178107129199.1.6272189901045036722.rpms-pigz-2924a4aa7c12@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/pigz
            Branch : rawhide
            Commit : 2924a4aa7c129bd5366be63de96fa99d27686784
            Author : Filipe Rosset <filiperosset@fedoraproject.org>
            Date   : 2026-06-10T03:00:12-03:00
            Stats  : +11/-8 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/pigz/c/2924a4aa7c129bd5366be63de96fa99d27686784?branch=rawhide

            Log:
            honer build flags + spec cleanup and modernization

Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>

---
diff --git a/pigz.spec b/pigz.spec
index 3a39de6..38289f7 100644
--- a/pigz.spec
+++ b/pigz.spec
@@ -2,14 +2,16 @@ Name:           pigz
 Version:        2.8
 Release:        %autorelease
 Summary:        Parallel implementation of gzip
-License:        Zlib
+License:        Zlib AND Apache-2.0
 URL:            https://www.zlib.net/pigz/
-Source0:        https://www.zlib.net/%{name}/%{name}-%{version}.tar.gz
+Source:         https://www.zlib.net/%{name}/%{name}-%{version}.tar.gz
 BuildRequires:  gcc
 BuildRequires:  make
 BuildRequires:  ncompress
 BuildRequires:  zlib-devel
 
+Provides:       bundled(zopfli)
+
 %description
 pigz, which stands for parallel implementation of gzip,
 is a fully functional replacement for gzip that exploits
@@ -20,21 +22,22 @@ compressing data.
 %autosetup -p1
 
 %build
-%make_build CFLAGS="$RPM_OPT_FLAGS"
+%make_build CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}"
 
 %install
-install -p -D pigz $RPM_BUILD_ROOT%{_bindir}/pigz
-pushd $RPM_BUILD_ROOT%{_bindir}; ln pigz unpigz; popd
-install -p -D pigz.1 -m 0644 $RPM_BUILD_ROOT%{_datadir}/man/man1/pigz.1
+install -D -p -m 0755 pigz %{buildroot}%{_bindir}/pigz
+ln -f %{buildroot}%{_bindir}/pigz %{buildroot}%{_bindir}/unpigz
+install -D -p -m 0644 pigz.1 %{buildroot}%{_mandir}/man1/pigz.1
 
 %check
-make tests CFLAGS="$RPM_OPT_FLAGS"
+%make_build tests CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}"
 
 %files
+%license zopfli/COPYING
 %doc pigz.pdf README
 %{_bindir}/pigz
 %{_bindir}/unpigz
-%{_datadir}/man/man1/pigz.*
+%{_mandir}/man1/pigz.1*
 
 %changelog
 %autochangelog

                 reply	other threads:[~2026-06-10  6:01 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=178107129199.1.6272189901045036722.rpms-pigz-2924a4aa7c12@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