# # spec file for package perl-Software-License-CCpack # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cpan_name Software-License-CCpack Name: perl-Software-License-CCpack Version: 1.110.0 Release: 0 # 1.11 -> normalize -> 1.110.0 %define cpan_version 1.11 License: LGPL-2.1-or-later Summary: Software::License pack for Creative Commons' licenses URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BB/BBYRD/%{cpan_name}-%{cpan_version}.tar.gz Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Software::License) BuildRequires: perl(Test::CheckDeps) >= 0.010 BuildRequires: perl(Test::More) >= 0.94 Requires: perl(Software::License) Provides: perl(Software::License::CC_BY_1_0) = %{version} Provides: perl(Software::License::CC_BY_2_0) = %{version} Provides: perl(Software::License::CC_BY_3_0) = %{version} Provides: perl(Software::License::CC_BY_4_0) = %{version} Provides: perl(Software::License::CC_BY_NC_1_0) = %{version} Provides: perl(Software::License::CC_BY_NC_2_0) = %{version} Provides: perl(Software::License::CC_BY_NC_3_0) = %{version} Provides: perl(Software::License::CC_BY_NC_4_0) = %{version} Provides: perl(Software::License::CC_BY_NC_ND_2_0) = %{version} Provides: perl(Software::License::CC_BY_NC_ND_3_0) = %{version} Provides: perl(Software::License::CC_BY_NC_ND_4_0) = %{version} Provides: perl(Software::License::CC_BY_NC_SA_1_0) = %{version} Provides: perl(Software::License::CC_BY_NC_SA_2_0) = %{version} Provides: perl(Software::License::CC_BY_NC_SA_3_0) = %{version} Provides: perl(Software::License::CC_BY_NC_SA_4_0) = %{version} Provides: perl(Software::License::CC_BY_ND_1_0) = %{version} Provides: perl(Software::License::CC_BY_ND_2_0) = %{version} Provides: perl(Software::License::CC_BY_ND_3_0) = %{version} Provides: perl(Software::License::CC_BY_ND_4_0) = %{version} Provides: perl(Software::License::CC_BY_ND_NC_1_0) = %{version} Provides: perl(Software::License::CC_BY_SA_1_0) = %{version} Provides: perl(Software::License::CC_BY_SA_2_0) = %{version} Provides: perl(Software::License::CC_BY_SA_3_0) = %{version} Provides: perl(Software::License::CC_BY_SA_4_0) = %{version} Provides: perl(Software::License::CC_PDM_1_0) = %{version} Provides: perl(Software::License::CCpack) = %{version} %undefine __perllib_provides %{perl_requires} %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 %autosetup -n %{cpan_name}-%{cpan_version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc cc-license.sh cc-pdmark.sh CHANGES README README.html %license LICENSE %changelog