Dirk Mueller
fcb014efb5
* More subtle issues related to uninitialized array elements have been fixed. * A number of bugs in the debugger related to handling of arrays have been fixed. * Some subtle bugs in the API have been fixed. * Use of MPFR is now possible again on 32-bit Power PC Mac systems. * Race conditions around broken pipes for system() and read and write pipes should now be closed off. * Support for OSF/1 has been removed. * The never-documented --nostalgia option has been removed. It was causing bug reports. * The implementation of printf/sprintf has been thoroughly reworked in order to make the code more maintainable and to fix a goodly number of corner cases. - Update to 5.1.0: * drop gawk-3.1.8.diff 16de770359370224129f23df745178efe518c02c - removed bogus self-provides - repacked sources with bzip2. OBS-URL: https://build.opensuse.org/package/show/Base:System/gawk?expand=0&rev=104
110 lines
3.0 KiB
RPMSpec
110 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package gawk
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: gawk
|
|
Version: 5.3.1
|
|
Release: 0
|
|
Summary: Domain-specific language for text processing
|
|
License: GPL-3.0-or-later
|
|
Group: Productivity/Text/Utilities
|
|
URL: https://www.gnu.org/software/gawk/
|
|
Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
|
Source2: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
|
|
Source3: http://savannah.gnu.org/people/viewgpg.php?user_id=80653#/gawk.keyring
|
|
Source4: gawk.rpmlintrc
|
|
BuildRequires: mpfr-devel
|
|
BuildRequires: readline-devel
|
|
Provides: awk
|
|
|
|
%description
|
|
AWK is a domain-specific language designed for text processing and
|
|
typically used as a data extraction and reporting tool.
|
|
|
|
GNU awk is upwardly compatible with the System V Release 4 awk. It is
|
|
almost completely POSIX 1003.2 compliant.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%configure
|
|
%if %{do_profiling}
|
|
%make_build CFLAGS="$CFLAGS %{cflags_profile_generate}" LDFLAGS="-fprofile-arcs"
|
|
%make_build check \
|
|
%if 0%{?qemu_user_space_build}
|
|
NEED_PMA= \
|
|
%endif
|
|
%{nil}
|
|
%make_build clean
|
|
%make_build CFLAGS="$CFLAGS %{cflags_profile_feedback}" LDFLAGS="-fprofile-arcs"
|
|
%else
|
|
%make_build
|
|
%endif
|
|
|
|
%check
|
|
# Disable pma tests when running in linux-user emulation (bsc#1203140)
|
|
%make_build check \
|
|
%if 0%{?qemu_user_space_build}
|
|
NEED_PMA= \
|
|
%endif
|
|
%{nil}
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%if 0%{?suse_version} < 1550
|
|
install -d -m 755 %{buildroot}/bin
|
|
ln -s %{_bindir}/gawk %{buildroot}/bin/gawk
|
|
ln -s %{_bindir}/gawk %{buildroot}/bin/awk
|
|
%endif
|
|
|
|
# remove versioned gawk and create symlink for awk.1
|
|
rm -fv %{buildroot}%{_bindir}/*-%{version}
|
|
ln -sfv %{_mandir}/man1/gawk.1%{?ext_man} %{buildroot}%{_mandir}/man1/awk.1%{?ext_man}
|
|
|
|
%find_lang %{name}
|
|
|
|
%files -f %{name}.lang
|
|
%config %{_sysconfdir}/profile.d/gawk.csh
|
|
%config %{_sysconfdir}/profile.d/gawk.sh
|
|
%if 0%{?suse_version} < 1550
|
|
#UsrMerge
|
|
/bin/awk
|
|
/bin/gawk
|
|
#EndUsrMerge
|
|
%endif
|
|
%{_bindir}/awk
|
|
%{_mandir}/man1/awk.1%{?ext_man}
|
|
%license COPYING*
|
|
%doc AUTHORS NEWS POSIX.STD README ChangeLog*
|
|
%{_bindir}/gawk
|
|
%{_bindir}/gawkbug
|
|
%{_libexecdir}/awk
|
|
%{_libdir}/gawk
|
|
%{_datadir}/awk
|
|
%{_includedir}/gawkapi.h
|
|
%{_infodir}/*.info%{?ext_info}
|
|
%{_infodir}/gawk_*
|
|
%{_mandir}/man1/gawk.1%{?ext_man}
|
|
%{_mandir}/man1/gawkbug.1%{?ext_man}
|
|
%{_mandir}/man1/pm-gawk.1%{?ext_man}
|
|
%{_mandir}/man3/*%{?ext_man}
|
|
|
|
%changelog
|