]>
Commit | Line | Data |
---|---|---|
1 | %define mod_ngobjweb_makeflags -v | |
2 | %define sope_version 4.5 | |
3 | %define opengroupware.org_version 1.1 | |
4 | %define datenightly 200705151102 | |
5 | %define sopename sope-mod_ngobjweb | |
6 | %define apxs /usr/sbin/apxs | |
7 | %define mod_name ngobjweb | |
8 | Summary: mod_ngobjweb Apache module | |
9 | Summary(pl.UTF-8): Moduł Apacha mod_ngobjweb | |
10 | Name: apache-mod_%{mod_name} | |
11 | Version: r1479 | |
12 | Release: 0.1 | |
13 | Vendor: OpenGroupware.org | |
14 | License: LGPL | |
15 | Group: Networking/Daemons/HTTP | |
16 | Source0: http://download.opengroupware.org/nightly/sources/trunk/%{sopename}-trunk-%{version}-%{datenightly}.tar.gz | |
17 | # Source0-md5: c684437dba5548687fcbb39cf17fd8e8 | |
18 | Source1: %{name}.conf | |
19 | Patch0: %{name}-makefile.patch | |
20 | URL: http://www.softwarestudio.org/libical | |
21 | BuildRequires: apache-devel >= 2.0 | |
22 | BuildRequires: apr-devel | |
23 | BuildRequires: apr-util-devel | |
24 | BuildRequires: autoconf | |
25 | BuildRequires: automake | |
26 | Requires: apache(modules-api) = %apache_modules_api | |
27 | Requires: ogo-environment | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
31 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
32 | ||
33 | %description | |
34 | apache2 mod_ngobjweb adaptor (for OpenGroupware.org). Enables Apache | |
35 | to handle HTTP requests for the SOPE application server. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Moduł adaptera ngobjweb (dla OpenGroupware.org). Pozwala serwerowi | |
39 | Apache obsługiwać żądania HTTP dla serwera aplikacji SOPE. | |
40 | ||
41 | %prep | |
42 | %setup -q -n sope-mod_ngobjweb | |
43 | %patch0 -p1 | |
44 | ||
45 | %build | |
46 | #. %{_libdir}/GNUstep/System/Library/Makefiles/GNUstep.sh | |
47 | %{__make} \ | |
48 | CC="%{__cc}" \ | |
49 | LD="%{__cc}" \ | |
50 | apxs=%{apxs} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d} | |
55 | install mod_ngobjweb.so $RPM_BUILD_ROOT%{_pkglibdir} | |
56 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/88_mod_%{mod_name}.conf | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf | |
64 | %attr(755,root,root) %{_pkglibdir}/*.so |