2242ae2
Summary:	Search mailboxes for a particular email
2242ae2
Name:		grepmail
b90632d
Version:	5.3111
3a3998e
Release:	12%{?dist}
9876367
License:	GPLv2
c140e79
URL:		https://metacpan.org/release/grepmail
c140e79
Source0:	https://cpan.metacpan.org/authors/id/D/DC/DCOPPIT/grepmail-%{version}.tar.gz
ae9bdbb
Patch0:		grepmail-5.3111-Test-Compile.patch
2242ae2
BuildArch:	noarch
8495402
# Module Build
7afefc4
BuildRequires:	coreutils
7afefc4
BuildRequires:	findutils
7afefc4
BuildRequires:	make
c86a7bf
BuildRequires:	perl-generators
7afefc4
BuildRequires:	perl-interpreter
8495402
BuildRequires:	perl(base)
8495402
BuildRequires:	perl(Config)
8495402
BuildRequires:	perl(constant)
8495402
BuildRequires:	perl(Cwd)
b90632d
BuildRequires:	perl(Encode) >= 2.11
b90632d
BuildRequires:	perl(Exporter) >= 5.57
8495402
BuildRequires:	perl(ExtUtils::MakeMaker)
8495402
BuildRequires:	perl(ExtUtils::Manifest)
8495402
BuildRequires:	perl(Fcntl) >= 1.03
b90632d
BuildRequires:	perl(File::HomeDir::Unix)
8495402
BuildRequires:	perl(File::Path)
8495402
BuildRequires:	perl(File::Spec) >= 0.8
b90632d
BuildRequires:	perl(File::Temp)
8495402
BuildRequires:	perl(FindBin)
7afefc4
BuildRequires:	perl(lib)
b90632d
BuildRequires:	perl(PerlIO::encoding)
b90632d
BuildRequires:	perl(PerlIO::utf8_strict)
8495402
# Module Runtime
8b11c6c
BuildRequires:	perl(Carp)
8495402
BuildRequires:	perl(Getopt::Std)
8495402
BuildRequires:	perl(Mail::Mbox::MessageParser) >= 1.4001
8495402
BuildRequires:	perl(strict)
8495402
BuildRequires:	perl(vars)
3bfaaaf
BuildRequires:	perl(warnings)
7afefc4
# Optional Functionality (note: Time::Local in EL-6 works OK if TZ is set, don't really need 1.23)
8b11c6c
BuildRequires:	perl(Date::Manip)
8b11c6c
BuildRequires:	perl(Date::Parse)
8b11c6c
BuildRequires:	perl(Digest::MD5)
8495402
BuildRequires:	perl(File::Find)
8495402
BuildRequires:	perl(Time::Local)
8495402
# Test Suite
8495402
BuildRequires:	perl(ExtUtils::Command)
8495402
BuildRequires:	perl(File::Copy)
8495402
BuildRequires:	perl(File::Spec::Functions)
8495402
BuildRequires:	perl(FileHandle)
7afefc4
BuildRequires:	perl(Test::Compile)
7afefc4
BuildRequires:	perl(Test::More) >= 0.62
7afefc4
BuildRequires:	perl(UNIVERSAL::require)
8495402
# Optional Tests
7afefc4
BuildRequires:	perl(Test::Pod)
7afefc4
BuildRequires:	perl(Test::Pod::Coverage)
8495402
# Runtime
8b11c6c
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
8b11c6c
Requires:	perl(Date::Manip)
8b11c6c
Requires:	perl(Date::Parse)
8b11c6c
Requires:	perl(Digest::MD5)
8495402
Requires:	perl(File::Find)
8495402
Requires:	perl(Mail::Mbox::MessageParser) >= 1.4001
8495402
Requires:	perl(Time::Local)
2242ae2
2242ae2
%description
2242ae2
Grepmail searches a normal or compressed mailbox for a given regular
2242ae2
expression, and returns those emails that match it. Piped input is allowed,
2242ae2
and date and size restrictions are supported, as are searches using logical
2242ae2
operators.
2242ae2
2242ae2
%prep
2242ae2
%setup -q -n %{name}-%{version}
2242ae2
ae9bdbb
# Workaround for Test::Compile ≥ 2.0.0
ae9bdbb
%patch0 -p0
ae9bdbb
2242ae2
%build
8495402
perl Makefile.PL INSTALLDIRS=vendor --skipdeps
8b11c6c
make %{?_smp_mflags}
2242ae2
2242ae2
%install
8495402
make pure_install DESTDIR=%{buildroot}
7afefc4
find %{buildroot} -type f -name .packlist -delete
7afefc4
%{_fixperms} -c %{buildroot}
2242ae2
2242ae2
%check
2242ae2
export TZ=GMT0
8b11c6c
make test
2242ae2
2242ae2
%files
8495402
%if 0%{?_licensedir:1}
8495402
%license LICENSE
8495402
%else
8495402
%doc LICENSE
8495402
%endif
8495402
%doc CHANGES README TODO
2242ae2
%{_bindir}/grepmail
2242ae2
%{_mandir}/man1/grepmail.1*
2242ae2
2242ae2
%changelog
3a3998e
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.3111-12
3a3998e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
3a3998e
005f6d2
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 5.3111-11
005f6d2
- Perl 5.34 rebuild
005f6d2
ebe7f77
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.3111-10
ebe7f77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ebe7f77
9291cdd
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.3111-9
9291cdd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9291cdd
bd65190
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 5.3111-8
bd65190
- Perl 5.32 rebuild
bd65190
7144c4b
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.3111-7
7144c4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7144c4b
a0df1ee
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.3111-6
a0df1ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a0df1ee
ae9bdbb
* Sun Jun 23 2019 Paul Howarth <paul@city-fan.org> - 5.3111-5
ae9bdbb
- Workaround for FTBFS with Test::Compile ≥ 2.0.0
ae9bdbb
505ad85
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 5.3111-4
505ad85
- Perl 5.30 rebuild
505ad85
c7b9526
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.3111-3
c7b9526
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c7b9526
4c31ec4
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.3111-2
4c31ec4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4c31ec4
b90632d
* Thu Jul 12 2018 Paul Howarth <paul@city-fan.org> - 5.3111-1
b90632d
- Update to 5.3111
b90632d
  - Fix test case for binary data
