LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File dba-apache2-mod_qos-109.spec of Package dba-apache2-mod_qos-109 (Project home:csbuild:DBA)

%define vers	109
%define real_vers	10.9
%define prefix	/DBA/apache/WWW/2.2.x
%define apavers 2.2.22
%define apapack 2222
%define apahome /DBA/apache/WWW/%{apavers}
%define apxs    %{apahome}/bin/apxs
%define apache2_sysconfdir %(%{apxs} -q SYSCONFDIR)
%define apache2_libexecdir %(%{apxs} -q LIBEXECDIR)
%define apache2_mmn        %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
%define apache2_cflags     %(%{apxs} -q CFLAGS)
%define modname       mod_qos

Name:           dba-apache2-%{modname}-%{vers}
Summary:        A quality of service module for the Apache Web Server
Version:        %{real_vers}
Release:        1
License:        GPL
URL:            http://mod-qos.sourceforge.net/
Source0:        http://heanet.dl.sourceforge.net/sourceforge/mod-qos/%{modname}-%{real_vers}.tar.gz
Source1:        %{modname}.conf
Source2:        Makefile.tools
Source3:        Makefile32.tools
Group:          Productivity/Networking/Web/Servers
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  dba-apache-%{apapack}
Requires:  	dba-apache-base

BuildRequires:  gcc-c++
BuildRequires:  dos2unix openssl-devel pcre-devel libpng-devel
BuildRequires:  automake autoconf libtool m4

#!BuildIgnore:  dba-openssl-098o
#!BuildIgnore:  dba-postgresql-839 dba-postgresql-842

%if 0%{?suse_version}
BuildRequires:  libapr-util1-devel >= 1.3 libapr1-devel >= 1.3
BuildRequires:  apr-util-devel apr-devel

%if 0%{?suse_version} >= 1110
BuildRequires:  -post-build-checks

mod_qos is a quality of service module for the Apache Web Server. It implements
control mechanisms that can provide different priority to different requests
and controls server access based on available resources.

%setup -q -n %{modname}-%{real_vers}

find -type f -exec dos2unix -U {} \;


%{apxs} -c apache2/mod_qos.c

export APACHE_HOME=%{apahome}
%ifarch x86_64
install -m0644 %{S:2} tools/src/Makefile
install -m0644 %{S:3} tools/src/Makefile

make -C tools/src

%{__mkdir_p} %{buildroot}%{prefix}/bin
%{__mkdir_p} %{buildroot}%{prefix}/conf
%{__mkdir_p} %{buildroot}%{prefix}/modules

install -m0755 apache2/.libs/%{modname}.so %{buildroot}%{prefix}/modules/%{modname}-%{version}.so
install -m0644 %{S:1} %{buildroot}%{prefix}/conf/%{modname}.conf

for P in qsfilter2 qslog qspng qsrotate qssign qstail qsgrep qsexec qscheck
  install -m0755 tools/src/$P %{buildroot}%{prefix}/bin/

cd %{prefix}/modules
%{__ln_s} -f %{modname}-%{version}.so %{modname}.so

# %{__rm} -rf %{buildroot};


* Thu Aug 16 2012 Holger Manthey <holger.manthey@bertelsmann.de>
- fix build tools for 32 bit
* Thu Sep 15 2011 Holger Manthey <holger.manthey@bertelsmann.de>
- build tools
* Wed Sep 14 2011 Holger Manthey <holger.manthey@bertelsmann.de>
- initial release without tools