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