8b3cb7a38b
- New upstream release 1.11 - Include all versions of licenses, including the new 4.0 ones - Downgrade the Perl version to 5.6 - Fix links in POD - Minor clean-up of license files
119 lines
4.2 KiB
RPMSpec
119 lines
4.2 KiB
RPMSpec
#TODO: BR: perl(Test::CheckManifest) ≥ 1.24 when available
|
|
|
|
# noarch, but to avoid debug* files interfering with manifest test:
|
|
%global debug_package %{nil}
|
|
|
|
Name: perl-Software-License-CCpack
|
|
Version: 1.11
|
|
Release: 1%{?dist}
|
|
Summary: Software::License pack for Creative Commons' licenses
|
|
License: LGPLv3
|
|
URL: http://search.cpan.org/dist/Software-License-CCpack/
|
|
Source0: http://search.cpan.org/CPAN/authors/id/B/BB/BBYRD/Software-License-CCpack-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
# Module Build
|
|
BuildRequires: perl
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
# Module Runtime
|
|
BuildRequires: perl(base)
|
|
BuildRequires: perl(Software::License)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(warnings)
|
|
# Test Suite
|
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
BuildRequires: perl(IO::Handle)
|
|
BuildRequires: perl(IPC::Open3)
|
|
BuildRequires: perl(List::Util)
|
|
BuildRequires: perl(Test::CheckDeps) >= 0.010
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
# Extra Tests
|
|
BuildRequires: perl(Pod::Coverage::TrustPod)
|
|
BuildRequires: perl(Test::CPAN::Meta::JSON)
|
|
BuildRequires: perl(Test::DistManifest)
|
|
BuildRequires: perl(Test::EOL)
|
|
BuildRequires: perl(Test::MinimumVersion)
|
|
BuildRequires: perl(Test::Mojibake)
|
|
BuildRequires: perl(Test::NoTabs)
|
|
BuildRequires: perl(Test::Pod) >= 1.41
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
|
BuildRequires: perl(Test::Portability::Files)
|
|
BuildRequires: perl(Test::Synopsis)
|
|
BuildRequires: perl(Test::Vars)
|
|
# Runtime
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
%description
|
|
This "license pack" contains all of the licenses from Creative Commons, except
|
|
for CC0, which is already included in Software::License.
|
|
|
|
Note that I don't recommend using these licenses for your own CPAN modules
|
|
(most of the licenses aren't even compatible with CPAN). However, S:L modules
|
|
are useful for more than mere CPAN::Meta::license declaration, so these modules
|
|
exist for those other purposes.
|
|
|
|
%prep
|
|
%setup -q -n Software-License-CCpack-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make pure_install DESTDIR=%{buildroot}
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
%{_fixperms} %{buildroot}
|
|
|
|
%check
|
|
make test
|
|
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" RELEASE_TESTING=1
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README
|
|
%{perl_vendorlib}/Software/
|
|
%{_mandir}/man3/Software::License::CCpack.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_1_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_2_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_3_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_4_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_NC_1_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_NC_2_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_NC_3_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_NC_4_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_NC_ND_2_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_NC_ND_3_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_NC_ND_4_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_NC_SA_1_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_NC_SA_2_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_NC_SA_3_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_NC_SA_4_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_ND_1_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_ND_2_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_ND_3_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_ND_4_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_ND_NC_1_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_SA_1_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_SA_2_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_SA_3_0.3*
|
|
%{_mandir}/man3/Software::License::CC_BY_SA_4_0.3*
|
|
%{_mandir}/man3/Software::License::CC_PDM_1_0.3*
|
|
|
|
%changelog
|
|
* Mon Oct 20 2014 Paul Howarth <paul@city-fan.org> - 1.11-1
|
|
- Update to 1.11
|
|
- Include all versions of licenses, including the new 4.0 ones
|
|
- Downgrade the Perl version to 5.6
|
|
- Fix links in POD
|
|
- Minor clean-up of license files
|
|
|
|
* Tue Oct 7 2014 Paul Howarth <paul@city-fan.org> - 1.01-3
|
|
- Skip the CHANGES file until such time as it has some content (#1148040)
|
|
|
|
* Tue Sep 30 2014 Paul Howarth <paul@city-fan.org> - 1.01-2
|
|
- Sanitize for Fedora submission
|
|
|
|
* Mon Sep 29 2014 Paul Howarth <paul@city-fan.org> - 1.01-1
|
|
- Initial RPM version
|