- confdir enabled apache1 (no triggers as it wasn't on ftp)
[packages/apache1-mod_jk.git] / apache1-mod_jk.spec
1 %define         mod_name        jk
2 %define         apxs            /usr/sbin/apxs1
3 Summary:        Apache module that handles communication between Tomcat and Apache 1.3.x
4 Summary(pl):    Modu³ Apache'a obs³uguj±cy komunikacjê miêdzy Tomcatem a Apachem 1.3.x
5 Name:           apache1-mod_%{mod_name}
6 Version:        1.2.8
7 Release:        1.1
8 License:        Apache
9 Group:          Networking/Daemons
10 Source0:        http://www.apache.org/dist/jakarta/tomcat-connectors/jk/source/jk-%{version}/jakarta-tomcat-connectors-%{version}-src.tar.gz
11 # Source0-md5:  eb579c47f8dd71e526d7561c919ce06d
12 Source1:        %{name}.conf
13 Patch0:         jakarta-tomcat-connectors-jk-jkpass.patch
14 URL:            http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/doc/
15 BuildRequires:  %{apxs}
16 BuildRequires:  apache1-devel >= 1.3.33-2
17 BuildRequires:  libtool
18 BuildRequires:  automake
19 BuildRequires:  autoconf
20 BuildRequires:  perl-base
21 Requires:       apache1 >= 1.3.33-2
22 Requires(post,preun):   %{apxs}
23 Requires(post,preun):   %{__perl}
24 Requires(post,preun):   grep
25 Requires(preun):        fileutils
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Obsoletes:      jakarta-tomcat-connectors-jk
28
29 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
30 %define         _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
31
32 %description
33 JK is a replacement to the elderly mod_jserv. It was a completely new
34 Tomcat-Apache plug-in that handles the communication between Tomcat
35 and Apache.
36
37 %description -l pl
38 JK jest zamiennikiem starego mod_jserv. Jest ca³kowicie now± wtyczk±
39 Tomcat-Apache obs³uguj±c± komunikacjê miêdzy Tomcatem a Apachem.
40
41 %prep
42 %setup -q -n jakarta-tomcat-connectors-%{version}-src
43 %patch0 -p1
44
45 %build
46 cd jk/native
47
48 ./buildconf.sh
49
50 %configure \
51         --enable-EAPI \
52         --with-apxs=%{apxs}
53
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d,/var/lock/mod_jk}
59
60 cd jk/native
61
62 install apache-1.3/mod_%{mod_name}.so.0.0.0 $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
63
64 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post
70 if [ -f /var/lock/subsys/apache ]; then
71         /etc/rc.d/init.d/apache restart 1>&2
72 fi
73
74 %preun
75 if [ "$1" = "0" ]; then
76         if [ -f /var/lock/subsys/apache ]; then
77                 /etc/rc.d/init.d/apache restart 1>&2
78         fi
79 fi
80
81 %files
82 %defattr(644,root,root,755)
83 %doc jk/native/{README,CHANGES.txt} doc/*
84 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
85 %attr(755,root,root) %{_pkglibdir}/*
86 %attr(750,http,http) /var/lock/mod_jk
This page took 0.094991 seconds and 3 git commands to generate.