#Module-Specific definitions %define mod_version 0.2b %define release 1mdk %define mod_name mod_activex_filter %define mod_conf A17_%{mod_name}.conf %define mod_so %{mod_name}.so %define sourcename mod_activex_%{mod_version} #New ADVX macros %define ADVXdir %{_datadir}/ADVX %{expand:%(cat %{ADVXdir}/ADVX-build)} %{expand:%%global ap_version %(%{apxs} -q ap_version)} # Standard Module Definitions %define name %{ap_name}-%{mod_name} %define version %{ap_version}_%{mod_version} #Standard ADVX requires Prereq: %{ap_name} = %{ap_version} Prereq: %{ap_name}-conf BuildRequires: ADVX-build >= 9.2 BuildRequires: %{ap_name}-devel >= 2.0.43-5mdk Provides: ADVXpackage Provides: AP20package Summary: Mod_activex_filter is a DSO module for the %{ap_name} Web server. Name: %{name} Version: %{version} Release: %{release} Group: System/Servers Source0: %{sourcename}.tar.bz2 Source1: %{mod_conf}.bz2 License: Apache License URL: http://brice.free.fr Prereq: rpm-helper Requires: %{ap_name}-mod_proxy BuildRoot: %{_tmppath}/%{name}-buildroot %description It's only a simple hack of mod_case_filter to get a way to filter ActiveX on a proxy. Actualy, the only way to filter ActiveX if your proxy is unable to do it is to use a TIS module chained with your proxy. But the TIS is only capable of doing HTTP/1.0. If you need real performances, you'll want to use HTTP/1.1. %prep %setup -q -n mod_activex_0.2 %build mv activex_filter/mod_activex_filter.c . %{apxs} -c mod_activex_filter.c %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %ADVXinstlib %ADVXinstconf %{SOURCE1} %{mod_conf} %ADVXinstdoc %{name}-%{version} %post %ADVXpost %postun %ADVXpost %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc README %config(noreplace) %{ap_confd}/%{mod_conf} %{ap_extralibs}/%{mod_so} %{ap_webdoc}/* %changelog * Wed Nov 05 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.48_0.2b-1mdk - built for apache 2.0.48 - fix invalid-spec-name * Sun Sep 28 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.47_0.2b-2mdk - drop the mod_php conflict, it's php-snmp that segfaults... * Sun Sep 28 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.47_0.2b-1mdk - initial cooker contrib