/[smecontribs]/rpms/mod_proxy_html/contribs8/mod_proxy_html.spec
ViewVC logotype

Contents of /rpms/mod_proxy_html/contribs8/mod_proxy_html.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Thu Feb 25 16:21:22 2010 UTC (14 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: mod_proxy_html-3_1_2-6_el5_sme, HEAD
Changes since 1.1: +4 -0 lines
Cleanup

1 # $Id$
2 # Authority: slords
3 # Name: Shad L. Lords
4
5 Summary: Output filter to rewrite HTML links in a proxy situation
6 Name: mod_proxy_html
7 Version: 3.1.2
8 Release: 6%{?dist}
9 License: GPLv2
10 Group: System Environment/Libraries
11 URL: http://apache.webthing.com/mod_proxy_html/
12 Source: http://apache.webthing.com/mod_proxy_html/mod_proxy_html-%{version}.tar.bz2
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
14 Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing)
15 BuildRequires: libxml2-devel httpd-devel
16
17 %description
18 mod_proxy_html is an output filter to rewrite HTML links in a proxy situation,
19 to ensure that links work for users outside the proxy. It serves the same
20 purpose as Apache's ProxyPassReverse directive does for HTTP headers, and is
21 an essential component of a reverse proxy.
22
23 %define modulesdir %{_libdir}/httpd/modules
24 %define confdir %{_sysconfdir}/httpd/conf
25
26 %prep
27 %setup -q -n %{name}
28
29
30 %build
31 %{_sbindir}/apxs -c -I . -I %{_includedir}/libxml2 -lxml2 mod_proxy_html.c
32 %{_sbindir}/apxs -c -I . -I %{_includedir}/libxml2 -lxml2 mod_xml2enc.c
33
34
35 %install
36 %{__rm} -rf %{buildroot}
37 %{__mkdir_p} %{buildroot}/%{modulesdir}
38 %{_sbindir}/apxs -i -S LIBEXECDIR=%{buildroot}/%{modulesdir} -n mod_proxy_html mod_proxy_html.la
39 %{_sbindir}/apxs -i -S LIBEXECDIR=%{buildroot}/%{modulesdir} -n mod_xml2enc mod_xml2enc.la
40 install -m 644 -D proxy_html.conf %{buildroot}/%{confdir}.d/proxy_html.conf
41 %{__sed} -i \
42 -e '/^# LoadFile \/usr\/lib\/libxml2\.so/d' \
43 -e '1,/Windows/s@^# \(LoadModule *proxy_html_module *modules/mod_proxy_html\.so\)$@\1@' \
44 -e '1,/Windows/s@^# \(LoadModule *xml2enc_module *modules/mod_xml2enc\.so\)$@\1@' \
45 %ifarch x86_64
46 -e 's@/usr/lib/@%{_libdir}/@' \
47 %endif
48 %{buildroot}/%{confdir}.d/proxy_html.conf
49
50
51 %clean
52 %{__rm} -rf %{buildroot}
53
54
55 %files
56 %defattr(-,root,root)
57 %{modulesdir}/mod_proxy_html.so
58 %{modulesdir}/mod_xml2enc.so
59 %config(noreplace) %lang(en) %{confdir}.d/proxy_html.conf
60 %doc COPYING README
61
62
63 %changelog
64 * Wed Dec 16 2009 Philip Prindeville <philipp@fedoraproject.org> 3.1.2-6
65 - Include mod_xml2enc. Fix sed script to properly uncomment LoadModule lines.
66
67 * Wed Dec 16 2009 Philip Prindeville <philipp@fedoraproject.org> 3.1.2-2
68 - Initial commit.
69
70 * Wed Dec 09 2009 Philip Prindeville <http://www.redfish-solutions.com> 3.1.2-1
71 - Version bump to 3.1.2
72
73 * Fri Sep 18 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-9
74 - Put back BuildRequires...
75
76 * Tue Sep 7 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-8
77 - Not being enabled by default (uncomment the "LoadModule" line from the
78 config).
79
80 * Tue Sep 2 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-7
81 - Fixed "Source:" to point to numbered version of tarball. Thanks Nick!
82
83 * Tue Aug 12 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-6
84 - Fixed BuildRequires: and BuildRoot: as per code review comments.
85
86 * Sun Jul 13 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-5
87 - Fixed gcc warning on missing braces/ambiguous "else".
88
89 * Thu Jul 10 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-4
90 - Fixed conditional edit of path to libs in .conf file based on architecture
91 type.
92
93 * Mon Jun 30 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-3
94 - Added "--with xml" for those wanting implicit load of libxml2 via ld.so
95 instead of via explicit "LoadFile" in configs.
96
97 * Sat Jun 28 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-2
98 - Merged with comments from reviewers (especially Ray).
99
100 * Wed Jun 18 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-1
101 - Initial RPM release.
102

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed