Репозиторий Sisyphus
Последнее обновление: 27 сентября 2021 | Пакетов: 17343 | Посещений: 21961214
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.6
Release: alt3

%def_with profile
%define _libexecdir %_prefix/libexec

Summary: The GNU version of the awk text processing utility
License: GPLv3+
Group: Text tools
Url: http://www.gnu.org/software/gawk/
Packager: Stanislav Ievlev <inger at altlinux.org>

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

Patch1: gawk-3.1.5-alt-texinfo.patch

# needed by autoreconf

BuildRequires: cvs

Provides: awk = %version

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

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

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

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

%description doc
This packages contains documentation about the GNU version of the awk
text processing utility.

%prep
%setup -q -b1
rm awkgram.c doc/*.info awklib/eg/prog/igawk.sh awklib/stamp-eg
%patch1 -p1
find -type f -name \*.orig -delete

bzip2 -9k ChangeLog NEWS doc/{gawk,awkcard}.ps

%build
%autoreconf
%configure --enable-switch
sed -i 's,#define HAVE_SOCKETS 1,#undef HAVE_SOCKETS,' config.h
%make_build

%check
%make_build -k check

%install
%makeinstall
rm %buildroot%_bindir/*-%{version}*
mkdir -p %buildroot/bin
mv %buildroot%_bindir/gawk %buildroot/bin/
ln -s ../../bin/gawk %buildroot%_bindir/
ln -s gawk %buildroot/bin/awk

ln -s gawk.1 %buildroot%_man1dir/awk.1

%define docdir %_docdir/%name-%version
mkdir -p %buildroot%docdir
install -pm644 AUTHORS ChangeLog.bz2 FUTURES LIMITATIONS NEWS.bz2 POSIX.STD PROBLEMS README \
doc/{gawk,awkcard}.ps.bz2 %buildroot%docdir/

%find_lang %name

%files -f %name.lang
/bin/*
%_bindir/*

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

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

%dir %docdir
%docdir/[A-Z]*

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

%files doc
%dir %docdir
%docdir/*.ps.bz2

%changelog

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

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