Репозиторий Sisyphus
Последнее обновление: 30 марта 2023 | Пакетов: 18292 | Посещений: 27216817
en ru br
Репозитории ALT
5.1: 3.1.6-alt3
4.1: 3.1.5-alt3
4.0: 3.1.5-alt3
3.0: 3.1.4-alt2

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

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

Name: gawk
Version: 3.1.5
Release: alt3

%def_with profile
%define _libexecdir %_prefix/libexec

Summary: The GNU version of the awk text processing utility
License: GPL
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

Patch0: gawk-3.1.5-cvs-20061130.patch
Patch1: gawk-3.1.5-alt-texinfo.patch
Patch2: gawk-3.1.5-suse-dfa-mbcset.patch
Patch3: gawk-3.1.5-eggert-embedded-nul.patch
Patch4: gawk-3.1.5-swegener-do_match.patch
Patch5: gawk-3.1.5-ralf-read-write.patch
Patch6: gawk-3.1.5-alt-str2wstr.patch
Patch7: gawk-3.1.5-alt-do_match.patch

Provides: awk = %version
Requires(post): %install_info
Requires(preun): %uninstall_info

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
Requires: %name = %version-%release

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

%setup -q -b1
%patch0 -p0 -s
rm awkgram.c doc/*.info awklib/eg/prog/igawk.sh awklib/stamp-eg
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p0
%patch5 -p0
%patch6 -p1
%patch7 -p1
find -type f -name \*.orig -delete

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

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

make -C awklib stamp-eg
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build -k check}}}

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

%define docdir %_docdir/%name-%version
mkdir -p %buildroot%docdir
doc/{gawk,awkcard}.ps.bz2 %buildroot%docdir/

%find_lang %name

%install_info gawk.info

%uninstall_info gawk.info

%files -f %name.lang

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


%dir %docdir

%if_with profile
%files profile
%endif #with profile

%files doc
%dir %docdir


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

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