fcgiwrap-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Summary: A simple FastCGI server for CGI applications.
  2. Summary(ja): CGIアプリケーションを動作させるためのシンプルなFastCGIサーバ
  3. Name: fcgiwrap
  4. Version: 1.0.3
  5. Release: 2%{?_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. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. Packager: tomop
  22. %description
  23. fcgiwrap is a simple server for running CGI applications over FastCGI.
  24. It hopes to provide clean CGI support to Nginx (and other web servers
  25. that may need it).
  26. %description -l ja
  27. fcgiwrapは、Nginx等のCGIをサポートしていないWebサーバ上でCGIアプリケー
  28. ションを動作させるための、シンプルなFastCGIサーバです。
  29. %package nginx
  30. Summary: A Nginx configuration file to use fcgiwrap
  31. Group: System Environment/Daemons
  32. Requires: %{name} = %{version}-%{release}
  33. Requires: nginx
  34. %description nginx
  35. This package contains a Nginx configuration file to use fcgiwrap.
  36. %prep
  37. %setup -q
  38. autoreconf -i
  39. %build
  40. %configure
  41. make
  42. %install
  43. rm -rf %{buildroot}
  44. make DESTDIR=%{buildroot} install
  45. mv %{buildroot}%{_prefix}%{_prefix}/* %{buildroot}%{_prefix}/
  46. mkdir -p %{buildroot}%{_sysconfdir}/{nginx,sysconfig}
  47. mkdir -p %{buildroot}%{_initdir}/
  48. install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/nginx/
  49. install -m755 %{SOURCE2} %{buildroot}%{_initdir}/fcgiwrap
  50. install -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/fcgiwrap
  51. %clean
  52. rm -rf %{buildroot}
  53. %post
  54. /sbin/chkconfig --add fcgiwrap
  55. %preun
  56. if [ $1 -eq 0 ]; then
  57. /sbin/service fcgiwrap stop > /dev/null 2>&1
  58. /sbin/chkconfig --del fcgiwrap
  59. fi
  60. %postun
  61. if [ $1 -ge 1 ]; then
  62. /sbin/service fcgiwrap condrestart 2>&1 >/dev/null
  63. fi
  64. %files
  65. %defattr(-,root,root)
  66. %doc README.rst
  67. %{_sbindir}/fcgiwrap
  68. %{_mandir}/man8/fcgiwrap.8*
  69. %config(noreplace) %{_sysconfdir}/sysconfig/fcgiwrap
  70. %attr(0755,root,root) %{_initdir}/fcgiwrap
  71. %files nginx
  72. %defattr(-,root,root)
  73. %config(noreplace) %{_sysconfdir}/nginx/fcgiwrap_params
  74. %changelog
  75. * Fri Apr 27 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3-2
  76. - fixed configurations.
  77. * Thu May 19 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3-1
  78. - initial built.