]> git.pld-linux.org Git - packages/apache1-mod_snake.git/blame - apache1-mod_snake.spec
- converted to UTF-8
[packages/apache1-mod_snake.git] / apache1-mod_snake.spec
CommitLineData
80490bcb
ER
1# NOTE
2# - This project is RIP since Thu May 9 19:00:01 PDT 2002
3# - and doesn't compile anyway
1685aee8 4%define mod_name snake
8c265289 5%define apxs /usr/sbin/apxs1
1685aee8 6Summary: An Apache module to allow for Python plugins and control
8609f9b1 7Summary(pl.UTF-8): Moduł do Apache pozwalający na kontrolę i wtyczki Pythona
8c265289 8Name: apache1-mod_%{mod_name}
1685aee8 9Version: 0.5.0
c97d2a81 10Release: 1.2
1685aee8
AM
11License: GPL
12Group: Networking/Daemons
e9ba77eb 13Source0: http://dl.sourceforge.net/mod%{mod_name}/mod_%{mod_name}-%{version}.tar.gz
3f5c7979 14# Source0-md5: 7c043871a66a8579c6fec561c5d6cb84
8c265289 15Patch0: %{name}-dumb_acam.patch
1685aee8 16URL: http://modsnake.sourceforge.net/
0d38f36c 17BuildRequires: %{apxs}
80490bcb 18BuildRequires: apache1-devel >= 1.3.33-2
1685aee8 19BuildRequires: python-devel >= 1.5
0d88f3bf 20BuildRequires: rpmbuild(macros) >= 1.268
80490bcb 21Requires: apache1 >= 1.3.33-2
0d88f3bf 22Obsoletes: apache-mod_snake <= 0.5.0
1685aee8
AM
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
80490bcb
ER
25%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
26%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
1685aee8
AM
27
28%description
29mod_snake is an Apache module which allows for execution of Python
30code directly within the Apache server process. By including an
31interpreter in the Apache process, Python CGIs are accelerated, Python
32can be embedded within HTML and Python written modules can control the
33internals of the webserver.
34
8609f9b1
JR
35%description -l pl.UTF-8
36mod_snake to moduł Apache pozwalający na wykonywanie kodu Pythona
37bezpośrednio w procesie serwera Apache. Włączając interpreter do
38procesu Apache skrypty CGI w Pythonie są znacznie przyspieszone.
39Python może być umieszczany w HTML-u oraz moduły Pythona mogą
40kontrolować wewnętrzne sprawy serwera WWW.
1685aee8 41
908a2fce 42%prep
1685aee8 43%setup -q -n mod_%{mod_name}-%{version}
8c265289 44%patch0 -p0
1685aee8
AM
45
46%build
47%configure2_13 \
0d38f36c 48 --with-apxs=%{apxs} \
1685aee8
AM
49 --enable-dso
50%{__make}
51
52%install
53rm -rf $RPM_BUILD_ROOT
80490bcb 54install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
1685aee8
AM
55
56install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
57
80490bcb
ER
58echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
59 $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
60
1685aee8
AM
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%post
0d88f3bf 65%service -q apache restart
1685aee8 66
c97d2a81 67%postun
1685aee8 68if [ "$1" = "0" ]; then
0d88f3bf 69 %service -q apache restart
1685aee8
AM
70fi
71
72%files
73%defattr(644,root,root,755)
a2f940c3 74%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
1685aee8 75%attr(755,root,root) %{_pkglibdir}/*
This page took 0.06182 seconds and 4 git commands to generate.