Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37877593
en ru br
Репозитории ALT

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

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

# SPDX-License-Identifier: GPL-2.0-only
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

Name: mboxgrep
Version: 0.7.12a
Release: alt1
Summary: Displays e-mail messages matching a pattern
License: GPL-2.0-or-later
Group: Text tools
Url: https://mboxgrep.datatipp.se/
Vcs: https://git.datatipp.se/dspiljar/mboxgrep

Source: %name-%version.tar

BuildRequires: bzlib-devel
BuildRequires: libpcre2-devel
BuildRequires: zlib-devel

%define valgrind_arches %ix86 x86_64
%{?!_without_check:%{?!_disable_check:
%ifarch %valgrind_arches
BuildRequires: /proc
BuildRequires: valgrind
%endif
BuildRequires: strace
}}

%description
mboxgrep is a small utility that scans a mailbox for messages matching
a regular expression. Found messages can be either displayed on standard
output, counted, deleted, piped to a shell command or written to another
mailbox.

%prep
%setup

%build
%ifarch %ix86 x86_64
%add_optflags -fanalyzer -Wno-analyzer-malloc-leak -Wno-analyzer-null-dereference
%endif
%add_optflags %(getconf LFS_CFLAGS) -Wno-unused-result -Wno-unused-but-set-variable
%autoreconf
%configure
%make_build

%install
%makeinstall

%define _customdocdir %_docdir/%name

%check
%ifarch %valgrind_arches
%define valgrind valgrind --error-exitcode=2
%else
%define valgrind time
%endif
PATH=%buildroot%_bindir:$PATH
%valgrind src/mboxgrep --no-duplicates . .gear/mbox > out
sha256sum out | grep 98176f5973129e0a8b26a9986ed21cea14187096096bd5ea950d2eaf19e1ade2
strace -v -o log mboxgrep --no-duplicates . .gear/mbox > out
# Check that mbox-to-stdout hardening is enabled.
grep '^prlimit.*RLIMIT_NPROC.*rlim_max=0}' log
grep '^prlimit.*RLIMIT_NOFILE.*rlim_max=0}' log

%files
%doc *.md
%_bindir/mboxgrep
%_infodir/%name.info*
%_man1dir/%name.1*

%changelog

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

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