summaryrefslogtreecommitdiffstats
path: root/php-adoy-fastcgi-client.spec
blob: 5661cf208082b8e4445c9d02e0fabf61dcd4dbff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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 <remi@fedoraproject.org> - 1.0-1
- Initial package