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