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