From 920ef30e10913907b030ee81097f8c24c30eb296 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 17 Apr 2015 08:46:44 +0200 Subject: rename php-fastcgi-client to php-adoy-fastcgi-client --- Makefile | 4 +++ php-adoy-fastcgi-client.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 Makefile create mode 100644 php-adoy-fastcgi-client.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/php-adoy-fastcgi-client.spec b/php-adoy-fastcgi-client.spec new file mode 100644 index 0000000..5661cf2 --- /dev/null +++ b/php-adoy-fastcgi-client.spec @@ -0,0 +1,61 @@ +Name: php-fastcgi-client +Summary: Template/Presentation Framework for PHP +Version: 1.0 +Release: 1%{?dist} + +URL: https://github.com/adoy/PHP-FastCGI-Client +License: LGPLv2+ +Group: Development/Libraries +# https://github.com/adoy/PHP-FastCGI-Client/archive/master.tar.gz +Source0: PHP-FastCGI-Client-master.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +Requires: php-cli +Requires: php-spl + + +%description +This PHP class handles the communication with a FastCGI (FCGI) application +using the FastCGI protocol. + +The package provides a simple command line test command: fcgiget. + + +%prep +%setup -qn PHP-FastCGI-Client-master + +# Fix include path +sed -e '/^require/s:fastcgi.php:PHP-FastCGI-Client/fastcgi.php:' \ + -i fcgiget.php + + +%build +# empty build section, nothing required + + +%install +rm -rf %{buildroot} + +# install the class +install -Dpm 644 fastcgi.php %{buildroot}%{_datadir}/php/PHP-FastCGI-Client/fastcgi.php + +# install the command +install -Dpm 755 fcgiget.php %{buildroot}%{_bindir}/fcgiget + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc LICENSE +%{_bindir}/fcgiget +%{_datadir}/php/PHP-FastCGI-Client + + +%changelog +* Tue Oct 13 2012 Remi Collet - 1.0-1 +- Initial package -- cgit