804c59
# Run optional test
804c59
%if ! (0%{?rhel})
804c59
%bcond_without perl_Sub_Install_enables_optional_test
804c59
%else
804c59
%bcond_with perl_Sub_Install_enables_optional_test
804c59
%endif
804c59
804c59
Name:           perl-Sub-Install
804c59
Version:        0.928
804c59
Release:        14%{?dist}
804c59
Summary:        Install subroutines into packages easily
804c59
License:        GPL+ or Artistic
804c59
Group:          Development/Libraries
804c59
URL:            http://search.cpan.org/dist/Sub-Install/
804c59
Source0:        http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Install-%{version}.tar.gz
804c59
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
804c59
BuildArch:      noarch
804c59
# ================= Module Build ============================
804c59
BuildRequires:  perl-interpreter
804c59
BuildRequires:  perl-generators
804c59
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
804c59
BuildRequires:  perl(strict)
804c59
BuildRequires:  perl(warnings)
804c59
# ================= Run-time ================================
804c59
BuildRequires:  perl(B)
804c59
BuildRequires:  perl(Carp)
804c59
BuildRequires:  perl(Scalar::Util)
804c59
# ================= Test Suite ==============================
804c59
BuildRequires:  perl(Test::More) >= 0.88
804c59
%if %{with perl_Sub_Install_enables_optional_test} && !%{defined perl_bootstrap}
804c59
# ================= Optional Tests ==========================
804c59
# Test::Output -> Sub::Exporter -> Sub::Install
804c59
BuildRequires:  perl(Test::Output)
804c59
%endif
804c59
# ================= Run-time ================================
804c59
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
804c59
Requires:       perl(B)
804c59
804c59
%description
804c59
This module makes it easy to install subroutines into packages without the
804c59
unsightly mess of no strict or typeglobs lying about where just anyone
804c59
can see them.
804c59
804c59
%prep
804c59
%setup -q -n Sub-Install-%{version}
804c59
804c59
%build
804c59
perl Makefile.PL INSTALLDIRS=vendor
804c59
make %{?_smp_mflags}
804c59
804c59
%install
804c59
rm -rf %{buildroot}
804c59
make pure_install DESTDIR=%{buildroot}
804c59
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
804c59
%{_fixperms} %{buildroot}
804c59
804c59
%check
804c59
make test
804c59
804c59
%clean
804c59
rm -rf %{buildroot}
804c59
804c59
%files
804c59
%doc Changes LICENSE README
804c59
%{perl_vendorlib}/Sub/
804c59
%{_mandir}/man3/Sub::Install.3pm*
804c59
804c59
%changelog
804c59
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.928-14
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
804c59
804c59
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.928-13
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
804c59
804c59
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-12
804c59
- Perl 5.26 re-rebuild of bootstrapped packages
804c59
804c59
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-11
804c59
- Perl 5.26 rebuild
804c59
804c59
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.928-10
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
804c59
804c59
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-9
804c59
- Perl 5.24 re-rebuild of bootstrapped packages
804c59
804c59
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-8
804c59
- Perl 5.24 rebuild
804c59
804c59
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.928-7
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
804c59
804c59
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.928-6
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
804c59
804c59
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-5
804c59
- Perl 5.22 re-rebuild of bootstrapped packages
804c59
804c59
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-4
804c59
- Perl 5.22 rebuild
804c59
804c59
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-3
804c59
- Perl 5.20 re-rebuild of bootstrapped packages
804c59
804c59
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-2
804c59
- Perl 5.20 rebuild
804c59
804c59
* Fri Jun 27 2014 Paul Howarth <paul@city-fan.org> - 0.928-1
804c59
- Update to 0.928
804c59
  - Cope with subroutines with spaces in their names when catching warnings
804c59
  - Don't assume that the source sub isn't blessed in tests (!)
804c59
804c59
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.927-3
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
804c59
804c59
* Wed Nov 20 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.927-2
804c59
- Update BRs
804c59
804c59
* Wed Nov 13 2013 Robin Lee <cheeselee@fedoraproject.org> - 0.927-1
804c59
- Update to 0.927
804c59
804c59
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.926-10
804c59
- Perl 5.18 re-rebuild of bootstrapped packages
804c59
804c59
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.926-9
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
804c59
804c59
* Sat Jul 20 2013 Petr Pisar <ppisar@redhat.com> - 0.926-8
804c59
- Perl 5.18 rebuild
804c59
804c59
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.926-7
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
804c59
804c59
* Thu Aug 23 2012 Paul Howarth <paul@city-fan.org> - 0.926-6
804c59
- Be more selective about what to exclude when bootstrapping
804c59
- Don't use macros for commands
804c59
- Drop %%defattr, redundant since rpm 4.4
804c59
- Don't need to remove empty directories from the buildroot
804c59
- Make %%files list more explicit
804c59
- Fix typo in %%description
804c59
804c59
* Mon Aug 20 2012 Petr Pisar <ppisar@redhat.com> - 0.926-5
804c59
- Specify all dependencies
804c59
804c59
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.926-4
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
804c59
804c59
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 0.926-3
804c59
- Perl 5.16 re-rebuild of bootstrapped packages
804c59
804c59
* Sun Jun 10 2012 Petr Pisar <ppisar@redhat.com> - 0.926-2
804c59
- Perl 5.16 rebuild
804c59
804c59
* Mon Mar 12 2012 Robin Lee <cheeselee@fedoraproject.org> - 0.926-1
804c59
- Update to 0.926
804c59
804c59
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.925-10
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
804c59
804c59
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.925-9
804c59
- Perl mass rebuild
804c59
- add perl_bootstrap macro
804c59
- add missing BR ExtUtils::MakeMaker
804c59
804c59
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.925-8
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
804c59
804c59
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.925-7
804c59
- 661697 rebuild for fixing problems with vendorach/lib
804c59
804c59
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.925-6
804c59
- Mass rebuild with perl-5.12.0
804c59
804c59
* Thu Feb 25 2010 Marcela Mašláňová <mmaslano@redhat.com> - 0.925-5
804c59
- add license
804c59
804c59
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.925-4
804c59
- rebuild against perl 5.10.1
804c59
804c59
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.925-3
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
804c59
804c59
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.925-2
804c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
804c59
804c59
* Tue Feb 03 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.925-1
804c59
- update to 0.925
804c59
804c59
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.924-3
804c59
- Rebuild for perl 5.10 (again)
804c59
804c59
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.924-2
804c59
- rebuild for new perl
804c59
- fix license tag
804c59
804c59
* Wed Nov 22 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.924-1
804c59
- update to 0.924
804c59
- add perl(Test::Perl::Critic) to BR's
804c59
804c59
* Wed Sep 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.922-2
804c59
- bump
804c59
804c59
* Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.922-1
804c59
- Specfile autogenerated by cpanspec 1.69.1.