]>
Commit | Line | Data |
---|---|---|
88be1cd4 JB |
1 | %define apxs /usr/sbin/apxs |
2 | Summary: mod_admserv - communication link between Console and Directory | |
b7861880 | 3 | Summary(pl.UTF-8): mod_admserv - połączenie komunikacyjne między konsolą a katalogiem |
928ba31c | 4 | Name: apache-mod_admserv |
88be1cd4 JB |
5 | Version: 1.0.3 |
6 | Release: 0.1 | |
7 | License: Apache 2.0 | |
8 | Group: Networking/Daemons | |
9 | Source0: http://directory.fedora.redhat.com/sources/mod_admserv-%{version}.tar.gz | |
10 | # Source0-md5: 793416e0a82b7e7bec42ddaa609e88d9 | |
11 | URL: http://directory.fedora.redhat.com/wiki/Mod_admserv | |
bab36ced | 12 | BuildRequires: apache-apxs >= 2.0 |
88be1cd4 | 13 | BuildRequires: apache-devel >= 2.0 |
1567b9e7 JB |
14 | BuildRequires: apr-devel >= 1:1.0 |
15 | BuildRequires: apr-util-devel >= 1:1.0 | |
88be1cd4 JB |
16 | BuildRequires: fedora-adminutil-devel >= 1.0 |
17 | BuildRequires: libicu-devel | |
18 | BuildRequires: mozldap-devel >= 5.0 | |
19 | BuildRequires: nspr-devel | |
20 | BuildRequires: nss-devel | |
d031a6f2 | 21 | Requires: apache(modules-api) = %apache_modules_api |
88be1cd4 JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
25 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
26 | ||
27 | %description | |
28 | An Apache 2.0 module for implementing the admin server functionality | |
29 | required by Fedora Admin Server and Directory Server. | |
30 | ||
e33f6bd6 JR |
31 | %description -l pl.UTF-8 |
32 | Moduł Apache'a 2.0 implementujący funkcjonalność serwera | |
33 | administracyjnego wymaganą przez usługi Fedora Admin Server i Fedora | |
88be1cd4 JB |
34 | Directory Server. |
35 | ||
36 | %prep | |
928ba31c | 37 | %setup -q -n mod_admserv-%{version} |
88be1cd4 JB |
38 | |
39 | %build | |
40 | # apr-util is missing in configure check | |
41 | CPPFLAGS="`apu-1-config --includes`" | |
42 | %configure \ | |
43 | --with-apr-config \ | |
44 | --with-apxs=%{apxs} \ | |
45 | --with-nspr-inc=/usr/include/nspr \ | |
46 | --with-nspr-lib=%{_libdir} \ | |
47 | --with-nss-inc=/usr/include/nss \ | |
48 | --with-nss-lib=%{_libdir} \ | |
49 | --with-ldapsdk-inc=/usr/include/mozldap \ | |
50 | --with-ldapsdk-lib=%{_libdir} \ | |
51 | --with-adminutil=/usr | |
52 | ||
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | install -d $RPM_BUILD_ROOT%{_pkglibdir} | |
58 | ||
59 | install .libs/libmodadmserv.so $RPM_BUILD_ROOT%{_pkglibdir} | |
60 | # TODO: XX_mod_admserv.conf based on httpd.conf.tmpl | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc README httpd.conf.tmpl | |
68 | #%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_admserv.conf | |
69 | %attr(755,root,root) %{_pkglibdir}/libmodadmserv.so |