package created using the webbuild interface [release 1.0024-1mamba;Fri Oct 31 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 09:31:23 +01:00
parent 009e5a3d6e
commit 40873e8b3b
2 changed files with 86 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# perl-Plack # perl-Plack
Plack - Perl Superglue for Web frameworks and Web Servers (PSGI toolkit).

84
perl-Plack.spec Normal file
View File

@ -0,0 +1,84 @@
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Plack
Version: 1.0024
Release: 1mamba
Summary: Plack - Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Plack-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: apache-mod_perl
BuildRequires: libperl
BuildRequires: perl-Apache-LogFormat-Compiler
BuildRequires: perl-CGI-Compile
BuildRequires: perl-CGI-Emulate-PSGI
BuildRequires: perl-Devel-StackTrace
BuildRequires: perl-Devel-StackTrace-AsHTML
BuildRequires: perl-FCGI
BuildRequires: perl-File-ShareDir
BuildRequires: perl-HTTP-Body
BuildRequires: perl-HTTP-Date
BuildRequires: perl-HTTP-Message
BuildRequires: perl-Hash-MultiValue
BuildRequires: perl-Module-Refresh
BuildRequires: perl-Stream-Buffered
BuildRequires: perl-Test-TCP
BuildRequires: perl-Try-Tiny
BuildRequires: perl-URI
BuildRequires: perl-devel
BuildRequires: perl-libwww
## AUTOBUILDREQ-END
BuildRequires: perl-File-ShareDir-Install
BuildRequires: perl-Filesys-Notify-Simple
BuildRequires: perl-HTTP-Cookies
Requires: perl >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Plack - Perl Superglue for Web frameworks and Web Servers (PSGI toolkit).
%prep
%setup -q -n Plack-%{version}
%build
%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
rm -f %{buildroot}%{perl_vendorlib}/Plack/Handler/Apache1.pm
rm -f %{buildroot}%{_mandir}/man3/Plack::Handler::Apache1.3pm*
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm -f $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
echo "%dir ${dir#%buildroot}" >> .packlist
done
sed -i "/Apache1/d" .packlist
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f .packlist
%defattr(-,root,root)
%doc LICENSE
## note: eventually add the remaining documents (if any)
# %doc README
%changelog
* Fri Oct 31 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0024-1mamba
- package created using the webbuild interface