From 9798877a54635dc0c14521902fbec04576355201 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Mon, 14 Jun 2010 07:11:04 +0000 Subject: [PATCH] Initial import of perl-Package-Stash-0.03-1 --- .cvsignore | 1 + perl-Package-Stash.spec | 52 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 54 insertions(+) create mode 100644 perl-Package-Stash.spec diff --git a/.cvsignore b/.cvsignore index e69de29..5ae6a64 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Package-Stash-0.03.tar.gz diff --git a/perl-Package-Stash.spec b/perl-Package-Stash.spec new file mode 100644 index 0000000..b5064b1 --- /dev/null +++ b/perl-Package-Stash.spec @@ -0,0 +1,52 @@ +Name: perl-Package-Stash +Version: 0.03 +Release: 1%{?dist} +Summary: Routines for manipulating stashes +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Package-Stash/ +Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Manipulating stashes (Perl's symbol tables) is occasionally necessary, but +incredibly messy, and easy to get wrong. This module hides all of that behind +a simple API. + +%prep +%setup -q -n Package-Stash-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null +%{_fixperms} %{buildroot} + +%check +make test RELEASE_TESTING=1 + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/Package/ +%{_mandir}/man3/Package::Stash.3pm* + +%changelog +* Mon Jun 7 2010 Paul Howarth - 0.03-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..c2e0b8d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ba2ef213adbab1c82244a170ad9d4475 Package-Stash-0.03.tar.gz