diff --git a/.cvsignore b/.cvsignore index e69de29..12bcd66 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-Mock-LWP-0.05.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..a1384c2 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Test-Mock-LWP-0_05-1_el5:HEAD:perl-Test-Mock-LWP-0.05-1.el5.src.rpm:1214247801 diff --git a/perl-Test-Mock-LWP.spec b/perl-Test-Mock-LWP.spec new file mode 100644 index 0000000..098be01 --- /dev/null +++ b/perl-Test-Mock-LWP.spec @@ -0,0 +1,63 @@ +Name: perl-Test-Mock-LWP +Version: 0.05 +Release: 1%{?dist} +Summary: Easy mocking of LWP packages +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-Mock-LWP/ +Source0: http://archive.cpan.cz//authors/id/L/LU/LUKEC/Test-Mock-LWP-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::MockObject) >= 1.08 +BuildRequires: perl(Test::More) >= 0.42 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + + +%description +This package arises from duplicating the same code to mock LWP et al in +several different modules I've written. This version is very minimalist, +but works for my needs so far. I'm very open to new suggestions and +improvements. + + +%prep +%setup -q -n Test-Mock-LWP-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + + +%changelog +* Mon Jun 16 2008 Lubomir Rintel (Good Data) 0.05-1 +- Specfile autogenerated by cpanspec 1.75. +- Fixed dependencies +- Fixed strings diff --git a/sources b/sources index e69de29..1e740e9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2496324cd4474966269847836770b7a0 Test-Mock-LWP-0.05.tar.gz