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