b90632d
  - Updating META.yml
b90632d
  - Fix Makefile.PL warning
b90632d
  - Fix deleting of inc during release process
b90632d
  - Better fix for AutomatedTester warning
b90632d
51408e0
* Mon Jul  9 2018 Paul Howarth <paul@city-fan.org> - 5.3109-1
51408e0
- Update to 5.3109
51408e0
  - Switch from File::Slurp to File::Slurper
51408e0
51408e0
* Sun Jul  8 2018 Paul Howarth <paul@city-fan.org> - 5.3108-1
3bfaaaf
- Update to 5.3108
3bfaaaf
  - Check in standard tests, including one that skips the compile check on
3bfaaaf
    Windows
3bfaaaf
  - Attempt to be more compatible with CPAN testing, which apparently doesn't
3bfaaaf
    support symlinks
3bfaaaf
  - Disable "check redirect to input file" feature on Windows, where apparently
3bfaaaf
    it doesn't work
3bfaaaf
d81becb
* Wed Jul 04 2018 Petr Pisar <ppisar@redhat.com> - 5.3105-2
d81becb
- Perl 5.28 rebuild
d81becb
7afefc4
* Tue Jul  3 2018 Paul Howarth <paul@city-fan.org> - 5.3105-1
7afefc4
- Update to 5.3105
7afefc4
  - Add standard tests
7afefc4
  - Search headers of attachments, such as filename
7afefc4
  - Detect when someone accidentally makes STDOUT or STDERR also an input file
7afefc4
  - Fix compatibility issue with newer versions of perl, which remove "." from
7afefc4
    @INC
7afefc4
- Simplify find command using -delete
7afefc4
- Drop buildroot cleaning in %%install section
7afefc4
- Drop legacy Group: tag
7afefc4
d2c6898
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 5.3104-11
d2c6898
- Perl 5.28 rebuild
d2c6898
579f14b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.3104-10
579f14b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
579f14b
d6133b9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.3104-9
d6133b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d6133b9
6665453
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 5.3104-8
6665453
- Perl 5.26 rebuild
6665453
7a69c05
* Wed May 17 2017 Jitka Plesnikova <jplesnik@redhat.com> - 5.3104-7
7a69c05
- Fix building on Perl without '.' in @INC
7a69c05
53ad692
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.3104-6
53ad692
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
53ad692
412bfb1
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 5.3104-5
412bfb1
- Perl 5.24 rebuild
412bfb1
44b4588
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.3104-4
44b4588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
44b4588
6cabe91
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3104-3
6cabe91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6cabe91
eb31308
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 5.3104-2
eb31308
- Perl 5.22 rebuild
eb31308
ab1c071
* Sun May  3 2015 Paul Howarth <paul@city-fan.org> - 5.3104-1
ab1c071
- Update to 5.3104
ab1c071
  - Clarify licensing terms
