Репозиторий Sisyphus
Последнее обновление: 5 августа 2020 | Пакетов: 17664 | Посещений: 19002469
en ru br
Репозитории ALT
S:4.2.1.0.170.dc189d-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.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

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

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

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

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

make -C awklib stamp-eg
%make_build
%{?!__buildreqs:%{?!_without_check:%{?!_disable_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

%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

%post
%install_info gawk.info

%preun
%uninstall_info gawk.info

%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