###############################################################################
name = gawk
-version = 4.0.1
+version = 5.2.2
release = 1
groups = System/Tools
-url = http://www.gnu.org/software/gawk/gawk.html
+url = https://www.gnu.org/software/gawk/gawk.html
license = GPLv3+
-summary = The GNU version of the awk text processing utility.
+summary = The GNU version of the awk text processing utility
description
- The gawk package contains the GNU version of awk, a text processing \
- utility. Awk interprets a special-purpose programming language to do \
+ The gawk package contains the GNU version of awk, a text processing
+ utility. Awk interprets a special-purpose programming language to do
quick and easy text pattern matching and reformatting jobs.
end
# Needed for testsuite.
-source_dl = http://ftp.gnu.org/gnu/gawk/
+source_dl = https://ftp.gnu.org/gnu/gawk/
sources = %{thisapp}.tar.xz
build
requires
+ autoconf
+ automake
+ mpfr-devel
util-linux
end
configure_options += \
- --bindir=/bin \
- --libexecdir=%{libdir} \
- --with-libsigsegv-prefix=no
+ --disable-libsigsegv
+
+ prepare_cmds
+ # The config scripts checks if the used compiler accepts -no-pie and if
+ # yes, will set this as compile and linker flags - Change this to pie.
+ sed -i 's/-no-pie/-pie/g' configure
+ end
test
make check diffout
end
install_cmds
- mkdir -pv %{BUILDROOT}/usr/bin
- ln -svf ../../bin/awk %{BUILDROOT}/usr/bin/awk
- ln -svf ../../bin/gawk %{BUILDROOT}/usr/bin/gawk
-
- mv -v %{BUILDROOT}/bin/{p,i}gawk %{BUILDROOT}/usr/bin/
+ ln -svf gawk %{BUILDROOT}/usr/bin/awk
# Remove versioned binary.
- rm -rfv %{BUILDROOT}/bin/{,p}gawk-*
+ rm -rfv %{BUILDROOT}%{bindir}/{,p}gawk-*
end
end
packages
package %{name}
- groups += Base Build
+ provides
+ /bin/awk
+ /bin/gawk
+ end
+
+ conflicts
+ filesystem < 002
+ end
end
package %{name}-debuginfo