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