Logoj0ke.net Open Build Service > Projects > Apache:Modules > apache2-mod_cguard > Changes
Sign Up | Log In

Changes of Revision 2

[-] Added apache2-mod_cguard.spec
x
 
1
@@ -0,0 +1,51 @@
2
+
3
+# norootforbuild
4
+
5
+
6
+Name:           apache2-mod_cguard
7
+BuildRequires:  apache2-devel
8
+%define modname mod_cguard
9
+%define apxs /usr/sbin/apxs2
10
+%define apache apache2
11
+%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
12
+%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
13
+%define apache_includedir %(%{apxs} -q INCLUDEDIR)
14
+%define apache_serverroot %(%{apxs} -q PREFIX)
15
+%define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR)
16
+%define apache_mmn        %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
17
+Version:        0.1
18
+Release:        1
19
+License:        Apache License 2.0
20
+Group:          Productivity/Networking/Web/Servers
21
+Requires:       apache2 %{apache_mmn} 
22
+Autoreqprov:    on
23
+Summary:        Connection Guard Module for Apache 2
24
+URL:            http://httpd.renatasystems.org/mod_cguard/
25
+Source:         http://httpd.renatasystems.org/mod_cguard/%{modname}-%{version}.tgz
26
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
27
+
28
+%description
29
+Simple and flexible connection limiter
30
+
31
+Author: Alexey V. Degtyarev <alexey@renatasystems.org>
32
+
33
+%if 0%{?opensuse_bs}
34
+%debug_package
35
+%endif
36
+
37
+%prep
38
+%setup -n %{modname}
39
+
40
+%build
41
+%{apxs} -c -Wc,"-Wall -g" mod_cguard.c
42
+
43
+%install
44
+rm -rf $RPM_BUILD_ROOT
45
+mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir}
46
+cp -p .libs/mod_cguard.so $RPM_BUILD_ROOT/%{apache_libexecdir}
47
+
48
+%files
49
+%defattr(-,root,root)
50
+%{apache_libexecdir}/%{modname}.so
51
+
52
+%changelog -n apache2-mod_cguard
53