91 lines
2.7 KiB
RPMSpec
91 lines
2.7 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Plack
|
|
Version: 1.0034
|
|
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
|
|
* Tue Mar 03 2015 Automatic Build System <autodist@mambasoft.it> 1.0034-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sat Nov 01 2014 Automatic Build System <autodist@mambasoft.it> 1.0033-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri Oct 31 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0024-1mamba
|
|
- package created using the webbuild interface
|