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

Changes of Revision 2

[-] Added apache2-mod_stats.spec
x
 
1
@@ -0,0 +1,65 @@
2
+#
3
+# spec file for package apache2-mod_stats (Version 1.0)
4
+#
5
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
6
+# This file and all modifications and additions to the pristine
7
+# package are under the same license as the package itself.
8
+#
9
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
10
+#
11
+
12
+# norootforbuild
13
+
14
+Name:           apache2-mod_stats
15
+BuildRequires:  apache2-devel apache2-prefork apache2-webthings-collection
16
+%define apxs /usr/sbin/apxs2
17
+%define apache apache2
18
+%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
19
+%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
20
+%define apache_includedir %(%{apxs} -q INCLUDEDIR)
21
+%define apache_serverroot %(%{apxs} -q PREFIX)
22
+%define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR)
23
+%define apache_mmn        %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
24
+Version:        1.1
25
+Release:        30
26
+License:        Apache License 2.0
27
+Group:          Productivity/Networking/Web/Servers
28
+Requires:       apache2 %{apache_mmn} 
29
+Autoreqprov:    on
30
+Summary:        Apache module collecting buildservice download statistics
31
+#
32
+# svn export 'https://forgesvn1.novell.com/svn/opensuse/trunk/tools/download-stats/mod_stats'; tar czf mod_stats.tar.gz mod_stats
33
+Source:         mod_stats.tar.gz
34
+#
35
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
36
+
37
+%description
38
+Apache module collecting download statistics for packages downloaded from an
39
+OpenSUSE build service. At this time, it is probably only useful on
40
+software.opensuse.org.
41
+
42
+https://forgesvn1.novell.com/svn/opensuse/trunk/tools/download-stats
43
+
44
+Author: Peter Poeml <poeml@suse.de>
45
+
46
+
47
+%if 0%{?opensuse_bs}
48
+%debug_package
49
+%endif
50
+%prep
51
+%setup -n mod_stats
52
+
53
+%build
54
+%{apxs} -c mod_stats.c
55
+
56
+%install
57
+mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir}
58
+cp -p .libs/mod_stats.so $RPM_BUILD_ROOT/%{apache_libexecdir}
59
+
60
+%files
61
+%defattr(-,root,root)
62
+%{apache_libexecdir}/*.so
63
+%doc README
64
+%doc *.conf
65
+
66
+%changelog -n apache2-mod_stats
67