Author: agaran Date: Wed Jan 9 07:50:47 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - initial, builds here, rel 1
---- Files affected: SPECS: perl-POE-Component-SmokeBox-Recent.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/perl-POE-Component-SmokeBox-Recent.spec diff -u /dev/null SPECS/perl-POE-Component-SmokeBox-Recent.spec:1.1 --- /dev/null Wed Jan 9 08:50:47 2008 +++ SPECS/perl-POE-Component-SmokeBox-Recent.spec Wed Jan 9 08:50:42 2008 @@ -0,0 +1,83 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir POE +%define pnam Component-SmokeBox-Recent +Summary: POE::Component::SmokeBox::Recent - A POE component to retrieve recent CPAN uploads. +#Summary(pl): +Name: perl-POE-Component-SmokeBox-Recent +Version: 0.03 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: c252c65f6bb3f79d32f079a72da526a2 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl(HTTP::Request) +BuildRequires: perl(POE) >= 0.38 +BuildRequires: perl(POE::Component::Client::FTP) >= 0.14 +BuildRequires: perl(POE::Component::Client::HTTP) >= 0.82 +BuildRequires: perl(URI) +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +POE::Component::SmokeBox::Recent is a POE component for retrieving recently uploaded CPAN distributions +from the CPAN mirror of your choice. + +It accepts a url and an event name and attempts to download and parse the RECENT file from that given url. + +It is part of the SmokeBox toolkit for building CPAN Smoke testing frameworks. + + + +# %description -l pl +# TODO + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +PERL_MM_USE_DEFAULT=1 \ +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/POE/Component/SmokeBox/*.pm +#%%{perl_vendorlib}/POE/Component/SmokeBox/Recent +%{_mandir}/man3/* +%{_examplesdir}/%{name}-%{version} + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2008-01-09 07:50:42 agaran +- initial, builds here, rel 1 + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
