2010-06-14 07:05:07 +00:00
|
|
|
Name: perl-Package-Stash
|
2010-06-14 13:52:53 +00:00
|
|
|
Version: 0.04
|
|
|
|
Release: 1%{?dist}
|
2010-06-14 07:05:07 +00:00
|
|
|
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))
|
|
|
|
|
2010-06-14 08:10:38 +00:00
|
|
|
%{?perl_default_filter}
|
|
|
|
|
2010-06-14 07:05:07 +00:00
|
|
|
%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}
|
2010-06-14 08:10:38 +00:00
|
|
|
make pure_install DESTDIR=%{buildroot}
|
2010-06-14 07:05:07 +00:00
|
|
|
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
|
2010-06-14 13:52:53 +00:00
|
|
|
* Mon Jul 14 2010 Paul Howarth <paul@city-fan.org> - 0.04-1
|
|
|
|
- Update to 0.04 (get_package_symbol now doesn't autovivify stash entries; a
|
|
|
|
new method get_or_add_package_symbol can now be used for that behavior)
|
|
|
|
|
2010-06-14 08:10:38 +00:00
|
|
|
* Mon Jun 14 2010 Paul Howarth <paul@city-fan.org> - 0.03-2
|
|
|
|
- Incorporate package review suggestions (#602597)
|
|
|
|
- Use %%{?perl_default_filter}
|
|
|
|
- Use DESTDIR instead of PERL_INSTALL_ROOT
|
|
|
|
|
2010-06-14 07:05:07 +00:00
|
|
|
* Mon Jun 7 2010 Paul Howarth <paul@city-fan.org> - 0.03-1
|
|
|
|
- Initial RPM version
|