fd8da2a972
Copy from Base:System/gawk based on submit request 24416 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/24416 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gawk?expand=0&rev=7
107 lines
3.0 KiB
RPMSpec
107 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package gawk (Version 3.1.6)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
|
|
Name: gawk
|
|
Url: http://www.gnu.org/software/gawk/
|
|
License: GPL v2 or later
|
|
Group: Productivity/Text/Utilities
|
|
Provides: awk
|
|
AutoReqProv: on
|
|
PreReq: %{install_info_prereq}
|
|
Version: 3.1.6
|
|
Release: 26
|
|
Summary: GNU awk
|
|
Source: gawk-%{version}.tar.bz2
|
|
Patch: gawk-%{version}.diff
|
|
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
|
|
%patch
|
|
rm -f regex.[ch]
|
|
chmod -x COPYING
|
|
# force rebuild with non-broken makeinfo
|
|
rm -f doc/*.info
|
|
|
|
%build
|
|
AUTOPOINT=true autoreconf --force --install
|
|
./configure CFLAGS="$RPM_OPT_FLAGS" \
|
|
--prefix=/usr --libexecdir=%{_libdir} \
|
|
--mandir=%{_mandir} --infodir=%{_infodir}
|
|
%if %do_profiling
|
|
make %{?jobs:-j%jobs} CFLAGS="$RPM_OPT_FLAGS %cflags_profile_generate"
|
|
make check
|
|
make clean
|
|
make %{?jobs:-j%jobs} CFLAGS="$RPM_OPT_FLAGS %cflags_profile_feedback"
|
|
%else
|
|
make %{?jobs:-j%jobs}
|
|
%endif
|
|
|
|
%check
|
|
make check
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
install -d $RPM_BUILD_ROOT/bin
|
|
mv -f $RPM_BUILD_ROOT/usr/bin/awk $RPM_BUILD_ROOT/usr/bin/gawk \
|
|
$RPM_BUILD_ROOT/bin
|
|
ln -sf ../../bin/awk ../../bin/gawk $RPM_BUILD_ROOT/usr/bin
|
|
ln -sf gawk.1 $RPM_BUILD_ROOT%{_mandir}/man1/awk.1
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/*-%{version}
|
|
%find_lang %name
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gawk.info.gz
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz
|
|
|
|
%postun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gawk.info.gz
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz
|
|
|
|
%files -f %name.lang
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING FUTURES LIMITATIONS NEWS POSIX.STD PROBLEMS README
|
|
/bin/*
|
|
/usr/bin/*
|
|
%{_libdir}/awk
|
|
/usr/share/awk
|
|
%{_infodir}/*.info.gz
|
|
%{_mandir}/man1/*.1.gz
|
|
|
|
%changelog
|