public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mawk] f44: spec: modernize package configuration
@ 2026-06-26  0:10 Xose Vazquez Perez
  0 siblings, 0 replies; only message in thread
From: Xose Vazquez Perez @ 2026-06-26  0:10 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/mawk
            Branch : f44
            Commit : 6643129b108acbb50e438cf95ac97fcc3cbe1e59
            Author : Xose Vazquez Perez <xose.vazquez@gmail.com>
            Date   : 2026-05-22T15:54:14+02:00
            Stats  : +7/-5 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/mawk/c/6643129b108acbb50e438cf95ac97fcc3cbe1e59?branch=f44

            Log:
            spec: modernize package configuration

- use %{__cc} to improve compiler flexibility
   (e.g., fedpkg mockbuild  -- --define "toolchain clang" )
- replace %setup with %autosetup
- and %make with %make_build

---
diff --git a/mawk.spec b/mawk.spec
index d88301c..6ed8137 100644
--- a/mawk.spec
+++ b/mawk.spec
@@ -2,12 +2,11 @@
 
 Name:		mawk
 Version:	1.3.4
-Release:	6.%{pver}%{?dist}
+Release:	7.%{pver}%{?dist}
 Epoch:		1
 Summary:	Interpreter for the AWK programming language
 License:	GPL-2.0-only
-BuildRequires:	make byacc
-BuildRequires:	gcc
+BuildRequires:	make byacc %{__cc}
 URL:		https://invisible-island.net/mawk/
 Source0:	https://invisible-island.net/archives/mawk/%{name}-%{version}-%{pver}.tgz
 
@@ -17,12 +16,12 @@ useful for manipulation of data files, text retrieval and processing, and for
 prototyping and experimenting with algorithms.
 
 %prep
-%setup -q -n %{name}-%{version}-%{pver}
+%autosetup -p1 -n %{name}-%{version}-%{pver}
 chmod 644 examples/*
 
 %build
 %configure
-make %{?_smp_mflags}
+%make_build
 
 %check
 make check
@@ -38,6 +37,9 @@ make install DESTDIR=%{buildroot} INSTALL='install -p'
 %{_mandir}/man7/mawk-*.7*
 
 %changelog
+* Tue Mar 03 2026  Xose Vazquez Perez <xose.vazquez@gmx.com>- 1:1.3.7-1.20260302
+- modernize spec
+
 * Tue Mar 03 2026 Thomas Dickey <dickey@invisible-island.net> - 1:1.3.4-1.20260302
 - upgrade to 1.3.4-20260302
 

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-26  0:10 [rpms/mawk] f44: spec: modernize package configuration Xose Vazquez Perez

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