Browse Source

fcgiwrap-1.0.3-2

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6106 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 12 years ago
parent
commit
17095b7dc7
1 changed files with 97 additions and 0 deletions
  1. 97 0
      f/fcgiwrap/fcgiwrap-vl.spec

+ 97 - 0
f/fcgiwrap/fcgiwrap-vl.spec

@@ -0,0 +1,97 @@
+Summary: A simple FastCGI server for CGI applications.
+Summary(ja): CGIアプリケーションを動作させるためのシンプルなFastCGIサーバ
+Name: fcgiwrap
+Version: 1.0.3
+Release: 2%{?_dist_release}
+License: GPL+
+Group: System Environment/Daemons
+Source0: %{name}-%{version}.tar.gz
+Source1: fcgiwrap_params
+Source2: fcgiwrap.init
+Source3: fcgiwrap.sysconfig
+URL: http://nginx.localdomain.pl/wiki/FcgiWrap
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: spawn-fcgi
+BuildRequires: fcgi-devel
+Requires(post): /sbin/chkconfig
+Requires(preun): /sbin/chkconfig
+Requires(preun): /sbin/service
+
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: tomop
+
+%description
+ fcgiwrap is a simple server for running CGI applications over FastCGI.
+It hopes to provide clean CGI support to Nginx (and other web servers
+that may need it).
+
+%description -l ja
+  fcgiwrapは、Nginx等のCGIをサポートしていないWebサーバ上でCGIアプリケー
+ションを動作させるための、シンプルなFastCGIサーバです。
+
+%package nginx
+Summary: A Nginx configuration file to use fcgiwrap
+Group: System Environment/Daemons
+Requires: %{name} = %{version}-%{release}
+Requires: nginx
+
+%description nginx
+ This package contains a Nginx configuration file to use fcgiwrap.
+
+
+%prep
+%setup -q
+autoreconf -i
+
+%build
+%configure
+make
+
+%install
+rm -rf %{buildroot}
+make DESTDIR=%{buildroot} install
+
+mv %{buildroot}%{_prefix}%{_prefix}/* %{buildroot}%{_prefix}/
+mkdir -p %{buildroot}%{_sysconfdir}/{nginx,sysconfig}
+mkdir -p %{buildroot}%{_initdir}/
+install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/nginx/
+install -m755 %{SOURCE2} %{buildroot}%{_initdir}/fcgiwrap
+install -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/fcgiwrap
+
+%clean
+rm -rf %{buildroot}
+
+%post
+/sbin/chkconfig --add fcgiwrap
+
+%preun
+if [ $1 -eq 0 ]; then
+  /sbin/service fcgiwrap stop > /dev/null 2>&1
+  /sbin/chkconfig --del fcgiwrap
+fi
+
+%postun
+if [ $1 -ge 1 ]; then
+  /sbin/service fcgiwrap condrestart 2>&1 >/dev/null
+fi
+
+%files
+%defattr(-,root,root)
+%doc README.rst
+%{_sbindir}/fcgiwrap
+%{_mandir}/man8/fcgiwrap.8*
+%config(noreplace) %{_sysconfdir}/sysconfig/fcgiwrap
+%attr(0755,root,root) %{_initdir}/fcgiwrap
+
+%files nginx
+%defattr(-,root,root)
+%config(noreplace) %{_sysconfdir}/nginx/fcgiwrap_params
+
+%changelog
+* Fri Apr 27 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3-2
+- fixed configurations.
+
+* Thu May 19 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3-1
+- initial built.
+