Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37575717
en ru br
Репозитории ALT
S:3.11.0.20.dd8f-alt1
5.1: 2.5.1a-alt5
4.1: 2.5.1a-alt3
4.0: 2.5.1a-alt3
3.0: 2.5.1-alt0.4.cvs
www.altlinux.org/Changes

Другие репозитории
Upstream:2.5.3

Группа :: Работа с файлами
Пакет: grep

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

Name: grep
Version: 2.5.1a
Release: alt3

Summary: The GNU versions of grep pattern matching utilities
License: GPL
Group: File tools
Url: http://www.gnu.org/software/grep/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# ftp://ftp.gnu.org/gnu/grep/grep-%version.tar.bz2

Source: grep-%version.tar
Patch9: grep-2.5.1a-cvs-20040919-skip.patch
Patch10: grep-2.5.1a-rh-fgrep.patch
Patch11: grep-2.5.1a-rh-owl-i18n.patch
Patch12: grep-2.5.1a-rh-oi.patch
Patch20: grep-2.5.1a-deb-case-fold-charclass.patch
Patch21: grep-2.5.1a-deb-case-fold.patch
Patch22: grep-2.5.1a-deb-case-fold-range.patch
Patch23: grep-2.5.1a-deb-owl-charclass-bracket.patch
Patch24: grep-2.5.1a-deb-owl-man.patch
Patch25: grep-2.5.1a-deb-alt-bigfile.patch
Patch30: grep-2.5.1a-alt-texinfo.patch
Patch31: grep-2.5.1a-owl-fixes.patch
Patch32: grep-2.5.1a-owl-program_name.patch
Patch33: grep-2.5.1a-alt-bound.patch
Patch34: grep-2.5.1a-owl-fgrep-w.patch

Requires(post): %install_info
Requires(preun): %uninstall_info
# due to libpcre relocation.
Requires: libpcre3 >= 0:6.4-alt2
Provides: pcre-grep, pgrep
Obsoletes: pcre-grep, pgrep

BuildRequires: libpcre-devel

%description
The GNU versions of commonly used grep utilities.  grep searches through
textual input for lines which contain a match to a specified pattern
and then prints the matching lines.  GNU's grep utilities include grep,
egrep, fgrep, and pcregrep.

%prep
%setup -q
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch20 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1
%patch30 -p1
%patch31 -p1
%patch32 -p1
%patch33 -p1
%patch34 -p1
find -type f -name \*.orig -delete
bzip2 -9k ChangeLog

%build
%add_optflags -D_GNU_SOURCE
# The regex.h must be kept in sync with --without-included-regex.
install -pm644 %_includedir/regex.h lib/
# Bundled error.c is outdated.
: >lib/error.c
%configure --bindir=/bin --without-included-regex
%make_build
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build -k check}}}

%install
%makeinstall bindir=%buildroot/bin

# Use symlinks for egrep and fgrep

ln -sf grep %buildroot/bin/egrep
ln -sf grep %buildroot/bin/fgrep
ln -sf grep %buildroot/bin/pcregrep
ln -s grep.1 %buildroot%_man1dir/pcregrep.1

%find_lang %name

%post
%install_info grep.info

%preun
%uninstall_info grep.info

%files -f %name.lang
/bin/*
%_mandir/man?/*
%_infodir/*.info*
%doc AUTHORS ChangeLog.bz2 NEWS README THANKS TODO

%changelog

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

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