File mod_log_spread.spec of Package apache2-mod_log_spread
#
# spec file for package apache2-mod_log_spread
#
# Copyright (c) 2009 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
%endif
#
%if %{defined centos_version}
%define apxs /usr/sbin/apxs
BuildRequires: httpd-devel
%endif
#
%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_log_spread
Version: 1.0
Release: 10
Summary: An Apache module for logging over the Spread framework
Group: Productivity/Networking/Web/Servers
License: Apache License, Version 2.0
URL: http://www.openinfo.co.uk/apache/
Source: mod-log-spread2.tar.bz2
# http://mod-log-spread2.alioth.debian.org/
# https://alioth.debian.org/frs/download.php/1316/mod-log-spread2.tar.bz2
# got the URL from http://osdir.com/ml/apache.mod-backhand.general/2007-09/msg00000.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on
BuildRequires: spread-devel
Requires: spread
%description
Multicast httpd logs to spread
%prep
%setup -q -n mod_log_spread2
%build
%{apxs} -lspread -c mod_log_spread.c
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{apache_libexecdir}
cp -p .libs/mod_log_spread.so %{buildroot}%{apache_libexecdir}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{apache_libexecdir}/*.so
%changelog