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
|
|
|
#
|
2011-05-19 09:15:57 +02:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-06-25 21:08:49 +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/
|
2010-02-25 11:12:05 +01:00
|
|
|
License: GPLv2+
|
2006-12-19 00:16:01 +01:00
|
|
|
Group: Productivity/Text/Utilities
|
|
|
|
Provides: awk
|
2007-10-16 02:25:04 +02:00
|
|
|
AutoReqProv: on
|
2010-02-25 11:12:05 +01:00
|
|
|
BuildRequires: update-alternatives
|
|
|
|
PreReq: %{install_info_prereq} update-alternatives
|
2011-08-10 11:55:56 +02:00
|
|
|
Version: 4.0.0
|
2011-04-19 13:55:53 +02:00
|
|
|
Release: 1
|
2006-12-19 00:16:01 +01:00
|
|
|
Summary: GNU awk
|
|
|
|
Source: gawk-%{version}.tar.bz2
|
2011-09-27 14:34:28 +02:00
|
|
|
Patch1: gawk-3.1.8.diff
|
|
|
|
Patch2: gawk-revert-gsub-gawk3.patch
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David Trueman <david@cs.dal.ca>
|
|
|
|
Arnold Robbins <arnold@skeeve.com>
|
|
|
|
Michal Jaegermann <michal@gorte.phys.ualberta.ca>
|
|
|
|
Scott Deifik <scottd@amgen.com>
|
|
|
|
Darrel Hankerson <hankedr@mail.auburn.edu>
|
|
|
|
Kai Uwe Rommel <rommel@ars.de>
|
|
|
|
Pat Rankin <rankin@eql.caltech.edu>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-09-27 14:34:28 +02:00
|
|
|
%patch1
|
|
|
|
%patch2 -p1
|
|
|
|
|
2006-12-19 00:16:01 +01:00
|
|
|
rm -f regex.[ch]
|
2009-02-07 23:57:56 +01:00
|
|
|
chmod -x COPYING
|
|
|
|
# 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
|
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
|
|
|
|
install -d $RPM_BUILD_ROOT/bin
|
2010-02-25 11:12:05 +01:00
|
|
|
mv -f $RPM_BUILD_ROOT/usr/bin/gawk $RPM_BUILD_ROOT/bin
|
|
|
|
ln -sf ../../bin/gawk $RPM_BUILD_ROOT/usr/bin
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/*-%{version} $RPM_BUILD_ROOT/usr/bin/awk
|
|
|
|
# create ghost files
|
|
|
|
touch $RPM_BUILD_ROOT/usr/bin/awk $RPM_BUILD_ROOT/bin/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
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%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
|
|
|
|
%ghost /bin/awk
|
|
|
|
%ghost %{_bindir}/awk
|
|
|
|
%ghost %{_mandir}/man1/awk.1.gz
|
|
|
|
%endif
|
2007-10-16 02:25:04 +02:00
|
|
|
%doc AUTHORS COPYING FUTURES LIMITATIONS NEWS POSIX.STD PROBLEMS README
|
2010-02-25 11:12:05 +01:00
|
|
|
/bin/gawk
|
2011-08-10 11:55:56 +02:00
|
|
|
%{_bindir}/dgawk
|
2010-02-25 11:12:05 +01:00
|
|
|
%{_bindir}/gawk
|
|
|
|
%{_bindir}/igawk
|
|
|
|
%{_bindir}/pgawk
|
2007-10-16 02:25:04 +02:00
|
|
|
%{_libdir}/awk
|
|
|
|
/usr/share/awk
|
|
|
|
%{_infodir}/*.info.gz
|
2010-02-25 11:12:05 +01:00
|
|
|
%{_mandir}/man1/gawk.1.gz
|
|
|
|
%{_mandir}/man1/igawk.1.gz
|
|
|
|
%{_mandir}/man1/pgawk.1.gz
|
2008-06-25 21:08:49 +02:00
|
|
|
|
2007-05-25 17:41:05 +02:00
|
|
|
%changelog
|