diff --git a/PSGI-1.102.tar.gz b/PSGI-1.102.tar.gz new file mode 100644 index 0000000..3e61a5b Binary files /dev/null and b/PSGI-1.102.tar.gz differ diff --git a/perl-PSGI.spec b/perl-PSGI.spec new file mode 100644 index 0000000..c43a9d4 --- /dev/null +++ b/perl-PSGI.spec @@ -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 - 1.102-1 +- package init