ab1c071
  - Don't install private Module::Install extension (CPAN RT#103482)
ab1c071
  - Move verbose testing to a private module, and implement it in a way that
ab1c071
    doesn't require editing the Makefile after it is generated
ab1c071
  - Require File::Slurp instead of including it, to avoid potential problems
ab1c071
    like this:
ab1c071
    http://www.cpantesters.org/cpan/report/86a0145a-e52b-11e4-a1d1-8536eb4f9f07
ab1c071
  - Miscellaneous fixes for Windows compatibility, including weaking the
ab1c071
    invalid mailbox test so that it only looks for output from grepmail, and
ab1c071
    not any "broken pipe" message from the OS
ab1c071
9876367
* Mon Apr 13 2015 Paul Howarth <paul@city-fan.org> - 5.3102-1
9876367
- Update to 5.3102
9876367
  - Force the user to upgrade their Time::Local, to work around bugs in the
9876367
    stock version that came with old OSes like RHEL 5
9876367
    http://www.cpantesters.org/cpan/report/61043eda-dd0e-11e4-abc4-b553e14af301
9876367
  - Enable verbose testing for CPAN-testers
9876367
  - Consolidate issue tracking at rt.cpan.org
9876367
  - Use proper temp dir instead of t/temp
9876367
- License changed to GPLv2
9876367
3a7aa7d
* Sun Apr  5 2015 Paul Howarth <paul@city-fan.org> - 5.3101-1
3a7aa7d
- Update to 5.3101
3a7aa7d
  - Add explicit include for Module::AutoInstall
