diff --git a/.cvsignore b/.cvsignore index e69de29..6abe480 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Mail-Mbox-MessageParser-1.4001.tar.gz diff --git a/perl-Mail-Mbox-MessageParser.spec b/perl-Mail-Mbox-MessageParser.spec new file mode 100644 index 0000000..c054790 --- /dev/null +++ b/perl-Mail-Mbox-MessageParser.spec @@ -0,0 +1,59 @@ +Summary: A fast and simple mbox folder reader +Name: perl-Mail-Mbox-MessageParser +Version: 1.4001 +Release: 1%{?dist} +License: GPL +Group: Development/Libraries +Url: http://sourceforge.net/projects/m-m-msgparser/ +Source0: http://dl.sf.net/m-m-msgparser/Mail-Mbox-MessageParser-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: grep, gzip, bzip2 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(FileHandle::Unget) + +%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. + +%prep +%setup -q -n Mail-Mbox-MessageParser-%{version} + +# Permissions wrong in tarball +%{__chmod} -x lib/Mail/Mbox/MessageParser/*.pm + +%build +# tzip support is broken and will be removed in a forthcoming release anyway +%{__perl} Makefile.PL INSTALLDIRS=vendor \ + DIFF=%{_bindir}/diff \ + BZIP=%{__bzip2} \ + BZIP2=%{__bzip2} \ + GREP=%{__grep} \ + GZIP=%{__gzip} \ + TZIP= \ + --default +%{__make} %{?_smp_mflags} + +%check +%{__make} test + +%install +%{__rm} -rf %{buildroot} +%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} +%{_bindir}/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' +%{_bindir}/find %{buildroot} -type d -depth -exec %{__rmdir} {} 2>/dev/null ';' +%{__chmod} -R u+w %{buildroot}/* + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root,0755) +%doc README CHANGES anonymize_mailbox LICENSE +%{perl_vendorlib}/Mail/ +%{_mandir}/man3/Mail::Mbox::MessageParser* + +%changelog +* Wed Oct 12 2005 Paul Howarth 1.4001-1 +- Fedora Extras submission diff --git a/sources b/sources index e69de29..994b1bd 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +eee4ea89dd6d9117296f33d0723987ab Mail-Mbox-MessageParser-1.4001.tar.gz