kind: autotools
depends:
- tools.bst
- pcre-utils.bst
- python2-core.bst
- unmaintained/apache-httpd-server/apr.bst
- unmaintained/apache-httpd-server/httpd-server.bst
- unmaintained/apache-httpd-server/mod_wsgi-metrics.bst
sources:
- kind: git
  url: upstream:python-packages/mod_wsgi
  track: 4.4.5
  ref: 1be8b37aaf07d8cb3083da99d6fda12375221b07
config:
  configure-commands:
  - |
    ./configure --prefix="%{prefix}" \
                --with-apxs=/usr/bin/apxs
  install-commands:
    (>):
    - |
      install -D -m 644 /proc/self/fd/0 <<'EOF' "%{install-root}"/etc/httpd/conf.d/wsgi.conf
      # NOTE: mod_wsgi can not coexist in the same apache process as
      # mod_wsgi_python3.  Only load if mod_wsgi_python3 is not
      # already loaded.

      <IfModule !wsgi_module>
      LoadModule wsgi_module /usr/lib/httpd/modules/mod_wsgi.so
      </IfModule>
      EOF
