blob: cf8b0c64c8d6216ae8adc7fe5943b5f567b2726a (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# remirepo/fedora spec file for php-adoy-fastcgi-client
#
# Copyright (c) 2012-2017 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%global gh_commit ae8234f0781b6d97e909e45d8a425b9f9bd120bb
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
#global gh_date 20150417
%global gh_owner adoy
%global gh_project PHP-FastCGI-Client
%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
Name: php-adoy-fastcgi-client
Summary: Client for communication with a FastCGI application
Version: 1.0.0
%if 0%{?gh_date}
Release: 0.1.%{gh_date}git%{gh_short}%{?dist}
%else
Release: 1%{?dist}
%endif
URL: https://github.com/adoy/PHP-FastCGI-Client
License: LGPLv2+
Group: Development/Libraries
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: php(language) > 5.3
Requires: php-cli
Requires: php-pcre
Provides: php-composer(adoy/fastcgi-client) = %{version}
%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 -q -n %{gh_project}-%{gh_commit}
# Fix include path
sed -e '/^require/s:src/::' \
-i fcgiget.php
%build
# empty build section, nothing required
%install
rm -rf %{buildroot}
# install the class
mkdir -p %{buildroot}%{_datadir}/php
cp -pr src/Adoy %{buildroot}%{_datadir}/php/Adoy
# install the command
install -Dpm 755 fcgiget.php %{buildroot}%{_bindir}/fcgiget
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README
%doc composer.json
%{_bindir}/fcgiget
%{_datadir}/php/Adoy
%changelog
* Sat May 23 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-1
- version 1.0.0
* Fri Apr 17 2015 Remi Collet <remi@fedoraproject.org> - 1.0-0.1.20150417gitc332dfc
- rename to php-adoy-fastcgi-client
- PSR-0 tree
* Sat Oct 13 2012 Remi Collet <remi@fedoraproject.org> - 1.0-1
- Initial package
|