source: projects/specs/branches/6/f/fcgiwrap/fcgiwrap-vl.spec @ 6109

Revision 6109, 2.5 KB checked in by tomop, 12 years ago (diff)

fcgiwrap-1.0.3-2, memcached-1.4.13-1

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