perl-PSGI/perl-PSGI.spec
chenyx2012 8f7d4410f8 License compliance rectification
(cherry picked from commit 4334ff91ac1b2666588b75cac3850b1993ec5880)
2024-06-12 10:58:53 +08:00

46 lines
1.4 KiB
RPMSpec

Name: perl-PSGI
Version: 1.102
Release: 2
License: CC-BY-SA-4.0
Summary: Perl Web Server Gateway Interface Specification
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/PSGI-%{version}.tar.gz
URL: https://metacpan.org/release/PSGI
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
BuildRequires: coreutils make perl-interpreter perl-generators perl(inc::Module::Install)
BuildRequires: perl(Module::Install::Metadata) perl(Module::Install::Repository)
BuildRequires: perl(Module::Install::WriteAll) sed
%{?perl_default_filter}
%description
This document specifies a standard interface between web servers and Perl web
applications or frameworks, to promote web application portability and reduce
the duplicated efforts by web application framework developers.
%prep
%setup -q -n PSGI-%{version}
rm -r ./inc/*
sed -i -e '/^inc\//d' MANIFEST
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
* Thu Jul 14 2022 Chenyx <chenyixiong3@huawei.com> - 1.102-2
- License compliance rectification
* Fri May 14 2021 zhangtao <zhangtao307@huawei.com> - 1.102-1
- package init