%define pkg_name WWW-Yahoo-Groups %define pkg_version 1.91 %define rpm_pkg_version 1.91 %define rpm_pkg_release 1.n0i.1 Summary: Automated access to Yahoo! Groups archives 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/S/SP/SPOON/%{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(Exception::Class) >= 1.16 Requires: perl(HTML::Entities) >= 1.27 Requires: perl(HTTP::Cookies) >= 1.36 Requires: perl(Net::SSL) >= 2.77 Requires: perl(Params::Validate) >= 0.70 Requires: perl(WWW::Mechanize) >= 0.70 %{!?_without_test:BuildRequires: perl(Exception::Class) >= 1.16} %{!?_without_test:BuildRequires: perl(HTML::Entities) >= 1.27} %{!?_without_test:BuildRequires: perl(HTTP::Cookies) >= 1.36} %{!?_without_test:BuildRequires: perl(Net::SSL) >= 2.77} %{!?_without_test:BuildRequires: perl(Params::Validate) >= 0.70} %{!?_without_test:BuildRequires: perl(Test::Differences) >= 0.47} %{!?_without_test:BuildRequires: perl(Test::More) >= 0.47} %{!?_without_test:BuildRequires: perl(WWW::Mechanize) >= 0.70} %description "WWW::Yahoo::Groups" retrieves messages from the archive of Yahoo Groups. It provides a simple OO interface to logging in and retrieving said messages which you may then do with as you will. %prep %setup -n %{pkg_name}-%{pkg_version} %build %{__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,go-w $RPM_BUILD_ROOT/* find $RPM_BUILD_ROOT | xargs -r touch %{__grep} -rsl '^#!.*perl' examples/ \ | xargs -r %{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Artistic AUTHORS ChangeLog Changes COPYING CREDITS examples/ LICENCE README %{perl_vendorlib}/* %{_mandir}/man*/* %changelog * Mon Apr 10 2006 Marius Feraru 1.91-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer v1.12.1 - rebuild on perl 5.8.8