Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
Modules
>
apache2-mod_proxy_html
> apache2-mod_proxy_html.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File apache2-mod_proxy_html.spec of Package apache2-mod_proxy_html
# # spec file for package apache2-mod_proxy_html (Version 3.1.2) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild #Distribution: %dist #Packager: %packager #Vendor: %vendor %define modname mod_proxy_html %if 0%{?suse_version} %define apxs /usr/sbin/apxs2 %else %define apxs /usr/sbin/apxs %endif %define apache apache2 %define apache_serverroot %(%{apxs} -q PREFIX) %define apache_includedir %(%{apxs} -q INCLUDEDIR) %define apache_libexecdir %(%{apxs} -q LIBEXECDIR) %if 0%{?suse_version} %define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) %else %define apache_sysconfdir %(%{apxs} -q PREFIX) %endif %define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR) %define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) Name: apache2-mod_proxy_html Summary: Apache2 module to rewrite URLs into proxy's address space Version: 3.1.2 Release: 1 License: GPL v2 Group: Productivity/Networking/Web/Servers Autoreqprov: on Url: http://apache.webthing.com/mod_proxy_html Source0: %{modname}-%{version}.tar.bz2 Source1: rpmlintrc Source2: README.SuSE Patch0: %{modname}-config.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: sed %if 0%{?suse_version} BuildRequires: apache2-devel %else BuildRequires: httpd-devel httpd %endif BuildRequires: libxml2-devel Requires: apache2 %{apache_mmn} %description Rewriting URLs into a proxy's address space is of course the primary purpose of this module. From Version 2.0, this capability has been extended from rewriting HTML URLs to processing scripts and stylesheets that may contain URLs. %prep %setup -n %{modname} %{__cp} -a %{S:2} . %patch0 -p1 %build %{apxs} -lxml2 -I./ -I/usr/include/libxml2 -c %{modname}.c %install # first fix @libdir@ %{__sed} -i -e "s,@libdir@,%{_libdir},g" proxy_html.conf # install needed files %{__install} -D -m0644 proxy_html.conf $RPM_BUILD_ROOT%{apache_sysconfdir}/conf.d/%{modname}.conf.in %{__install} -D -m0644 .libs/%{modname}.so $RPM_BUILD_ROOT%{apache_libexecdir}/%{modname}.so %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING README README.SuSE %dir %{apache_sysconfdir}/conf.d %config(noreplace) %{apache_sysconfdir}/conf.d/%{modname}.conf.in %{apache_libexecdir}/*.so %changelog