commit 76c0812dd83b7dba212980c231b369f75ba0773b Author: Iain Arnell <iarnell@xxxxxxxxx> Date: Wed Apr 6 05:02:48 2011 +0200 initial import (rhbz#693037) .gitignore | 1 + perl-Test-HasVersion.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..22ba297 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-HasVersion-0.012.tar.gz diff --git a/perl-Test-HasVersion.spec b/perl-Test-HasVersion.spec new file mode 100644 index 0000000..ca62f1f --- /dev/null +++ b/perl-Test-HasVersion.spec @@ -0,0 +1,57 @@ +Name: perl-Test-HasVersion +Version: 0.012 +Release: 1%{?dist} +Summary: Check Perl modules have version numbers +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-HasVersion/ +Source0: http://www.cpan.org/authors/id/F/FE/FERREIRA/Test-HasVersion-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Spec) +BuildRequires: perl(strict) +BuildRequires: perl(Test::Builder) +BuildRequires: perl(Test::Builder::Tester) >= 1.04 +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +Requires: perl(Test::Builder::Tester) >= 1.04 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +Do you wanna check that every one of your Perl modules in a distribution +has a version number? You wanna make sure you don't forget the brand new +modules you just added? Well, that's the module you have been looking +for. Use it! + +%prep +%setup -q -n Test-HasVersion-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$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 + +%files +%defattr(-,root,root,-) +%doc Changes README +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat Apr 02 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.012-1 +- Specfile autogenerated by cpanspec 1.79. diff --git a/sources b/sources index e69de29..d1c7e7a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d9cb18aa27bbbb95b96a008248ebfb27 Test-HasVersion-0.012.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel