[packages/perl-CGI-Fast] - new

baggins baggins at pld-linux.org
Sat Jan 2 10:20:10 CET 2016


commit d0dda02834952e066932bd05de6c179e4e833f78
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jan 2 10:19:49 2016 +0100

    - new

 perl-CGI-Fast.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)
---
diff --git a/perl-CGI-Fast.spec b/perl-CGI-Fast.spec
new file mode 100644
index 0000000..0356b86
--- /dev/null
+++ b/perl-CGI-Fast.spec
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	CGI
+%define		pnam	Fast
+%include	/usr/lib/rpm/macros.perl
+Summary:	CGI::Fast - CGI Interface for Fast CGI
+Name:		perl-CGI-Fast
+Version:	2.10
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/CGI/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	7c1d93600b796b9a0eb6fa3558d3d0c1
+URL:		http://search.cpan.org/dist/CGI-Fast/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-CGI >= 4
+BuildRequires:	perl-FCGI >= 0.67
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+CGI::Fast is a subclass of the CGI object created by CGI.pm.  It is
+specialized to work with the FCGI module, which greatly speeds up CGI
+scripts by turning them into persistently running server processes.
+Scripts that perform time-consuming initialization processes, such as
+loading large modules or opening persistent database connections, will
+see large performance improvements.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/CGI/Fast.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-CGI-Fast.git/commitdiff/d0dda02834952e066932bd05de6c179e4e833f78



More information about the pld-cvs-commit mailing list