LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File apache2-mod_stats.spec of Package apache2-mod_stats (Project home:floeff)

# 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

%if %{defined suse_version}
%define apxs /usr/sbin/apxs2
BuildRequires:  apache2-devel apache2-prefork apache2-worker 
%define apxs /usr/sbin/apxs
BuildRequires:  httpd-devel
BuildRequires:  apache2-mod_form
%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)
Name:           apache2-mod_stats
Summary:        Apache module collecting buildservice download statistics
Version:        1.1
Release:        36
License:        Apache License 2.0
Group:          Productivity/Networking/Web/Servers
%if %{defined suse_version}
Requires:       apache2 >= 2.2.6 
Requires:       %{apache_mmn} 
Requires:       libapr-util1 >= 1.3.0
Requires:       httpd
Autoreqprov:    on
# 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

Apache module collecting download statistics for packages downloaded from an
OpenSUSE build service. At this time, it is probably only useful on


Author: Peter Poeml <poeml@suse.de>

%setup -n mod_stats

%{apxs} -c mod_stats.c

mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir}
cp -p .libs/mod_stats.so $RPM_BUILD_ROOT/%{apache_libexecdir}

%doc *.conf

%changelog -n apache2-mod_stats