!1 package init

From: @tom-tao
Reviewed-by: @myeuler
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2021-05-18 19:08:41 +08:00 committed by Gitee
commit 73aa88534a
2 changed files with 42 additions and 0 deletions

BIN
PSGI-1.102.tar.gz Normal file

Binary file not shown.

42
perl-PSGI.spec Normal file
View File

@ -0,0 +1,42 @@
Name: perl-PSGI
Version: 1.102
Release: 1
License: CC-BY-SA
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
* Fri May 14 2021 zhangtao <zhangtao307@huawei.com> - 1.102-1
- package init