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
|
|
|
#
|
2013-03-26 16:42:55 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2006-12-19 00:16:01 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-04-05 18:29:42 +02:00
|
|
|
|
2006-12-19 00:16:01 +01:00
|
|
|
Name: gawk
|
2007-10-16 02:25:04 +02:00
|
|
|
Url: http://www.gnu.org/software/gawk/
|
2006-12-19 00:16:01 +01:00
|
|
|
Provides: awk
|
2011-12-01 16:53:36 +01:00
|
|
|
BuildRequires: automake
|
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
|
|
|
BuildRequires: libtool
|
2010-02-25 11:12:05 +01:00
|
|
|
BuildRequires: update-alternatives
|
2012-09-07 15:36:33 +02:00
|
|
|
%if 0%{suse_version} > 1220
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
%endif
|
2010-02-25 11:12:05 +01:00
|
|
|
PreReq: %{install_info_prereq} update-alternatives
|
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
|
|
|
Version: 4.1.0
|
2011-12-01 16:53:36 +01:00
|
|
|
Release: 0
|
2006-12-19 00:16:01 +01:00
|
|
|
Summary: GNU awk
|
2012-01-30 13:36:23 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/Text/Utilities
|
2013-03-26 16:42:55 +01:00
|
|
|
Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
2012-01-30 16:17:38 +01:00
|
|
|
Source1: gawk-4.0.0h.de.po.bz2
|
2011-09-27 14:34:28 +02:00
|
|
|
Patch1: gawk-3.1.8.diff
|
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
|
|
|
Patch2: older-automake.diff
|
2006-12-19 00:16:01 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
GNU awk is upwardly compatible with the System V Release 4 awk. It is
|
|
|
|
almost completely POSIX 1003.2 compliant.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-04-05 18:29:42 +02:00
|
|
|
%patch1 -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
|
|
|
%patch2 -p1
|
|
|
|
|
2012-01-30 16:17:38 +01:00
|
|
|
bunzip2 -c %{S:1} > po/de.po
|
2006-12-19 00:16:01 +01:00
|
|
|
rm -f regex.[ch]
|
2009-02-07 23:57:56 +01:00
|
|
|
chmod -x COPYING
|
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
|
|
|
|
2009-02-07 23:57:56 +01:00
|
|
|
# force rebuild with non-broken makeinfo
|
|
|
|
rm -f doc/*.info
|
2006-12-19 00:16:01 +01:00
|
|
|
|
|
|
|
%build
|
2007-05-25 17:41:05 +02:00
|
|
|
AUTOPOINT=true autoreconf --force --install
|
2011-08-10 11:55:56 +02:00
|
|
|
%configure --libexecdir=%{_libdir}
|
2006-12-19 00:16:01 +01:00
|
|
|
%if %do_profiling
|
2010-07-20 20:35:06 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS %cflags_profile_generate"
|
2006-12-19 00:16:01 +01:00
|
|
|
make check
|
|
|
|
make clean
|
2010-07-20 20:35:06 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS %cflags_profile_feedback"
|
2006-12-19 00:16:01 +01:00
|
|
|
%else
|
2010-07-20 20:35:06 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:16:01 +01:00
|
|
|
%endif
|
2012-01-30 13:36:23 +01:00
|
|
|
make -C po update-po
|
2009-02-07 23:57:56 +01:00
|
|
|
|
|
|
|
%check
|
2006-12-19 00:16:01 +01:00
|
|
|
make check
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
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
|
|
|
|
2012-02-17 20:28:27 +01:00
|
|
|
#UsrMerge
|
2006-12-19 00:16:01 +01:00
|
|
|
install -d $RPM_BUILD_ROOT/bin
|
2012-02-17 20:28:27 +01:00
|
|
|
ln -sf %{_bindir}/gawk $RPM_BUILD_ROOT/bin
|
|
|
|
touch $RPM_BUILD_ROOT/bin/awk
|
|
|
|
#EndUsrMerge
|
2010-02-25 11:12:05 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/*-%{version} $RPM_BUILD_ROOT/usr/bin/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
|
|
|
|
2010-02-25 11:12:05 +01:00
|
|
|
# create ghost files
|
2012-02-17 20:28:27 +01:00
|
|
|
touch $RPM_BUILD_ROOT/%{_bindir}/awk $RPM_BUILD_ROOT/%{_mandir}/man1/awk.1.gz
|
2007-05-25 17:41:05 +02:00
|
|
|
%find_lang %name
|
2006-12-19 00:16:01 +01:00
|
|
|
|
|
|
|
%post
|
2010-02-25 11:12:05 +01:00
|
|
|
/usr/sbin/update-alternatives --install /bin/awk awk /bin/gawk 20 \
|
|
|
|
--slave /usr/bin/awk usr-bin-awk /bin/gawk \
|
|
|
|
--slave %{_mandir}/man1/awk.1.gz awk.1.gz %{_mandir}/man1/gawk.1.gz
|
2006-12-19 00:16:01 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gawk.info.gz
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz
|
|
|
|
|
2010-02-25 11:12:05 +01:00
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/usr/sbin/update-alternatives --remove awk /bin/gawk
|
|
|
|
fi
|
|
|
|
|
2006-12-19 00:16:01 +01:00
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gawk.info.gz
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz
|
|
|
|
|
2007-05-25 17:41:05 +02:00
|
|
|
%files -f %name.lang
|
2006-12-19 00:16:01 +01:00
|
|
|
%defattr(-,root,root)
|
2010-02-25 11:12:05 +01:00
|
|
|
%if %{suse_version} >= 1120
|
2012-02-17 20:28:27 +01:00
|
|
|
#UsrMerge
|
2010-02-25 11:12:05 +01:00
|
|
|
%ghost /bin/awk
|
2012-02-17 20:28:27 +01:00
|
|
|
#EndUsrMerge
|
2010-02-25 11:12:05 +01:00
|
|
|
%ghost %{_bindir}/awk
|
|
|
|
%ghost %{_mandir}/man1/awk.1.gz
|
|
|
|
%endif
|
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
|
|
|
%doc AUTHORS COPYING NEWS POSIX.STD README
|
2012-02-17 20:28:27 +01:00
|
|
|
#UsrMerge
|
2010-02-25 11:12:05 +01:00
|
|
|
/bin/gawk
|
2012-02-17 20:28:27 +01:00
|
|
|
#EndUsrMerge
|
2010-02-25 11:12:05 +01:00
|
|
|
%{_bindir}/gawk
|
|
|
|
%{_bindir}/igawk
|
2007-10-16 02:25:04 +02:00
|
|
|
%{_libdir}/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
|
|
|
%{_libdir}/gawk
|
|
|
|
%{_datadir}/awk
|
|
|
|
%{_includedir}/gawkapi.h
|
2007-10-16 02:25:04 +02:00
|
|
|
%{_infodir}/*.info.gz
|
2010-02-25 11:12:05 +01:00
|
|
|
%{_mandir}/man1/gawk.1.gz
|
|
|
|
%{_mandir}/man1/igawk.1.gz
|
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
|
|
|
%{_mandir}/man3/*.gz
|
2008-06-25 21:08:49 +02:00
|
|
|
|
2007-05-25 17:41:05 +02:00
|
|
|
%changelog
|