/[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.1 - (show annotations) (download)
Thu Feb 25 16:18:34 2010 UTC (14 years, 3 months ago) by slords
Branch: MAIN
Initial import

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

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