3a7aa7d
    (https://code.google.com/p/grepmail/issues/detail?id=1)
3a7aa7d
  - Improve the recursive.t test
3a7aa7d
    (https://code.google.com/p/grepmail/issues/detail?id=2)
3a7aa7d
  - Add explicit "provides" to META.yml
3a7aa7d
8495402
* Wed Mar 25 2015 Paul Howarth <paul@city-fan.org> - 5.3100-1
8495402
- Update to 5.3100
8495402
  - Move code to github
8495402
  - Fixed a bug where complex -E search patterns containing '\/' would fail to
8495402
    match emails properly (http://bugs.debian.org/432083)
8495402
  - Add POD test
8495402
  - Update tests to use Config{perlpath} for better compatibility with
8495402
    automated testing
8495402
  - Prevent MakeMaker from recursing into any "old" directory
8495402
  - Fix t/invalid_date.t to work even when Date::Manip is not installed
8495402
  - Fix t/nonexistent_mailbox.t - broken STDIN does not cause $SIG{PIPE}
8495402
  - Added lzip support (http://sourceforge.net/p/grepmail/patches/8/)
8495402
  - Added xz support
8495402
  - Fix incompatibility with newer versions of Date::Manip (CPAN RT#54621)
8495402
- Classify buildreqs by usage
8495402
- Drop %%defattr, redundant since rpm 4.4
8495402
- Use %%license where possible
8495402
- Use DESTDIR rather than PERL_INSTALL_ROOT
8495402
- Use %%{_fixperms} macro rather than our own chmod incantation
8495402
- Don't need to run test suite with LANG=C
8495402
- Don't need to remove empty directories from the buildroot
8495402
3c65b92
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 5.3034-15
3c65b92
- Perl 5.20 rebuild
3c65b92
248b117
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3034-14
248b117
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
248b117
3aa55c5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3034-13
3aa55c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3aa55c5
c0a25ad
* Fri Aug 02 2013 Petr Pisar <ppisar@redhat.com> - 5.3034-12
c0a25ad
- Perl 5.18 rebuild
c0a25ad
89205f7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3034-11
89205f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
89205f7
42e7f28
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3034-10
42e7f28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
42e7f28
b4ec411
* Fri Jun 22 2012 Petr Pisar <ppisar@redhat.com> - 5.3034-9
b4ec411
- Perl 5.16 rebuild
b4ec411
a075684
* Sat Jan  7 2012 Paul Howarth <paul@city-fan.org> 5.3034-8
a075684
- Fedora 17 Mass Rebuild
a075684
8b11c6c
* Sat Oct  8 2011 Paul Howarth <paul@city-fan.org> 5.3034-7
8b11c6c
- BR/R: perl(Digest::MD5) for improved memory usage
8b11c6c
- BR: perl(Carp)
8b11c6c
- Nobody else likes macros for commands
8b11c6c
8b11c6c
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> 5.3034-6
Petr Sabata 42245d9
- Perl mass rebuild
Petr Sabata 42245d9
8b11c6c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 5.3034-5
ee83a60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ee83a60
8b11c6c
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> 5.3034-4
c5a024e
- Mass rebuild with perl-5.12.0
c5a024e
3667ed9
* Mon Feb 15 2010 Paul Howarth <paul@city-fan.org> 5.3034-3
3667ed9
- Fix incompatibilities with Date::Manip 6.x (#564839, CPAN RT#54621)
3667ed9
3667ed9
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> 5.3034-2
3667ed9
- Rebuild against perl 5.10.1
b1bf575
542d353
* Wed Sep  2 2009 Paul Howarth <paul@city-fan.org> 5.3034-1
542d353
- Update to 5.3034
542d353
  - fix man page year typo (Debian bug #428973)
542d353
  - updated to the latest version of Module::Install
542d353
  - added TODO to the distribution
542d353
  - fix a bug where grepmail could abort with -L
542d353
  - fix a bug in the -R test that could cause a false test failure
542d353
  - fix uninitialized variable warnings for emails missing certain headers
542d353
- URLs moved back to search.cpan.org
542d353
- Buildreq perl(Test::More)
542d353
- Buildreq perl(Module::AutoInstall), should have been bundled
542d353
- Revert change to t/recursive.t from 5.3033 that causes test failure
542d353
- Patch t/nonexistent_mailbox.t to support changed behaviour of
542d353
  Mail::Mbox::MessageParser >= 1.5002
542d353
542d353
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 5.3033-6
935c6f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
935c6f8
542d353
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 5.3033-5
3ea0bd0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3ea0bd0
7d40146
* Thu Feb  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> 5.3033-4
542d353
- Rebuild for new perl
7d40146
488c7c1
* Wed Apr 18 2007 Paul Howarth <paul@city-fan.org> 5.3033-3
488c7c1
- Buildrequire perl(ExtUtils::MakeMaker) instead of perl-devel
488c7c1
4ff6409
* Thu Mar  8 2007 Paul Howarth <paul@city-fan.org> 5.3033-2
4ff6409
- Buildrequire perl-devel for Fedora 7 onwards
4ff6409
258ac21
* Fri Mar  2 2007 Paul Howarth <paul@city-fan.org> 5.3033-1
258ac21
- Update to 5.3033
258ac21
- CPAN RT#24341 fixed upstream, remove patch
258ac21
- Permissions fixes in %%prep no longer needed
258ac21
- Changed download host from dl.sf.net to downloads.sf.net
258ac21
87fce3b
* Tue Feb 27 2007 Paul Howarth <paul@city-fan.org> 5.3032-5
87fce3b
- Add patch to fix CPAN RT#24341 (test suite failures with recent
87fce3b
  Mail::Mbox::MessageParser)
87fce3b
- Fix argument order for find with -depth
87fce3b
7839ea0
* Tue Aug 29 2006 Paul Howarth <paul@city-fan.org> 5.3032-4
7839ea0
- FE6 rebuild
7839ea0
165ef72
* Thu Feb 16 2006 Paul Howarth <paul@city-fan.org> 5.3032-3
165ef72
- Don't use macros in command paths, hardcode them instead
165ef72
d508cdd
* Wed Oct 12 2005 Paul Howarth <paul@city-fan.org> 5.3032-2
d508cdd
- Remove spec file comments about package naming (#170506)
d508cdd
2242ae2
* Wed Oct 12 2005 Paul Howarth <paul@city-fan.org> 5.3032-1
2242ae2
- Fedora Extras submission