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