File perl-Mail-Mbox-MessageParser.spec of Package perl-Mail-Mbox-MessageParser

#
# spec file for package perl-Mail-Mbox-MessageParser
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-Mail-Mbox-MessageParser
BuildRequires:  perl-FileHandle-Unget
BuildRequires:  perl-macros
Version:        1.5002
Release:        6
Summary:        A fast and simple mbox folder reader
License:        GPL-2.0+
Url:            http://cpan.org/modules/by-module/Mail/
Group:          Development/Libraries/Perl
Requires:       perl-FileHandle-Unget
AutoReqProv:    on
Source:         Mail-Mbox-MessageParser-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
Requires:       perl-Text-Diff
BuildRequires:  perl-Text-Diff

%description
Mail::Mbox::MessageParser is a feature-poor but very fast mbox parser.
It uses the best of three strategies for parsing a mailbox: either
using cached folder information, GNU grep, or highly optimized Perl.



Authors:
--------
    David Coppit <david@coppit.org>

%prep
%setup -q -n Mail-Mbox-MessageParser-%{version}

%build
perl Makefile.PL INSTALLDIRS=site \
        BZIP=/usr/bin/bzip2 BZIP2=/usr/bin/bzip2 DIFF=/usr/bin/diff GREP=/usr/bin/grep GZIP=/usr/bin/gzip TZIP=
make %{?_smp_mflags}

%check
make test

%install
[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
 [ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Mail
%{perl_vendorarch}/auto/Mail

%changelog
openSUSE Build Service is sponsored by