Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
Modules
>
apache2-mod_stats
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Added
apache2-mod_stats.spec
@@ -0,0 +1,65 @@ +# +# spec file for package apache2-mod_stats (Version 1.0) +# +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: apache2-mod_stats +BuildRequires: apache2-devel apache2-prefork apache2-webthings-collection +%define apxs /usr/sbin/apxs2 +%define apache apache2 +%define apache_libexecdir %(%{apxs} -q LIBEXECDIR) +%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) +%define apache_includedir %(%{apxs} -q INCLUDEDIR) +%define apache_serverroot %(%{apxs} -q PREFIX) +%define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR) +%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) +Version: 1.1 +Release: 30 +License: Apache License 2.0 +Group: Productivity/Networking/Web/Servers +Requires: apache2 %{apache_mmn} +Autoreqprov: on +Summary: Apache module collecting buildservice download statistics +# +# svn export 'https://forgesvn1.novell.com/svn/opensuse/trunk/tools/download-stats/mod_stats'; tar czf mod_stats.tar.gz mod_stats +Source: mod_stats.tar.gz +# +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Apache module collecting download statistics for packages downloaded from an +OpenSUSE build service. At this time, it is probably only useful on +software.opensuse.org. + +https://forgesvn1.novell.com/svn/opensuse/trunk/tools/download-stats + +Author: Peter Poeml <poeml@suse.de> + + +%if 0%{?opensuse_bs} +%debug_package +%endif +%prep +%setup -n mod_stats + +%build +%{apxs} -c mod_stats.c + +%install +mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir} +cp -p .libs/mod_stats.so $RPM_BUILD_ROOT/%{apache_libexecdir} + +%files +%defattr(-,root,root) +%{apache_libexecdir}/*.so +%doc README +%doc *.conf + +%changelog -n apache2-mod_stats