]>
Commit | Line | Data |
---|---|---|
3586642b | 1 | %define mod_name chroot |
2 | %define apxs /usr/sbin/apxs1 | |
3 | Summary: Apache module: makes running Apache in a secure chroot environment easy. | |
4 | Name: apache1-mod_%{mod_name} | |
5 | Version: 0.2 | |
6 | Release: 0.1 | |
7 | License: GPL | |
8 | Group: Networking/Daemons | |
9 | Source0: http://core.segfault.pl/~hobbit/mod_chroot/dist/mod_chroot-%{version}.tar.gz | |
10 | # Source0-md5: 85211cd8cafcfe64258e02291ea6439e | |
11 | URL: http://core.segfault.pl/~hobbit/mod_chroot/ | |
12 | BuildRequires: %{apxs} | |
13 | BuildRequires: apache1-devel >= 1.3.31 | |
14 | Requires(post,preun): %{apxs} | |
15 | Requires: apache1 >= 1.3.31 | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR) | |
19 | ||
20 | %description | |
21 | mod_chroot makes running Apache in a secure chroot environment easy. | |
22 | You don't need to create a special directory hierarchy containing | |
23 | /dev, /lib, /etc... | |
24 | ||
25 | %prep | |
26 | %setup -q -n mod_%{mod_name}-%{version} | |
27 | ||
28 | %build | |
29 | %{apxs} -c mod_%{mod_name}.c | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | ||
34 | install -D mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %doc ChangeLog INSTALL | |
42 | %attr(755,root,root) %{_pkglibdir}/*.so |