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