Initial import of perl-Package-Stash-0.03-1
This commit is contained in:
parent
5fb6845e5d
commit
12f659e05b
@ -0,0 +1 @@
|
|||||||
|
Package-Stash-0.03.tar.gz
|
53
perl-Package-Stash.spec
Normal file
53
perl-Package-Stash.spec
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
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(Pod::Coverage::TrustPod)
|
||||||
|
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 <paul@city-fan.org> - 0.03-1
|
||||||
|
- Initial RPM version
|
Loading…
Reference in New Issue
Block a user