Репозиторий Sisyphus
Последнее обновление: 27 сентября 2021 | Пакетов: 17343 | Посещений: 21961233
en ru br
Репозитории ALT
S:5.1.0.0.213.d04f-alt1
5.1: 3.1.6-alt3
4.1: 3.1.5-alt3
4.0: 3.1.5-alt3
3.0: 3.1.4-alt2
www.altlinux.org/Changes

Группа :: Работа с текстами
Пакет: gawk

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: gawk
Version: 3.1.4
Release: alt2

%def_with profile

Summary: The GNU version of the awk text processing utility
License: GPL
Group: Text tools

Source0: ftp://ftp.gnu.org/pub/gnu/gawk/%name-%version.tar.bz2
Source1: ftp://ftp.gnu.org/pub/gnu/gawk/%name-%version-ps.tar.bz2

Patch1: %name-3.1.2-alt-texinfo.patch
Patch2: %name-3.1.4-rh-dfacache.patch
Patch3: %name-3.1.4-rh-flonum.patch
Patch4: %name-3.1.4-rh-nextc.patch
Patch5: %name-3.1.4-rh-uplow.patch

PreReq: %__install_info
Provides: awk = %version

Prefix: %prefix

%description
The %name packages 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. Gawk should
be upwardly compatible with the Bell Labs research version of awk and
is almost completely compliant with the 1993 POSIX 1003.2 standard for
awk.

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

%package doc
Summary: documentation about the GNU version of the awk text processing utility
Group: Text tools
Requires: %name = %version-%release

%package profile
Summary: The version of gawk with profiling support.
Group: Development/Other
Requires: %name = %version-%release

%description profile
The gawk-profile package includes pgawk (profiling gawk).  pgawk is
identical in every way to gawk, except that when it has finished running,
it creates a profile of your program with line execution counts.

%description doc
The %name packages 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. Gawk should
be upwardly compatible with the Bell Labs research version of awk and
is almost completely compliant with the 1993 POSIX 1003.2 standard for
awk.

%prep
%setup -q -b1
rm -f doc/*.info awklib/eg/prog/igawk.sh awklib/stamp-eg
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
bzip2 -9 doc/*.ps

rm -f acinclude.m4
autoreconf -I m4


%add_optflags -I.

%configure --enable-switch
%__subst 's,#define HAVE_SOCKETS 1,#undef HAVE_SOCKETS,' config.h

(cd awklib
   make stamp-eg
)
%make_build

%install
%makeinstall bindir=$RPM_BUILD_ROOT/bin libexecdir=$RPM_BUILD_ROOT/%_libdir/awk

mkdir -p $RPM_BUILD_ROOT%_bindir
ln -sf /bin/awk $RPM_BUILD_ROOT%_bindir/awk
ln -sf /bin/%name $RPM_BUILD_ROOT%_bindir/%name
mv $RPM_BUILD_ROOT/bin/pgawk* $RPM_BUILD_ROOT/%_bindir/

pushd $RPM_BUILD_ROOT%_datadir
mkdir -p awk
mv -f *.awk awk
popd

pushd $RPM_BUILD_ROOT%_mandir
mkdir -p man1
mv -f * man1 ||:
ln -sf %name.1 man1/awk.1
popd


%post
%install_info %name.info

%preun
%uninstall_info %name.info

%files
/bin/*awk

%_bindir/*
%if_with profile
%exclude %_bindir/pgawk*
%endif #with profile

%_libdir/*
%_datadir/awk
%_infodir/*.info*
%_mandir/man?/*

%files doc
%doc README README_d/README.linux  FUTURES INSTALL LIMITATIONS NEWS POSIX.STD
%doc doc/{ChangeLog,{%name,awkcard}.ps*}

%if_with profile
%files profile
%_bindir/pgawk*
%endif #with profile

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin