Blame SPECS/perl-Software-License.spec

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