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