54 lines
1.3 KiB
RPMSpec
54 lines
1.3 KiB
RPMSpec
|
# norootforbuild
|
||
|
|
||
|
Name: perl-Package-Stash
|
||
|
Version: 0.03
|
||
|
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
|
||
|
BuildRequires: make perl
|
||
|
BuildRequires: perl(Scalar::Util)
|
||
|
BuildRequires: perl(Test::Exception)
|
||
|
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
|
||
|
|
||
|
%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}
|
||
|
|
||
|
%changelog
|
||
|
# vim: set sw=3 ts=3 noet:
|
||
|
# Local Variables:
|
||
|
# mode: rpm-spec
|
||
|
# tab-width: 3
|
||
|
# End:
|