Blame SPECS/perl-Software-License.spec

02371c
%{?scl:%scl_package perl-Software-License}
02371c
02371c
# We need to patch the test suite if we have an old version of Test::More
02371c
%global old_test_more %(%{?scl:scl enable %{scl} '}perl -MTest::More -e %{?scl:'"}'%{?scl:"'}print (($Test::More::VERSION < 0.88) ? 1 : 0);%{?scl:'"}'%{?scl:"'} 2>/dev/null || echo 0%{?scl:'})
02371c
02371c
Name:           %{?scl_prefix}perl-Software-License
02371c
Version:        0.103012
02371c
Release:        4%{?dist}
02371c
Summary:        Package that provides templated software licenses
02371c
License:        GPL+ or Artistic
02371c
Group:          Development/Libraries
02371c
URL:            http://search.cpan.org/dist/Software-License/
02371c
Source0:        http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Software-License-%{version}.tar.gz
02371c
Patch1:         Software-License-0.103012-old-Test::More.patch
02371c
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
02371c
BuildArch:      noarch
02371c
# Module Build
02371c
BuildRequires:  coreutils
02371c
BuildRequires:  findutils
02371c
BuildRequires:  make
02371c
BuildRequires:  %{?scl_prefix}perl
02371c
BuildRequires:  %{?scl_prefix}perl-generators
02371c
BuildRequires:  %{?scl_prefix}perl(ExtUtils::MakeMaker)
02371c
# Module Runtime
02371c
BuildRequires:  %{?scl_prefix}perl(Carp)
02371c
BuildRequires:  %{?scl_prefix}perl(Data::Section)
02371c
BuildRequires:  %{?scl_prefix}perl(File::Spec)
02371c
BuildRequires:  %{?scl_prefix}perl(IO::Dir)
02371c
BuildRequires:  %{?scl_prefix}perl(Module::Load)
02371c
BuildRequires:  %{?scl_prefix}perl(parent)
02371c
BuildRequires:  %{?scl_prefix}perl(strict)
02371c
BuildRequires:  %{?scl_prefix}perl(Text::Template)
02371c
BuildRequires:  %{?scl_prefix}perl(warnings)
02371c
# Test Suite
02371c
BuildRequires:  %{?scl_prefix}perl(File::Spec)
02371c
BuildRequires:  %{?scl_prefix}perl(Test::More)
02371c
%if !%{defined perl_small}
02371c
BuildRequires:  %{?scl_prefix}perl(Test::Pod)
02371c
%endif
02371c
BuildRequires:  %{?scl_prefix}perl(Try::Tiny)
02371c
# Optional Tests
02371c
%if 0%{!?perl_bootstrap:1} && !%{defined perl_small}
02371c
BuildRequires:  %{?scl_prefix}perl(CPAN::Meta) >= 2.120900
02371c
BuildRequires:  %{?scl_prefix}perl(Software::License::CCpack)
02371c
%endif
02371c
# Runtime
02371c
Requires:       %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
02371c
02371c
%description
02371c
Software-License contains templates for common open source software licenses.
02371c
02371c
%prep
02371c
%setup -q -n Software-License-%{version}
02371c
02371c
# Compatibility with old Test::More versions
02371c
%if %{old_test_more}
02371c
%patch1
02371c
%endif
02371c
02371c
%build
02371c
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'}
02371c
02371c
%install
02371c
rm -rf %{buildroot}
02371c
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=%{buildroot}%{?scl:'}
02371c
find %{buildroot} -type f -name .packlist -delete
02371c
%{_fixperms} %{buildroot}
02371c
02371c
%check
02371c
%{?scl:scl enable %{scl} '}make test%{?scl:'}
02371c
%if !%{defined perl_small}
02371c
%{?scl:scl enable %{scl} '}make test TEST_FILES="$(echo $(find xt/ -name %{?scl:'"}'%{?scl:"'}*.t%{?scl:'"}'%{?scl:"'}))"%{?scl:'}
02371c
%endif
02371c
02371c
%clean
02371c
rm -rf $RPM_BUILD_ROOT
02371c
02371c
%files
02371c
%if 0%{?_licensedir:1}
02371c
%doc LICENSE
02371c
%else
02371c
%doc LICENSE
02371c
%endif
02371c
%doc Changes README
02371c
%{perl_vendorlib}/Software/
02371c
%{_mandir}/man3/Software::License.3*
02371c
%{_mandir}/man3/Software::License::*.3*
02371c
%{_mandir}/man3/Software::LicenseUtils.3*
02371c
02371c
%changelog
02371c
* Tue Jul 19 2016 Petr Pisar <ppisar@redhat.com> - 0.103012-4
02371c
- SCL
02371c
02371c
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.103012-3
02371c
- Perl 5.24 re-rebuild of bootstrapped packages
02371c
02371c
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.103012-2
02371c
- Perl 5.24 rebuild
02371c
02371c
* Sun Apr 24 2016 Paul Howarth <paul@city-fan.org> - 0.103012-1
02371c
- Update to 0.103012
02371c
  - Consider license names without parentheses when scanning text for license
02371c
  - When scanning text for license, put known substrings inside \b..\b
02371c
- Simplify find command using -delete
02371c
- Update patch for building with old Test::More versions
02371c
02371c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.103011-2
02371c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
02371c
02371c
* Sun Jan 17 2016 Paul Howarth <paul@city-fan.org> - 0.103011-1
02371c
- Update to 0.103011
02371c
  - Do not load Sub::Install, since it isn't used!
02371c
  - Eliminate superfluous FULL STOP characters (".")
02371c
- Update patch for building with old Test::More versions
02371c
- Classify buildreqs by usage
02371c
- Use %%doc where possible
02371c
02371c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.103010-5
02371c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
02371c
02371c
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.103010-4
02371c
- Perl 5.22 rebuild
02371c
02371c
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.103010-3
02371c
- Perl 5.20 rebuild
02371c
02371c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.103010-2
02371c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
02371c
02371c
* Sun Mar 30 2014 Paul Howarth <paul@city-fan.org> - 0.103010-1
02371c
- Update to 0.103010
02371c
  - Fix guess_license_from_pod's return on GPL licenses
02371c
- Update patch for building with old Test::More versions
02371c
02371c
* Fri Feb 21 2014 Paul Howarth <paul@city-fan.org> - 0.103009-1
02371c
- Update to 0.103009
02371c
  - Updated FSF mailing address in license text for GFDL version 1.2, GPL
02371c
    versions 1 and 2, and LGPL 2.1
02371c
- Update patch for building with old Test::More versions
02371c
- Don't try to run the extra tests with EL-5 or EL-6
02371c
02371c
* Sun Nov 17 2013 Paul Howarth <paul@city-fan.org> - 0.103008-1
02371c
- Update to 0.103008
02371c
  - Faster!
02371c
  - Add new_from_short_name to LicenseUtils for spdx.org-style short names
02371c
  - Avoid double trailing dots in expanded licenses
02371c
  - Fix some errors in (3-clause) BSD license text
02371c
  - The 2-clause BSD ("FreeBSD") license no longer incorrectly puts "FreeBSD"
02371c
    as the owner in the license full text
02371c
- Update patch for building with old Test::More versions
02371c
02371c
* Sun Oct 27 2013 Paul Howarth <paul@city-fan.org> - 0.103007-1
02371c
- Update to 0.103007
02371c
  - Fix regex to allow guessing from meta things like perl_5
02371c
  - Replace 'use base' with 'use parent'
02371c
- BR: perl(Try::Tiny) for the test suite
02371c
- Update patch for building with old Test::More versions
02371c
02371c
* Mon Oct 21 2013 Paul Howarth <paul@city-fan.org> - 0.103006-2
02371c
- Update patch for building with old Test::More versions
02371c
- Update core buildreqs for completeness
02371c
02371c
* Mon Oct 21 2013 Daniel P. Berrange <berrange@redhat.com> - 0.103006-1
02371c
* Update to 0.103006 release (rhbz #1021385)
02371c
02371c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.103005-4
02371c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
02371c
02371c
* Mon Jul 22 2013 Petr Pisar <ppisar@redhat.com> - 0.103005-3
02371c
- Perl 5.18 rebuild
02371c
02371c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.103005-2
02371c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
02371c
02371c
* Sat Dec  8 2012 Paul Howarth <paul@city-fan.org> - 0.103005-1
02371c
- Update to 0.103005
02371c
  - Add MPL 2.0
02371c
- BR: perl(File::Temp)
02371c
- Release tests moved to xt/
02371c
- Update patch for building with old Test::More versions
02371c
02371c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.103004-4
02371c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
02371c
02371c
* Thu Jun 14 2012 Petr Pisar <ppisar@redhat.com> - 0.103004-3
02371c
- Perl 5.16 rebuild
02371c
02371c
* Wed Mar  7 2012 Paul Howarth <paul@city-fan.org> - 0.103004-2
02371c
- Add test suite patch to support building with Test::More < 0.88 so that we
02371c
  can build for EPEL-5, only applying the patch when necessary
02371c
- Drop redundant versioned requirements of XXX >= 0.000
02371c
- Drop BR: perl ≥ 1:5.6.0; even EL-3 could have satisfied that
02371c
- BR: perl(base) and perl(Carp), which could be dual-lived
02371c
- BR: perl(Test::Pod) for full test coverage
02371c
- Run the release tests too
02371c
- Don't need to remove empty directories from buildroot
02371c
- Don't use macros for commands
02371c
- Use DESTDIR rather than PERL_INSTALL_ROOT
02371c
- Drop %%defattr, redundant since rpm 4.4
02371c
- Make %%files list more explicit
02371c
02371c
* Mon Jan 30 2012 Daniel P. Berrange <berrange@redhat.com> - 0.103004-1
02371c
- Update to 0.103004 release (rhbz #750790)
02371c
02371c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.103002-2
02371c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
02371c
02371c
* Sat Sep 03 2011 Iain Arnell <iarnell@gmail.com> 0.103002-1
02371c
- update to latest upstream version
02371c
02371c
* Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.102341-4
02371c
- Perl mass rebuild
02371c
02371c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.102341-3
02371c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
02371c
02371c
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.102341-2
02371c
- 661697 rebuild for fixing problems with vendorach/lib
02371c
02371c
* Fri Dec 17 2010 Daniel P. Berrange <berrange@redhat.com> - 0.102341-1
02371c
- Update to 0.102341 release
02371c
02371c
* Wed Jun 02 2010 Iain Arnell <iarnell@gmail.com> 0.101410-1
02371c
- update to 0.101410 release
02371c
02371c
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.012-4
02371c
- Mass rebuild with perl-5.12.0
02371c
02371c
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.012-3
02371c
- rebuild against perl 5.10.1
02371c
02371c
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.012-2
02371c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
02371c
02371c
* Wed Jul 22 2009 Daniel P. Berrange <berrange@redhat.com> - 0.012-1
02371c
- Update to 0.012 release
02371c
02371c
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.008-4
02371c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
02371c
02371c
* Sat Sep 20 2008 Daniel P. Berrange <berrange@redhat.com> 0.008-3
02371c
- Remove explicit requires that duplicate automatic perl deps
02371c
02371c
* Sat Sep 06 2008 Daniel P. Berrange <berrange@redhat.com> 0.008-2
02371c
- Fix description
02371c
- Add missing Test::More BR
02371c
02371c
* Fri Sep 05 2008 Daniel P. Berrange <berrange@redhat.com> 0.008-1
02371c
- Specfile autogenerated by cpanspec 1.77.