2023-04-23 03:46:35 +08:00
|
|
|
%global cpanname Software-License
|
2023-04-23 08:02:22 +08:00
|
|
|
%if 0%{!?perl5_cpanlic:1} == 1
|
|
|
|
%global perl5_cpanlic %{_datadir}/licenses-cpan-common
|
|
|
|
%endif
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
Name: perl-%{cpanname}
|
|
|
|
Version: 0.104002
|
2023-04-24 02:00:47 +08:00
|
|
|
Release: %{?repo}0.rc1%{?dist}
|
2023-04-23 03:46:35 +08:00
|
|
|
Summary: packages that provide templated software licenses
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
2023-04-24 02:00:47 +08:00
|
|
|
License: GPL-1.0-or-later or Artistic-1.0-Perl
|
2023-04-23 03:46:35 +08:00
|
|
|
URL: https://metacpan.org/dist/Software-License
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/Software-License-0.104002.tar.gz
|
|
|
|
### AGPL
|
|
|
|
Source21: AGPL-3.0.txt
|
|
|
|
### Apache
|
|
|
|
Source22: Apache-1.1.txt
|
|
|
|
Source23: Apache-2.0.txt
|
|
|
|
### Artistic
|
|
|
|
Source24: Artistic-1.0-Perl.txt
|
|
|
|
Source25: Artistic-2.0.txt
|
|
|
|
### BSD
|
|
|
|
Source26: BSD-3-Clause.txt
|
|
|
|
### CC0
|
|
|
|
Source27: CC0-1.0.txt
|
|
|
|
### EUPL
|
|
|
|
Source28: EUPL-1.1.txt
|
|
|
|
Source29: EUPL-1.2.txt
|
|
|
|
### FreeBSD
|
|
|
|
Source30: BSD-2-Clause.txt
|
|
|
|
### GFDL
|
|
|
|
Source31: GFDL-1.2.txt
|
|
|
|
Source32: GFDL-1.3.txt
|
|
|
|
### GPL
|
|
|
|
Source33: GPL-1.0.txt
|
|
|
|
Source34: GPL-2.0.txt
|
|
|
|
Source35: GPL-3.0.txt
|
|
|
|
### ISC
|
|
|
|
Source36: ISC.txt
|
|
|
|
# LGPL
|
|
|
|
Source37: LGPL-2.1.txt
|
|
|
|
Source38: LGPL-3.0.txt
|
|
|
|
# MIT
|
|
|
|
Source39: MIT.txt
|
|
|
|
# Mozilla
|
|
|
|
Source40: MPL-1.0.txt
|
|
|
|
Source41: MPL-1.1.txt
|
|
|
|
Source42: MPL-2.0.txt
|
|
|
|
# both OpenSSL and SSLeay
|
|
|
|
Source43: OpenSSL.txt
|
|
|
|
Source44: SSLeay.txt
|
|
|
|
# Perl 5
|
|
|
|
Source45: Perl5-License.txt
|
|
|
|
### PostgreSQL
|
|
|
|
Source46: PostgreSQL.txt
|
|
|
|
### QPL
|
|
|
|
Source47: QPL-1.0.txt
|
|
|
|
### Zlib
|
|
|
|
Source49: Zlib.txt
|
|
|
|
|
2023-04-24 02:00:47 +08:00
|
|
|
BuildRequires: python-devel
|
2023-04-23 03:46:35 +08:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
|
|
|
|
# for test
|
2023-04-23 08:02:22 +08:00
|
|
|
%if 0%{?runtests:1} == 1
|
2023-04-23 03:46:35 +08:00
|
|
|
BuildRequires: perl(Test::More) perl(warnings)
|
|
|
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
BuildRequires: perl(Try::Tiny)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Data::Section)
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(IO::Dir)
|
|
|
|
BuildRequires: perl(Module::Load)
|
|
|
|
BuildRequires: perl(parent)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
BuildRequires: perl(Text::Template)
|
2023-04-23 08:02:22 +08:00
|
|
|
%endif
|
2023-04-23 03:46:35 +08:00
|
|
|
# runtime
|
|
|
|
Requires: perl(Carp)
|
|
|
|
Requires: perl(Data::Section)
|
|
|
|
Requires: perl(Text::Template)
|
|
|
|
Requires: perl(File::Spec)
|
|
|
|
Requires: perl(IO::Dir)
|
|
|
|
Requires: perl(Module::Load)
|
|
|
|
Requires: perl(parent)
|
|
|
|
Requires: perl(strict)
|
|
|
|
Requires: perl(utf8)
|
|
|
|
Requires: perl(warnings)
|
|
|
|
# keep the two packages in sync
|
|
|
|
Requires: common-CPAN-licenses = %{version}-%{release}
|
2023-04-24 02:00:47 +08:00
|
|
|
%if 0%{?perl5_API:1} == 1
|
|
|
|
Requires: %{perl5_API}
|
|
|
|
%endif
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides templated software licenses.
|
|
|
|
|
|
|
|
%package -n common-CPAN-licenses
|
|
|
|
Summary: License files commonly used in CPAN modules
|
|
|
|
Group: Legal/Licenses
|
|
|
|
License: Not-Applicable
|
|
|
|
|
|
|
|
%description -n common-CPAN-licenses
|
|
|
|
This package contains the text format version of license files for
|
|
|
|
software licenses that are likely to be encountered in packages on
|
|
|
|
the Comprehensive Perl Archive Network.
|
|
|
|
|
|
|
|
This package is provided as a convenience for the handful of cases
|
|
|
|
where a CPAN module specifies a license but does not include the text
|
|
|
|
of the license in the module source.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n %{cpanname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
2023-04-24 02:00:47 +08:00
|
|
|
%if 0%{?runtests:1} == 1
|
2023-04-23 03:46:35 +08:00
|
|
|
make test > %{name}-make.test.log 2>&1
|
2023-04-24 02:00:47 +08:00
|
|
|
%else
|
|
|
|
echo "make test not run during package build." > %{name}-make.test.log
|
|
|
|
%endif
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
A handful of perl modules on CPAN specify a license but do not actually
|
|
|
|
include a LICENSE or COPYING file with the text of the license.
|
|
|
|
|
|
|
|
In such cases, there is a good chance you can find the text of the
|
|
|
|
license within one of the sub-directories here.
|
|
|
|
|
|
|
|
The directories are named using the conventions of the Software::License
|
|
|
|
perl module (e.g. FreeBSD for the BSD 2-Clause license) but uses
|
|
|
|
the SPDX version 3 identifier for the name of the licence file.
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
#AGPL
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/AGPL
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/AGPL/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of this license file is provided for your convenience.
|
|
|
|
The official source for this license file, also available in other
|
|
|
|
file formats and lanuages, is:
|
|
|
|
|
|
|
|
https://www.gnu.org/licenses/licenses.html
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE21} %{buildroot}%{perl5_cpanlic}/AGPL/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#Apache
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/Apache
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/Apache/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of these license files are provided for your convenience.
|
|
|
|
The official source for these license files is:
|
|
|
|
|
|
|
|
https://www.apache.org/licenses/
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE22} %{buildroot}%{perl5_cpanlic}/Apache/
|
|
|
|
install -m644 %{SOURCE23} %{buildroot}%{perl5_cpanlic}/Apache/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#Artistic
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/Artistic
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/Artistic/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of these license files are provided for your convenience.
|
|
|
|
The official source for these license files is:
|
|
|
|
|
|
|
|
https://www.perlfoundation.org/artistic-license-10.html
|
|
|
|
|
|
|
|
https://www.perlfoundation.org/artistic-license-20.html
|
|
|
|
|
|
|
|
There are three commonly found versions of the Artistic 1.0 license.
|
|
|
|
The version here is the version that is found in the Perl source
|
|
|
|
tarball.
|
|
|
|
|
|
|
|
It should be noted that many Free Libre Open Source Software experts
|
|
|
|
and projects do not consider the Artistic 1.0 license to be a free
|
|
|
|
software license and only consider software licensed with the Artistic
|
|
|
|
1.0 license to be "FLOSS" if it is dual-licensed with another license
|
|
|
|
that is a free software license (such as a GPL license).
|
|
|
|
|
|
|
|
The Artistic 2.0 license however is generally considered to be a free
|
|
|
|
software license.
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE24} %{buildroot}%{perl5_cpanlic}/Artistic/
|
|
|
|
install -m644 %{SOURCE25} %{buildroot}%{perl5_cpanlic}/Artistic/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#BSD
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/BSD
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/BSD/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of this license file is provided for your convenience.
|
|
|
|
The Open Source Initiative web page for this license:
|
|
|
|
|
|
|
|
https://opensource.org/license/bsd-3-clause/
|
|
|
|
|
|
|
|
There are several variations of the BSD-3-Clause license. The variation
|
|
|
|
here is the variation from the above website.
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE26} %{buildroot}%{perl5_cpanlic}/BSD/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#CC0
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/CC0
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/CC0/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of this license file is provided for your convenience.
|
|
|
|
The official source for this license file is:
|
|
|
|
|
|
|
|
https://creativecommons.org/share-your-work/public-domain/cc0/
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE27} %{buildroot}%{perl5_cpanlic}/CC0/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#EUPL
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/EUPL
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/EUPL/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of these licenses are provided for your convenience.
|
|
|
|
For official information on the EUPL, please see:
|
|
|
|
|
|
|
|
https://commission.europa.eu/content/european-union-public-licence_en
|
|
|
|
|
|
|
|
For both PDF and text versions of the 1.2 version in multiple languages,
|
|
|
|
please see:
|
|
|
|
|
|
|
|
https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE28} %{buildroot}%{perl5_cpanlic}/EUPL/
|
|
|
|
install -m644 %{SOURCE29} %{buildroot}%{perl5_cpanlic}/EUPL/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#FreeBSD
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/FreeBSD
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/FreeBSD/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of this license file is provided for your convenience.
|
|
|
|
The Open Source Initiative web page for this license:
|
|
|
|
|
|
|
|
https://opensource.org/license/bsd-2-clause/
|
|
|
|
|
|
|
|
There are several variations of the BSD-2-Clause license. The variation
|
|
|
|
here is the variation from the above website.
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE30} %{buildroot}%{perl5_cpanlic}/FreeBSD/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#GFDL
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/GFDL
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/GFDL/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of these license files are provided for your convenience.
|
|
|
|
The official source for these license files, also available in other
|
|
|
|
file formats and lanuages, is:
|
|
|
|
|
|
|
|
https://www.gnu.org/licenses/licenses.html
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE31} %{buildroot}%{perl5_cpanlic}/GFDL/
|
|
|
|
install -m644 %{SOURCE32} %{buildroot}%{perl5_cpanlic}/GFDL/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#GPL
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/GPL
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/GPL/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of these license files are provided for your convenience.
|
|
|
|
The official source for these license files, also available in other
|
|
|
|
file formats and lanuages, is:
|
|
|
|
|
|
|
|
https://www.gnu.org/licenses/licenses.html
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE33} %{buildroot}%{perl5_cpanlic}/GPL/
|
|
|
|
install -m644 %{SOURCE34} %{buildroot}%{perl5_cpanlic}/GPL/
|
|
|
|
install -m644 %{SOURCE35} %{buildroot}%{perl5_cpanlic}/GPL/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#ISC
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/ISC
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/ISC/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of this license file is provided for your convenience.
|
|
|
|
The Open Source Initiative web page for this license:
|
|
|
|
|
|
|
|
https://opensource.org/license/isc-license-txt/
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE36} %{buildroot}%{perl5_cpanlic}/ISC/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#LGPL
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/LGPL
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/LGPL/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of these license files are provided for your convenience.
|
|
|
|
The official source for these license files, also available in other
|
|
|
|
file formats and lanuages, is:
|
|
|
|
|
|
|
|
https://www.gnu.org/licenses/licenses.html
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE37} %{buildroot}%{perl5_cpanlic}/LGPL/
|
|
|
|
install -m644 %{SOURCE38} %{buildroot}%{perl5_cpanlic}/LGPL/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#MIT
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/MIT
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/MIT/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of this license file is provided for your convenience.
|
|
|
|
The Open Source Initiative web page for this license:
|
|
|
|
|
|
|
|
https://opensource.org/license/mit/
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE39} %{buildroot}%{perl5_cpanlic}/MIT/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#MPL
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/MPL
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/MPL/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of these license files are provided for your convenience.
|
|
|
|
The official source for these license files is:
|
|
|
|
|
|
|
|
https://www.mozilla.org/en-US/MPL/
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE40} %{buildroot}%{perl5_cpanlic}/MPL/
|
|
|
|
install -m644 %{SOURCE41} %{buildroot}%{perl5_cpanlic}/MPL/
|
|
|
|
install -m644 %{SOURCE42} %{buildroot}%{perl5_cpanlic}/MPL/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#OpenSSL
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/OpenSSL
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/OpenSSL/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of this license file is provided for your convenience.
|
|
|
|
The official source for the license can be found at:
|
|
|
|
|
|
|
|
https://www.openssl.org/source/license.html
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE43} %{buildroot}%{perl5_cpanlic}/OpenSSL/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#SSLeay
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/SSLeay
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/SSLeay/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of this license file is provided for your convenience.
|
|
|
|
The official source for the license can be found at:
|
|
|
|
|
|
|
|
https://www.openssl.org/source/license.html
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE44} %{buildroot}%{perl5_cpanlic}/SSLeay/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#Perl5
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/Perl5
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/Perl5/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
There is technically no such thing as a "Perl 5" license. However many
|
|
|
|
Perl modules simply state they are licensed under the same terms as
|
|
|
|
Perl 5 itself.
|
|
|
|
|
|
|
|
Perl 5 is dual-licensed Artistic-1.0-Perl and GPL-1.0.
|
|
|
|
|
|
|
|
The text format of these license files are provided for your convenience
|
|
|
|
along with the portion of the Pearl 5 README file that specifies the
|
|
|
|
dual license for Perl 5.
|
|
|
|
|
|
|
|
More information on Perl licensing can be found at:
|
|
|
|
|
|
|
|
https://dev.perl.org/licenses/
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE45} %{buildroot}%{perl5_cpanlic}/Perl5/
|
|
|
|
install -m644 %{SOURCE24} %{buildroot}%{perl5_cpanlic}/Perl5/
|
|
|
|
install -m644 %{SOURCE33} %{buildroot}%{perl5_cpanlic}/Perl5/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#PostgreSQL
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/PostgreSQL
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/PostgreSQL/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of this license file is provided for your convenience.
|
|
|
|
The official source for the license can be found at:
|
|
|
|
|
|
|
|
https://www.postgresql.org/about/licence/
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE46} %{buildroot}%{perl5_cpanlic}/PostgreSQL/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#QPL
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/QPL
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/QPL/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of this license file is provided for your convenience.
|
|
|
|
The Open Source Initiative web page for this license:
|
|
|
|
|
|
|
|
https://opensource.org/license/qpl-1.0/
|
|
|
|
|
|
|
|
It should be noted that many Free Libre Open Source Software experts
|
|
|
|
and projects do not consider the QPL 1.0 license to be a free software
|
|
|
|
license and only consider software licensed with the QPL 1.0 license
|
|
|
|
to be "FLOSS" if it is dual-licensed with another license that is a
|
|
|
|
free software license (such as a GPL license).
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE47} %{buildroot}%{perl5_cpanlic}/QPL/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
#Zlib
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m755 -d %{buildroot}%{perl5_cpanlic}/Zlib
|
|
|
|
cat > %{buildroot}%{perl5_cpanlic}/Zlib/README.txt << "EOF"
|
2023-04-23 03:46:35 +08:00
|
|
|
The text format of this license file is provided for your convenience.
|
|
|
|
The Open Source Initiative web page for this license:
|
|
|
|
|
|
|
|
https://opensource.org/license/zlib-license-php/
|
|
|
|
|
|
|
|
EOF
|
2023-04-23 08:02:22 +08:00
|
|
|
install -m644 %{SOURCE49} %{buildroot}%{perl5_cpanlic}/Zlib/
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{perl5_vendorlib}/Software
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/LicenseUtils.pm
|
|
|
|
%dir %{perl5_vendorlib}/Software/License
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/Custom.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/None.pm
|
|
|
|
# Standard Licenses
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/AGPL_3.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/Apache_1_1.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/Apache_2_0.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/Artistic_1_0.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/Artistic_2_0.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/BSD.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/CC0_1_0.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/EUPL_1_1.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/EUPL_1_2.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/FreeBSD.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/GFDL_1_2.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/GFDL_1_3.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/GPL_1.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/GPL_2.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/GPL_3.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/ISC.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/LGPL_2_1.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/LGPL_3_0.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/MIT.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/Mozilla_1_0.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/Mozilla_1_1.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/Mozilla_2_0.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/OpenSSL.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/SSLeay.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/Perl_5.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/PostgreSQL.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/QPL_1_0.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/Sun.pm
|
|
|
|
%attr(0444,root,root) %{perl5_vendorlib}/Software/License/Zlib.pm
|
|
|
|
# man files
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::Custom.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::None.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::LicenseUtils.3*
|
|
|
|
# Standard Licenses
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::AGPL_3.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::Apache_1_1.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::Apache_2_0.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::Artistic_1_0.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::Artistic_2_0.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::BSD.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::CC0_1_0.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::EUPL_1_1.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::EUPL_1_2.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::FreeBSD.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::GFDL_1_2.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::GFDL_1_3.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::GPL_1.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::GPL_2.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::GPL_3.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::ISC.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::LGPL_2_1.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::LGPL_3_0.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::MIT.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::Mozilla_1_0.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::Mozilla_1_1.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::Mozilla_2_0.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::OpenSSL.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::SSLeay.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::Perl_5.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::PostgreSQL.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::QPL_1_0.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::Sun.3*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/Software::License::Zlib.3*
|
|
|
|
# meta
|
|
|
|
%license LICENSE
|
|
|
|
%doc %{name}-make.test.log
|
|
|
|
%doc Changes LICENSE README
|
|
|
|
|
|
|
|
%files -n common-CPAN-licenses
|
|
|
|
%defattr(-,root,root,-)
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/README.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 21
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/AGPL
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/AGPL/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/AGPL/AGPL-3.0.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 22,23
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/Apache
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Apache/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Apache/Apache-1.1.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Apache/Apache-2.0.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 24,25
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/Artistic
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Artistic/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Artistic/Artistic-1.0-Perl.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Artistic/Artistic-2.0.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 26
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/BSD
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/BSD/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/BSD/BSD-3-Clause.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 27
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/CC0
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/CC0/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/CC0/CC0-1.0.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 28,29
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/EUPL
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/EUPL/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/EUPL/EUPL-1.1.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/EUPL/EUPL-1.2.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 30
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/FreeBSD
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/FreeBSD/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/FreeBSD/BSD-2-Clause.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 31,32
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/GFDL
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/GFDL/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/GFDL/GFDL-1.2.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/GFDL/GFDL-1.3.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 33,34,35
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/GPL
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/GPL/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/GPL/GPL-1.0.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/GPL/GPL-2.0.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/GPL/GPL-3.0.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 36
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/ISC
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/ISC/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/ISC/ISC.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 37,38
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/LGPL
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/LGPL/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/LGPL/LGPL-2.1.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/LGPL/LGPL-3.0.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 39
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/MIT
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/MIT/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/MIT/MIT.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 40,41,42
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/MPL
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/MPL/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/MPL/MPL-1.0.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/MPL/MPL-1.1.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/MPL/MPL-2.0.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 43
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/OpenSSL
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/OpenSSL/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/OpenSSL/OpenSSL.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 44
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/SSLeay
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/SSLeay/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/SSLeay/SSLeay.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source 45 24 33
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/Perl5
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Perl5/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Perl5/Perl5-License.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Perl5/Artistic-1.0-Perl.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Perl5/GPL-1.0.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source46
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/PostgreSQL
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/PostgreSQL/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/PostgreSQL/PostgreSQL.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source47
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/QPL
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/QPL/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/QPL/QPL-1.0.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
# Source48
|
|
|
|
# Source49
|
2023-04-23 08:02:22 +08:00
|
|
|
%dir %{perl5_cpanlic}/Zlib
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Zlib/README.txt
|
|
|
|
%attr(0644,root,root) %{perl5_cpanlic}/Zlib/Zlib.txt
|
2023-04-23 03:46:35 +08:00
|
|
|
|
|
|
|
%changelog
|
2023-04-24 02:00:47 +08:00
|
|
|
* Sun Apr 23 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.104002-0.rc1
|
2023-04-23 08:02:22 +08:00
|
|
|
- Use %%{perl5_cpanlic} macro
|
|
|
|
- Conditionally run tests
|
2023-04-24 02:00:47 +08:00
|
|
|
- BuildRequires perl-devel
|
|
|
|
- Requires %%perl5_API
|
2023-04-23 08:02:22 +08:00
|
|
|
|
|
|
|
* Sat Apr 22 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.104002-0.dev1
|
2023-04-23 03:46:35 +08:00
|
|
|
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|