mod_wsgi-vl.spec 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. %define httpd apache2
  2. Summary: A WSGI interface for Python web applications in Apache
  3. Summary(ja): Pythonウェブアプリケーション用WSGIインタフェースを実装したApacheモジュール
  4. Name: mod_wsgi
  5. Version: 3.3
  6. Release: 1%{?_dist_release}
  7. License: Apache License Version 2.0
  8. Group: System Environment/Daemons
  9. URL: http://code.google.com/p/modwsgi/
  10. Source: http://modwsgi.googlecode.com/files/%{name}-%{version}.tar.gz
  11. Source1: wsgi.conf
  12. BuildRequires: python-devel
  13. BuildRequires: %{httpd}-devel
  14. Requires: %{httpd}
  15. Requires: python >= 2.3
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. %description
  20. The mod_wsgi adapter is an Apache module that provides a WSGI compliant
  21. interface for hosting Python based web applications within Apache. The
  22. adapter is written completely in C code against the Apache C runtime and
  23. for hosting WSGI applications within Apache has a lower overhead than using
  24. existing WSGI adapters for mod_python or CGI.
  25. %prep
  26. %setup -q
  27. %build
  28. %configure --enable-shared
  29. make %{?_smp_mflags} LDFLAGS="-L%{_libdir}"
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. make install DESTDIR=$RPM_BUILD_ROOT
  33. ## Install the config file
  34. install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/%{httpd}/conf.d
  35. install -p -m 644 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/%{httpd}/conf.d/
  36. %clean
  37. rm -rf $RPM_BUILD_ROOT
  38. %files
  39. %defattr(-,root,root)
  40. %doc LICENCE README
  41. %config(noreplace) %{_sysconfdir}/%{httpd}/conf.d/wsgi.conf
  42. %{_libdir}/%{httpd}/modules/%{name}.so
  43. %changelog
  44. * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 3.3-1
  45. - initial build for Vine Linux
  46. - added wsgi.conf from fedora