A new user interface for you! Read more...

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
URL:		http://www.gnu.org/software/gawk/

# Source Information
Source0:	http://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.bz2

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

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

%description
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.

%prep
%setup -q

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

%install
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

%clean
rm -rf %{buildroot}

%post
if [ -f %{_infodir}/gawk.info.gz ]; then
    /sbin/install-info %{_infodir}/gawk.info.gz %{_infodir}/dir || :
fi

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

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc doc/{awkforai.txt,*.{eps,pdf,jpg}}
%doc README COPYING FUTURES LIMITATIONS NEWS
%{_bindir}/*awk
%{_mandir}/man1/*
%{_infodir}/gawk.info*
%{_infodir}/gawkinet.info*
%{_libdir}/awk
%{_datadir}/awk

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