File gawk.spec of Package gawk

# spec file for package gawk (version 3.1.7)
# Copyright (c) Lincom Software Team. All spec files
# are released under the CC-BY-NC-ND, version 3 United States.

# Basic Information
Name:		gawk
Version:	3.1.7
Release:	3%{?dist}
Summary:	Make changes in text files with patterns, based on awk
Group:		Applications/Text
License:	GNU GPL

# Source Information

# Build Information
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info

The gawk package contains the GNU version of awk, a text processing
utility. Awk interprets a special-purpose programming language to do
quick and easy text pattern matching and reformatting jobs.

Install the gawk package if you need a text processing utility. Gawk is
considered to be a standard Linux tool for processing text.

%setup -q

%configure --prefix=/usr --libexecdir=%{_libdir} --disable-libsigsegv
make %{?_smp_mflags}

rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
mkdir -pv %{buildroot}/bin
ln -sf gawk.1.gz %{buildroot}%{_mandir}/man1/awk.1.gz
# remove %{version}* , when we are building a snapshot...
rm -f %{buildroot}/bin/{,p}gawk-%{version}* %{buildroot}%{_infodir}/dir
rm -f %{buildroot}%{_bindir}/{,p}gawk-%{version}*

%find_lang %name

rm -rf %{buildroot}

if [ -f %{_infodir}/ ]; then
    /sbin/install-info %{_infodir}/ %{_infodir}/dir || :

if [ $1 = 0 -a -f %{_infodir}/ ]; then
    /sbin/install-info --delete %{_infodir}/ %{_infodir}/dir || :

%files -f %{name}.lang
%doc doc/{awkforai.txt,*.{eps,pdf,jpg}}

* Mon Jan 25 2010 Robert Xu <> 3.1.7-3
- We don't use symlinks to /bin
* Sun Jan 24 2010 Robert Xu <> 3.1.7-2
- "Improved" the spec file a little bit.
- libsigsegv is now disabled.
* Sun Nov 14 2009 Robert Xu <> 3.1.7-1
- Created Initial Spec File.