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