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