%define pkg_name Mail-Miner %define pkg_version 2.7 %define rpm_pkg_version 2.7 %define rpm_pkg_release 1.n0i.1 Summary: Store and retrieve Useful Information from mail Name: perl-%{pkg_name} Version: %{rpm_pkg_version} %if "%{pkg_version}" == "%{rpm_pkg_version}" Release: %{rpm_pkg_release} %else Release: %{rpm_pkg_release}.%(echo %{pkg_version} | tr - _) %endif Group: Development/Libraries License: GPL or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: ftp://ftp.cpan.org/authors/id/S/SI/SIMON/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V')) Requires: perl(Class::DBI) >= 0.9 %{!?_without_test:BuildRequires: perl(MIME::Parser)} %{!?_without_test:BuildRequires: perl(Class::DBI::mysql)} %{!?_without_test:BuildRequires: perl(Class::DBI) >= 0.9} %{!?_without_test:BuildRequires: perl(Lingua::EN::Keywords)} %{!?_without_test:BuildRequires: perl(Mail::Address)} %{!?_without_test:BuildRequires: perl(Date::PeriodParser)} %description I'm very forgetful, and I tend to rely on my email as a surrogate memory. This is great until you get over 200M of email and can't actually find anything any more. You tend to remember things like "the phone number I need is in a message from Frank around September last year" or "someone sent me a JPG in a message about Tina". This doesn't really help you find the mail in most mail clients, though. This is where Mail::Miner comes in. It's a generic system for extracting useful information for an email message, storing the information and the message, and allowing both to be extracted through a complex search in the future. %prep %setup -n %{pkg_name}-%{pkg_version} # add shellbang to mm_process mv mm_process mm_process.old echo '#!%{__perl}' > mm_process cat mm_process.old >> mm_process %{__rm} mm_process.old find . -type f | xargs -r chmod 0644 %build PERL_MM_USE_DEFAULT=1 %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{!?_without_test:%{__make} test ||:} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name .packlist -delete || : find $RPM_BUILD_ROOT -type f -name '*.bs' -a -empty -delete || : find $RPM_BUILD_ROOT -depth -type d -a -empty -delete || : %{__chmod} -R u+w $RPM_BUILD_ROOT/* find $RPM_BUILD_ROOT | xargs -r touch %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes miner.sql README %{_bindir}/* %{perl_vendorlib}/* %{_mandir}/man*/* %changelog * Thu Aug 04 2005 Marius Feraru 2.7-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7