2007-01-15 14:31:17 +00:00
|
|
|
#
|
2011-11-17 15:39:07 +00:00
|
|
|
# spec file for package perl-Mail-Mbox-MessageParser
|
2007-01-15 14:31:17 +00:00
|
|
|
#
|
2018-07-16 06:47:04 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 14:31:17 +00:00
|
|
|
#
|
2009-06-18 15:08:11 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 14:31:17 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-02-22 00:44:07 +00:00
|
|
|
|
2007-01-15 14:31:17 +00:00
|
|
|
Name: perl-Mail-Mbox-MessageParser
|
2018-07-21 08:33:56 +00:00
|
|
|
Version: 1.5111
|
2015-05-03 11:56:18 +00:00
|
|
|
Release: 0
|
|
|
|
%define cpan_name Mail-Mbox-MessageParser
|
|
|
|
Summary: Fast and Simple Mbox Folder Reader
|
2018-07-16 06:47:04 +00:00
|
|
|
License: GPL-2.0-or-later
|
2007-01-15 14:31:17 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-05-03 11:56:18 +00:00
|
|
|
Url: http://search.cpan.org/dist/Mail-Mbox-MessageParser/
|
2018-07-16 06:47:04 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DC/DCOPPIT/%{cpan_name}-%{version}.tar.gz
|
2015-05-03 11:56:18 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:14 +02:00
|
|
|
Source100: README.md
|
2015-05-03 11:56:18 +00:00
|
|
|
BuildArch: noarch
|
2007-01-15 14:31:17 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-05-03 11:56:18 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2018-07-16 06:47:04 +00:00
|
|
|
BuildRequires: perl(File::Path) >= 2.080000
|
2015-05-03 11:56:18 +00:00
|
|
|
BuildRequires: perl(FileHandle::Unget)
|
2018-07-16 06:47:04 +00:00
|
|
|
BuildRequires: perl(Test::Compile)
|
2015-05-03 11:56:18 +00:00
|
|
|
BuildRequires: perl(Text::Diff)
|
2018-07-21 08:33:56 +00:00
|
|
|
BuildRequires: perl(UNIVERSAL::require)
|
2015-05-03 11:56:18 +00:00
|
|
|
Requires: perl(FileHandle::Unget)
|
2010-12-05 21:04:08 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 14:31:17 +00:00
|
|
|
|
|
|
|
%description
|
2015-05-03 11:56:18 +00:00
|
|
|
This module implements a fast but simple mbox folder reader. One of three
|
|
|
|
implementations (Cache, Grep, Perl) will be used depending on the wishes of
|
|
|
|
the user and the system configuration. The first implementation is a
|
|
|
|
cached-based one which stores email information about mailboxes on the file
|
|
|
|
system. Subsequent accesses will be faster because no analysis of the
|
|
|
|
mailbox will be needed. The second implementation is one based on GNU grep,
|
|
|
|
and is significantly faster than the Perl version for mailboxes which
|
|
|
|
contain very large (10MB) emails. The final implementation is a fast
|
|
|
|
Perl-based one which should always be applicable.
|
2007-01-15 14:31:17 +00:00
|
|
|
|
2015-05-03 11:56:18 +00:00
|
|
|
The Cache implementation is about 6 times faster than the standard Perl
|
|
|
|
implementation. The Grep implementation is about 4 times faster than the
|
|
|
|
standard Perl implementation. If you have GNU grep, it's best to enable
|
|
|
|
both the Cache and Grep implementations. If the cache information is
|
|
|
|
available, you'll get very fast speeds. Otherwise, you'll take about a 1/3
|
|
|
|
performance hit when the Grep version is used instead.
|
2007-01-15 14:31:17 +00:00
|
|
|
|
2015-05-03 11:56:18 +00:00
|
|
|
The overriding requirement for this module is speed. If you wish more
|
|
|
|
sophisticated parsing, use Mail::MboxParser (which is based on this module)
|
|
|
|
or Mail::Box.
|
2007-01-15 14:31:17 +00:00
|
|
|
|
|
|
|
%prep
|
2015-05-03 11:56:18 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2018-07-16 06:47:04 +00:00
|
|
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
2007-01-15 14:31:17 +00:00
|
|
|
|
|
|
|
%build
|
2015-05-03 11:56:18 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2010-01-27 17:25:54 +00:00
|
|
|
|
|
|
|
%check
|
2015-05-03 11:56:18 +00:00
|
|
|
%{__make} test
|
2007-01-15 14:31:17 +00:00
|
|
|
|
|
|
|
%install
|
2015-05-03 11:56:18 +00:00
|
|
|
%perl_make_install
|
2007-01-15 14:31:17 +00:00
|
|
|
%perl_process_packlist
|
2015-05-03 11:56:18 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 14:31:17 +00:00
|
|
|
|
2015-05-03 11:56:18 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2018-07-16 06:47:04 +00:00
|
|
|
%doc anonymize_mailbox CHANGES README TODO
|
|
|
|
%license LICENSE
|
2007-01-15 14:31:17 +00:00
|
|
|
|
2008-02-22 00:44:07 +00:00
|
|
|
%changelog
|