1 | Summary: A simple FastCGI server for CGI applications. |
---|
2 | Summary(ja): CGIアプリケーションを動作させるためのシンプルなFastCGIサーバ |
---|
3 | Name: fcgiwrap |
---|
4 | Version: 1.1.0 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: GPL+ |
---|
7 | Group: System Environment/Daemons |
---|
8 | Source0: %{name}-%{version}.tar.gz |
---|
9 | Source1: fcgiwrap_params |
---|
10 | Source2: fcgiwrap.init |
---|
11 | Source3: fcgiwrap.sysconfig |
---|
12 | URL: http://nginx.localdomain.pl/wiki/FcgiWrap |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
14 | Requires: spawn-fcgi |
---|
15 | BuildRequires: fcgi-devel |
---|
16 | Requires(post): /sbin/chkconfig |
---|
17 | Requires(preun): /sbin/chkconfig |
---|
18 | Requires(preun): /sbin/service |
---|
19 | |
---|
20 | Vendor: Project Vine |
---|
21 | Distribution: Vine Linux |
---|
22 | Packager: tomop |
---|
23 | |
---|
24 | %description |
---|
25 | fcgiwrap is a simple server for running CGI applications over FastCGI. |
---|
26 | It hopes to provide clean CGI support to Nginx (and other web servers |
---|
27 | that may need it). |
---|
28 | |
---|
29 | %description -l ja |
---|
30 | fcgiwrapは、Nginx等のCGIをサポートしていないWebサーバ上でCGIアプリケー |
---|
31 | ションを動作させるための、シンプルなFastCGIサーバです。 |
---|
32 | |
---|
33 | %package nginx |
---|
34 | Summary: A Nginx configuration file to use fcgiwrap |
---|
35 | Group: System Environment/Daemons |
---|
36 | Requires: %{name} = %{version}-%{release} |
---|
37 | Requires: nginx |
---|
38 | |
---|
39 | %description nginx |
---|
40 | This package contains a Nginx configuration file to use fcgiwrap. |
---|
41 | |
---|
42 | |
---|
43 | %prep |
---|
44 | %setup -q |
---|
45 | autoreconf -i |
---|
46 | |
---|
47 | %build |
---|
48 | %configure |
---|
49 | make |
---|
50 | |
---|
51 | %install |
---|
52 | rm -rf %{buildroot} |
---|
53 | make DESTDIR=%{buildroot} install |
---|
54 | |
---|
55 | mv %{buildroot}%{_prefix}%{_prefix}/* %{buildroot}%{_prefix}/ |
---|
56 | mkdir -p %{buildroot}%{_sysconfdir}/{nginx,sysconfig} |
---|
57 | mkdir -p %{buildroot}%{_initdir}/ |
---|
58 | install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/nginx/ |
---|
59 | install -m755 %{SOURCE2} %{buildroot}%{_initdir}/fcgiwrap |
---|
60 | install -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/fcgiwrap |
---|
61 | |
---|
62 | %clean |
---|
63 | rm -rf %{buildroot} |
---|
64 | |
---|
65 | %post |
---|
66 | /sbin/chkconfig --add fcgiwrap |
---|
67 | |
---|
68 | %preun |
---|
69 | if [ $1 -eq 0 ]; then |
---|
70 | /sbin/service fcgiwrap stop > /dev/null 2>&1 |
---|
71 | /sbin/chkconfig --del fcgiwrap |
---|
72 | fi |
---|
73 | |
---|
74 | %postun |
---|
75 | if [ $1 -ge 1 ]; then |
---|
76 | /sbin/service fcgiwrap condrestart 2>&1 >/dev/null |
---|
77 | fi |
---|
78 | |
---|
79 | %files |
---|
80 | %defattr(-,root,root) |
---|
81 | %doc README.rst |
---|
82 | %{_sbindir}/fcgiwrap |
---|
83 | %{_mandir}/man8/fcgiwrap.8* |
---|
84 | %config(noreplace) %{_sysconfdir}/sysconfig/fcgiwrap |
---|
85 | %attr(0755,root,root) %{_initdir}/fcgiwrap |
---|
86 | |
---|
87 | %files nginx |
---|
88 | %defattr(-,root,root) |
---|
89 | %config(noreplace) %{_sysconfdir}/nginx/fcgiwrap_params |
---|
90 | |
---|
91 | %changelog |
---|
92 | * Sun Jan 12 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.0-1 |
---|
93 | - new upstream release. |
---|
94 | |
---|
95 | * Fri Apr 27 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3-2 |
---|
96 | - fixed configurations. |
---|
97 | |
---|
98 | * Thu May 19 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3-1 |
---|
99 | - initial built. |
---|
100 | |
---|