perl-Package-Stash/perl-Package-Stash.spec

57 lines
1.4 KiB
RPMSpec

# norootforbuild
Name: perl-Package-Stash
Version: 0.08
Release: 0
Summary: Routines for Manipulating Stashes
Source: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-%{version}.tar.gz
URL: http://search.cpan.org/dist/Package-Stash/
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: make perl
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Scalar::Util)
Requires: perl(Scalar::Util)
%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}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%if %suse_version>=1120
%__make test
%endif
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc Changes README LICENSE
%dir %{perl_vendorlib}/Package
%{perl_vendorlib}/Package/Stash.pm
%dir %{perl_vendorarch}/auto/Package
%{perl_vendorarch}/auto/Package/Stash
%doc %{perl_man3dir}/Package::Stash.%{perl_man3ext}%{ext_man}
/var/adm/perl-modules/%{name}
# vim: set sw=3 ts=3 noet: