71 lines
2.0 KiB
RPMSpec
71 lines
2.0 KiB
RPMSpec
Name: perl-Sub-Install
|
|
Version: 0.924
|
|
Release: 3%{?dist}
|
|
Summary: Install subroutines into packages easily
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Sub-Install/
|
|
Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Install-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
# testing
|
|
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
|
|
BuildRequires: perl(Test::Perl::Critic)
|
|
|
|
%description
|
|
This module makes it easy to install subroutines into packages without the
|
|
unslightly mess of no strict or typeglobs lying about where just anyone
|
|
can see them.
|
|
|
|
%prep
|
|
%setup -q -n Sub-Install-%{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
|
|
# you'll note a number of tests are skipped due to Test::Output not being
|
|
# present. However, Test::Output requires Sub::Exporter which requires...
|
|
# Sub::Install. Holy circular loop, Batman! :)
|
|
make test
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.924-3
|
|
- Rebuild for perl 5.10 (again)
|
|
|
|
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.924-2
|
|
- rebuild for new perl
|
|
- fix license tag
|
|
|
|
* Wed Nov 22 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.924-1
|
|
- update to 0.924
|
|
- add perl(Test::Perl::Critic) to BR's
|
|
|
|
* Wed Sep 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.922-2
|
|
- bump
|
|
|
|
* Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.922-1
|
|
- Specfile autogenerated by cpanspec 1.69.1.
|