%define pkg_name FEAR-API %define pkg_version 0.489 %define rpm_pkg_version 0.48_9 %define rpm_pkg_release 1.n0i.3 %define __perl_provides %{_tmppath}/%{name}-%{version}-%{release}.provides Summary: Web Scraping Zen 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: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: ftp://ftp.cpan.org/authors/id/X/XE/XERN/%{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')) %{!?_without_test:BuildRequires: perl(Compress::Zlib)} %{!?_without_test:BuildRequires: perl(DB_File)} %{!?_without_test:BuildRequires: perl(Digest::MD5)} %{!?_without_test:BuildRequires: perl(Email::Find)} %{!?_without_test:BuildRequires: perl(Exporter::Lite)} %{!?_without_test:BuildRequires: perl(File::MMagic)} %{!?_without_test:BuildRequires: perl(File::Slurp)} %{!?_without_test:BuildRequires: perl(File::Temp)} %{!?_without_test:BuildRequires: perl(Filter::Simple)} %{!?_without_test:BuildRequires: perl(HTML::Encoding)} %{!?_without_test:BuildRequires: perl(HTML::Entities)} %{!?_without_test:BuildRequires: perl(HTML::LinkExtractor)} %{!?_without_test:BuildRequires: perl(HTTP::Proxy)} %{!?_without_test:BuildRequires: perl(HTTP::Recorder)} %{!?_without_test:BuildRequires: perl(IO::All)} %{!?_without_test:BuildRequires: perl(IO::String)} %{!?_without_test:BuildRequires: perl(IPC::SysV)} %{!?_without_test:BuildRequires: perl(Inline)} %{!?_without_test:BuildRequires: perl(Inline::Files)} %{!?_without_test:BuildRequires: perl(Net::Server)} %{!?_without_test:BuildRequires: perl(Parallel::ForkManager)} %{!?_without_test:BuildRequires: perl(Regexp::Bind)} %{!?_without_test:BuildRequires: perl(Regexp::Common)} %{!?_without_test:BuildRequires: perl(Sort::Versions)} %{!?_without_test:BuildRequires: perl(Spiffy)} %{!?_without_test:BuildRequires: perl(Template)} %{!?_without_test:BuildRequires: perl(Template::Extract)} %{!?_without_test:BuildRequires: perl(Test::More)} %{!?_without_test:BuildRequires: perl(Text::CSV)} %{!?_without_test:BuildRequires: perl(Text::Iconv)} %{!?_without_test:BuildRequires: perl(WWW::Mechanize)} %{!?_without_test:BuildRequires: perl(XML::RSS::SimpleGen)} %{!?_without_test:BuildRequires: perl(XML::XPath)} %{!?_without_test:BuildRequires: perl(YAML)} Provides: perl(FEAR::API::Link) %description FEAR::API is a tool that helps reduce your time creating site scraping scripts and help you do it in a much more elegant way. FEAR::API combines many strong and powerful features from various CPAN modules, such as LWP::UserAgent, WWW::Mechanize, Template::Extract, Encode, HTML::Parser, etc. and digests them into a deeper Zen. %prep %setup -n %{pkg_name}-%{pkg_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} # way too creepy ;-) %{!?_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,go-w $RPM_BUILD_ROOT/* find $RPM_BUILD_ROOT | xargs -r touch # custom provides script %{__cat} < %{__perl_provides} #!%{_buildshell} %{__cat} - | %{__grep} -v %{_docdir} | /usr/lib/rpm/perl.prov $* \ | %{__grep} 'FEAR::API' EOF %{__chmod} 700 %{__perl_provides} %clean %{__rm} -rf $RPM_BUILD_ROOT %{__rm} -f %{__perl_provides} %files %defattr(-,root,root,-) %doc Changes README %{_bindir}/* %{perl_vendorlib}/* %{_mandir}/man*/* %changelog * Wed Jun 28 2006 Marius Feraru - 0.48_9-1.n0i.3.0.489 - version 0.489 * Sat Jun 17 2006 Marius Feraru - 0.48_7.4-1.n0i.1.0.487.4 - spec file (re)created using N0i::CPAN::RPMizer v1.12.1 - rebuild on perl 5.8.8