ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Ostanin <vyt@vzljot.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: [devel] Re: mod_python for apache2
Date: Wed, 13 Apr 2005 17:52:37 +0400
Message-ID: <425D2425.50304@vzljot.ru> (raw)
In-Reply-To: <425C74DE.4090503@altlinux.ru>


[-- Attachment #1.1: Type: text/plain, Size: 639 bytes --]

Ivan Fedorov пишет:
> Vitaly Ostanin пишет:
>
>
>>Скажите, у нас нет mod_python для apache2 потому что никому не
>>нужен, или с ним какие-то проблемы?
>
>
> Собрать у меня его с ходу не получилось. Он падал. Да еще и конфликтовал
> с mod_python для apache1.3. Как минимум по модулям в %libdir/pythonX.Y/.

Да, и по DSO модулю конфликтует, но это можно альтернативами
разрулить. Или пропатчить для имён/путей mod_python ->
mod_python2. 3.1.4 собрался, работает и пока не падает.

Корявенький спек в аттаче. Кстати, лицензию у mod_python можно бы
сменить на Apache.

<skipped/>

--
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru

[-- Attachment #1.2: apache2-mod_python.spec --]
[-- Type: text/plain, Size: 1623 bytes --]

# -*-rpm-spec-*-

%define modulename mod_python

Name: apache2-%modulename
Version: 3.1.4
Release: alt0.1

Summary: Python module for Apache2 Server
License: Apache Software License
Group: System/Servers
Url: http://www.modpython.org

Source0: %modulename-%version.tgz

PreReq: apache2 >= %apache_version
BuildPreReq: apache2-devel >= %apache_version
PreReq: python >= %__python_version
BuildPreReq: rpm-build-python >= 0.21-alt1
BuildPreReq: python-devel = %__python_version
Requires: python = %__python_version
Provides: mod_python%__python_version

# Automatically added by buildreq on Wed Apr 13 2005
BuildRequires: apache2-devel hostinfo libapr-devel libaprutil-devel python-base python-dev python-modules-encodings

%add_python_req_skip _apache

%description
Python module for Apache2 Server.

%prep
%setup -q -n %modulename-%version

%build
%configure --with-apxs=%apache_apxs
%make

%install
%make DESTDIR=%buildroot install

### Creating %modulename.conf
%__cat <<EOF >%modulename.conf
### %modulename.conf - configuration directives for the Python Apache2 module.

# LoadModule python_module      modules/mod_python.so
EOF

%__mkdir_p %buildroot%apache_addonconfdir
%__install -m 0644 %modulename.conf %buildroot%apache_addonconfdir

%post
[ -x %apache_ctl ] && %apache_ctl update ||:

%postun
[ -x %apache_ctl ] && %apache_ctl update ||:

%files
%python_sitelibdir/%modulename
%apache_moduledir/%modulename.so
%config(noreplace) %apache_addonconfdir/%modulename.conf

%changelog
* Wed Apr 13 2005 Vitaly A. Ostanin <vyt@altlinux.ru> 3.1.4-alt0.1
- First build for Sisyphus based on spec from Sisyphus mod_python

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

      reply	other threads:[~2005-04-13 13:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-12 14:42 [devel] " Vitaly Ostanin
2005-04-13  1:24 ` Ivan Fedorov
2005-04-13 13:52   ` Vitaly Ostanin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=425D2425.50304@vzljot.ru \
    --to=vyt@vzljot.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git