2006-12-19 00:16:01 +01:00
|
|
|
#
|
2011-05-19 09:15:57 +02:00
|
|
|
# spec file for package gawk
|
2006-12-19 00:16:01 +01:00
|
|
|
#
|
2021-01-27 23:23:16 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2006-12-19 00:16:01 +01:00
|
|
|
#
|
2009-02-07 23:57:56 +01:00
|
|
|
# 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.
|
|
|
|
|
2019-08-13 08:09:04 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:16:01 +01:00
|
|
|
#
|
|
|
|
|
2012-04-05 18:29:42 +02:00
|
|
|
|
2006-12-19 00:16:01 +01:00
|
|
|
Name: gawk
|
2020-04-19 15:07:54 +02:00
|
|
|
Version: 5.1.0
|
2011-12-01 16:53:36 +01:00
|
|
|
Release: 0
|
2019-10-29 10:22:29 +01:00
|
|
|
Summary: Domain-specific language for text processing
|
2019-08-13 08:09:04 +02:00
|
|
|
License: GPL-3.0-or-later
|
2017-04-10 09:43:55 +02:00
|
|
|
Group: Productivity/Text/Utilities
|
2019-08-13 08:09:04 +02:00
|
|
|
URL: https://www.gnu.org/software/gawk/
|
2014-05-02 11:15:34 +02:00
|
|
|
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
|
2017-04-10 11:22:56 +02:00
|
|
|
Source4: gawk.rpmlintrc
|
2019-10-29 10:22:29 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: makeinfo
|
2014-05-02 11:15:34 +02:00
|
|
|
BuildRequires: update-alternatives
|
2015-05-07 21:12:12 +02:00
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(preun): %{install_info_prereq}
|
|
|
|
Requires(preun): update-alternatives
|
2014-05-02 11:15:34 +02:00
|
|
|
Provides: awk
|
2006-12-19 00:16:01 +01:00
|
|
|
|
2017-04-10 11:19:35 +02:00
|
|
|
%description
|
2019-08-28 19:04:26 +02:00
|
|
|
AWK is a domain-specific language designed for text processing and
|
|
|
|
typically used as a data extraction and reporting tool.
|
|
|
|
|
2017-04-10 10:10:46 +02:00
|
|
|
GNU awk is upwardly compatible with the System V Release 4 awk. It is
|
|
|
|
almost completely POSIX 1003.2 compliant.
|
|
|
|
|
2006-12-19 00:16:01 +01:00
|
|
|
%prep
|
2019-10-29 10:22:29 +01:00
|
|
|
%autosetup -p1
|
Accepting request 175250 from home:namtrac:branches:Base:System
- Update to version 4.1.0
* The three executables gawk, pgawk, and dgawk, have been merged into
one, named just gawk.
* The new -i option (from xgawk) is used for loading awk library files.
* The new -l option (from xgawk) is used for loading dynamic extensions.
* The dynamic extension interface has been completely redone. There is
now a defined API for C extensions to use. A C extension acts like
a function written in awk, except that it cannot do everything that awk
code can. However, this allows interfacing to any facility that is
available from C.
* The "inplace" extension, built using the new facility, can be used to
simulate the GNU "sed -i" feature.
* The and(), or() and xor() functions now take any number of arguments,
with a minimum of two.
* New arrays: SYMTAB, FUNCTAB, and PROCINFO["identifiers"]. SYMTAB allows
indirect access to any defined variable or array; it is possible to
"walk" the symbol table, if that should be necessary.
- Refreshed gawk-3.1.8.diff
- Add older-automake.diff to support automake 1.12
OBS-URL: https://build.opensuse.org/request/show/175250
OBS-URL: https://build.opensuse.org/package/show/Base:System/gawk?expand=0&rev=33
2013-05-14 13:16:30 +02:00
|
|
|
|
2006-12-19 00:16:01 +01:00
|
|
|
%build
|
2019-10-29 10:22:29 +01:00
|
|
|
autoreconf -fiv
|
|
|
|
%configure
|
2014-05-02 11:15:34 +02:00
|
|
|
make %{?_smp_mflags}
|
2009-02-07 23:57:56 +01:00
|
|
|
|
|
|
|
%check
|
2014-05-02 11:15:34 +02:00
|
|
|
make check %{?_smp_mflags}
|
2006-12-19 00:16:01 +01:00
|
|
|
|
|
|
|
%install
|
2019-08-13 08:09:04 +02:00
|
|
|
%make_install
|
Accepting request 175250 from home:namtrac:branches:Base:System
- Update to version 4.1.0
* The three executables gawk, pgawk, and dgawk, have been merged into
one, named just gawk.
* The new -i option (from xgawk) is used for loading awk library files.
* The new -l option (from xgawk) is used for loading dynamic extensions.
* The dynamic extension interface has been completely redone. There is
now a defined API for C extensions to use. A C extension acts like
a function written in awk, except that it cannot do everything that awk
code can. However, this allows interfacing to any facility that is
available from C.
* The "inplace" extension, built using the new facility, can be used to
simulate the GNU "sed -i" feature.
* The and(), or() and xor() functions now take any number of arguments,
with a minimum of two.
* New arrays: SYMTAB, FUNCTAB, and PROCINFO["identifiers"]. SYMTAB allows
indirect access to any defined variable or array; it is possible to
"walk" the symbol table, if that should be necessary.
- Refreshed gawk-3.1.8.diff
- Add older-automake.diff to support automake 1.12
OBS-URL: https://build.opensuse.org/request/show/175250
OBS-URL: https://build.opensuse.org/package/show/Base:System/gawk?expand=0&rev=33
2013-05-14 13:16:30 +02:00
|
|
|
|
2021-01-27 23:23:16 +01:00
|
|
|
%if !0%{?usrmerged}
|
2014-05-02 11:15:34 +02:00
|
|
|
install -d %{buildroot}/bin
|
|
|
|
ln -sf %{_bindir}/gawk %{buildroot}/bin
|
|
|
|
ln -s %{_sysconfdir}/alternatives/awk %{buildroot}/bin/awk
|
2021-01-27 23:23:16 +01:00
|
|
|
%endif
|
2014-05-02 11:15:34 +02:00
|
|
|
rm -f %{buildroot}%{_bindir}/*-%{version} %{buildroot}%{_bindir}/awk
|
Accepting request 175250 from home:namtrac:branches:Base:System
- Update to version 4.1.0
* The three executables gawk, pgawk, and dgawk, have been merged into
one, named just gawk.
* The new -i option (from xgawk) is used for loading awk library files.
* The new -l option (from xgawk) is used for loading dynamic extensions.
* The dynamic extension interface has been completely redone. There is
now a defined API for C extensions to use. A C extension acts like
a function written in awk, except that it cannot do everything that awk
code can. However, this allows interfacing to any facility that is
available from C.
* The "inplace" extension, built using the new facility, can be used to
simulate the GNU "sed -i" feature.
* The and(), or() and xor() functions now take any number of arguments,
with a minimum of two.
* New arrays: SYMTAB, FUNCTAB, and PROCINFO["identifiers"]. SYMTAB allows
indirect access to any defined variable or array; it is possible to
"walk" the symbol table, if that should be necessary.
- Refreshed gawk-3.1.8.diff
- Add older-automake.diff to support automake 1.12
OBS-URL: https://build.opensuse.org/request/show/175250
OBS-URL: https://build.opensuse.org/package/show/Base:System/gawk?expand=0&rev=33
2013-05-14 13:16:30 +02:00
|
|
|
|
2014-02-08 13:52:10 +01:00
|
|
|
# create symlinks for update-alternatives
|
2021-01-27 23:23:16 +01:00
|
|
|
%if !0%{?usrmerged}
|
2014-05-02 11:15:34 +02:00
|
|
|
ln -s %{_sysconfdir}/alternatives/usr-bin-awk %{buildroot}%{_bindir}/awk
|
2021-01-27 23:23:16 +01:00
|
|
|
%else
|
|
|
|
ln -s %{_sysconfdir}/alternatives/awk %{buildroot}%{_bindir}/awk
|
|
|
|
%endif
|
2014-05-02 11:15:34 +02:00
|
|
|
ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} %{buildroot}%{_mandir}/man1/awk.1%{?ext_man}
|
2014-02-08 13:52:10 +01:00
|
|
|
|
2014-05-02 11:15:34 +02:00
|
|
|
%find_lang %{name}
|
2006-12-19 00:16:01 +01:00
|
|
|
|
2017-04-10 11:19:35 +02:00
|
|
|
%post
|
2021-01-27 23:23:16 +01:00
|
|
|
%if !0%{?usrmerged}
|
2014-02-08 13:52:10 +01:00
|
|
|
%{_sbindir}/update-alternatives \
|
|
|
|
--install /bin/awk awk %{_bindir}/gawk 20 \
|
|
|
|
--slave %{_bindir}/awk usr-bin-awk %{_bindir}/gawk \
|
|
|
|
--slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} %{_mandir}/man1/gawk.1%{?ext_man}
|
2021-01-27 23:23:16 +01:00
|
|
|
%else
|
|
|
|
%{_sbindir}/update-alternatives \
|
|
|
|
--install %{_bindir}/awk awk %{_bindir}/gawk 20 \
|
|
|
|
--slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} %{_mandir}/man1/gawk.1%{?ext_man}
|
|
|
|
%endif
|
2006-12-19 00:16:01 +01:00
|
|
|
|
2021-02-05 16:24:02 +01:00
|
|
|
%postun
|
|
|
|
if [ ! -f %{_bindir}/gawk ]; then
|
2014-02-08 13:52:10 +01:00
|
|
|
%{_sbindir}/update-alternatives --remove awk %{_bindir}/gawk
|
2010-02-25 11:12:05 +01:00
|
|
|
fi
|
|
|
|
|
2017-04-10 11:19:35 +02:00
|
|
|
%files -f %{name}.lang
|
2017-10-20 10:01:29 +02:00
|
|
|
%config %{_sysconfdir}/profile.d/gawk.csh
|
|
|
|
%config %{_sysconfdir}/profile.d/gawk.sh
|
2021-01-27 23:23:16 +01:00
|
|
|
%if !0%{?usrmerged}
|
2012-02-17 20:28:27 +01:00
|
|
|
#UsrMerge
|
2014-02-08 13:52:10 +01:00
|
|
|
/bin/awk
|
2021-01-27 23:23:16 +01:00
|
|
|
/bin/gawk
|
|
|
|
%ghost %{_sysconfdir}/alternatives/usr-bin-awk
|
2012-02-17 20:28:27 +01:00
|
|
|
#EndUsrMerge
|
2021-01-27 23:23:16 +01:00
|
|
|
%endif
|
2014-02-08 13:52:10 +01:00
|
|
|
%{_bindir}/awk
|
|
|
|
%{_mandir}/man1/awk.1%{?ext_man}
|
|
|
|
%ghost %{_sysconfdir}/alternatives/awk
|
|
|
|
%ghost %{_sysconfdir}/alternatives/awk.1%{?ext_man}
|
2018-02-26 11:20:02 +01:00
|
|
|
%license COPYING*
|
|
|
|
%doc AUTHORS NEWS POSIX.STD README ChangeLog*
|
2010-02-25 11:12:05 +01:00
|
|
|
%{_bindir}/gawk
|
2019-10-29 10:22:29 +01:00
|
|
|
%{_libexecdir}/awk
|
2017-04-10 11:19:35 +02:00
|
|
|
%{_libdir}/gawk
|
Accepting request 175250 from home:namtrac:branches:Base:System
- Update to version 4.1.0
* The three executables gawk, pgawk, and dgawk, have been merged into
one, named just gawk.
* The new -i option (from xgawk) is used for loading awk library files.
* The new -l option (from xgawk) is used for loading dynamic extensions.
* The dynamic extension interface has been completely redone. There is
now a defined API for C extensions to use. A C extension acts like
a function written in awk, except that it cannot do everything that awk
code can. However, this allows interfacing to any facility that is
available from C.
* The "inplace" extension, built using the new facility, can be used to
simulate the GNU "sed -i" feature.
* The and(), or() and xor() functions now take any number of arguments,
with a minimum of two.
* New arrays: SYMTAB, FUNCTAB, and PROCINFO["identifiers"]. SYMTAB allows
indirect access to any defined variable or array; it is possible to
"walk" the symbol table, if that should be necessary.
- Refreshed gawk-3.1.8.diff
- Add older-automake.diff to support automake 1.12
OBS-URL: https://build.opensuse.org/request/show/175250
OBS-URL: https://build.opensuse.org/package/show/Base:System/gawk?expand=0&rev=33
2013-05-14 13:16:30 +02:00
|
|
|
%{_datadir}/awk
|
2017-04-10 11:26:30 +02:00
|
|
|
%{_includedir}/gawkapi.h
|
2019-08-13 08:09:04 +02:00
|
|
|
%{_infodir}/*.info%{?ext_info}
|
2014-02-08 13:52:10 +01:00
|
|
|
%{_mandir}/man1/gawk.1%{?ext_man}
|
|
|
|
%{_mandir}/man3/*%{?ext_man}
|
2008-06-25 21:08:49 +02:00
|
|
|
|
2007-05-25 17:41:05 +02:00
|
|
|
%changelog
|