From 40873e8b3b2c7519fc247ef766cd663a7e906168 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 09:31:23 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.0024-1mamba;Fri Oct 31 2014] --- README.md | 2 ++ perl-Plack.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 perl-Plack.spec diff --git a/README.md b/README.md index 3554e03..a347ff2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Plack +Plack - Perl Superglue for Web frameworks and Web Servers (PSGI toolkit). + diff --git a/perl-Plack.spec b/perl-Plack.spec new file mode 100644 index 0000000..d6309ef --- /dev/null +++ b/perl-Plack.spec @@ -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 +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 1.0024-1mamba +- package created using the webbuild interface