diff --git a/gawk-5.2.2.tar.xz b/gawk-5.3.0.tar.xz similarity index 32% rename from gawk-5.2.2.tar.xz rename to gawk-5.3.0.tar.xz index 663b9f912d77e717509585dfb73b5cc5d43abb95..9c4cfd71949c2d042fc4e355ccf53bbedeb8fbdc 100644 Binary files a/gawk-5.2.2.tar.xz and b/gawk-5.3.0.tar.xz differ diff --git a/gawk.spec b/gawk.spec index 1053fef90cec0a3fbb4faa797d2d061d7faf8d2b..3a129a4d71e170486ccb7308d400590f5491d908 100644 --- a/gawk.spec +++ b/gawk.spec @@ -1,11 +1,15 @@ -%global gawk_api_major %%(tar -xf %{name}-%{version}.tar.xz %{name}-%{version}/gawkapi.h --to-stdout |\ - egrep -i "gawk_api_major.*[0-9]+" | egrep -o "[0-9]") -%global gawk_api_minor %%(tar -xf %{name}-%{version}.tar.xz %{name}-%{version}/gawkapi.h --to-stdout |\ - egrep -i "gawk_api_minor.*[0-9]+" | egrep -o "[0-9]") +%global gawk_api_major %%(x=`tar -xf %{SOURCE0} gawk-%{version}/gawkapi.h --to-stdout 2>/dev/null | \ + grep -i -e "gawk_api_major.*[[:digit:]]" | \ + grep -o -e "[[:digit:]]"`; \ + [ "$x" -lt 3 ] && x=3; echo $x) + +%global gawk_api_minor %%(tar -xf %{SOURCE0} gawk-%{version}/gawkapi.h --to-stdout 2>/dev/null | \ + grep -i -e "gawk_api_minor.*[[:digit:]]" | \ + grep -o -e "[[:digit:]]" || :) Name: gawk -Version: 5.2.2 +Version: 5.3.0 Release: 1 -License: GPLv3+ and GPLv2+ and LGPLv2+ and BSD +License: GPL-3.0-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-3-Clause Summary: The GNU version of the AWK text processing utility URL: https://www.gnu.org/software/gawk/ Source0: https://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.xz @@ -13,9 +17,9 @@ Source0: https://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.xz #Patch1: Disable-racy-test-in-test-iolint.awk.patch #Patch2: Restore-removed-test-in-test-iolint.awk.patch #Patch3: Reorder-statements-in-iolint-to-try-to-eliminate-a-r.patch -Patch5: Disable-pma-test.awk.patch +Patch1: Disable-pma-test.awk.patch -BuildRequires: gcc automake grep +BuildRequires: gcc automake grep make gcc BuildRequires: bison texinfo >= 7.0.1 texinfo-tex >= 7.0.1 ghostscript texlive-ec texlive-cm-super glibc-all-langpacks BuildRequires: libsigsegv-devel mpfr-devel readline-devel Requires: filesystem >= 3 @@ -110,6 +114,9 @@ install -m 0644 -p doc/gawkinet.{pdf,ps} ${RPM_BUILD_ROOT}%{_docdir}/%{name} %{_datadir}/locale/* %changelog +* Wed Jul 3 2024 warlcok - 5.3.0-1 +- update gawk to 5.3.0 + * Mon Oct 9 2023 huyubiao - 5.2.2-1 - update gawk to 5.2.2