Submission: Httpd module mod_proxy_html (updated)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have this building on FC11 (updated) and running.  Seems to work fine.

Just need someone to commit it.

https://bugzilla.redhat.com/show_bug.cgi?id=452636

$ rpmlint ../../SPECS/mod_proxy_html.spec
0 packages and 1 specfiles checked; 0 errors, 0 warnings.
$

Updated the bug with new attachments (version 3.1.2).

Summary: Output filter to rewrite HTML links in a proxy situation
Name: mod_proxy_html
Version: 3.1.2
Release: 1%{?dist}
License: GPLv2
Group: System Environment/Libraries
URL: http://apache.webthing.com/mod_proxy_html/
Source: http://apache.webthing.com/mod_proxy_html/mod_proxy_html-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing)
BuildRequires: libxml2-devel httpd-devel

%description
mod_proxy_html is an output filter to rewrite HTML links in a proxy situation,
to ensure that links work for users outside the proxy. It serves the same
purpose as Apache's ProxyPassReverse directive does for HTTP headers, and is
an essential component of a reverse proxy.

%define modulesdir %{_libdir}/httpd/modules
%define confdir %{_sysconfdir}/httpd/conf

%prep
%setup -q -n %{name}


%build
%{_sbindir}/apxs -c -I . -I %{_includedir}/libxml2 -lxml2 mod_proxy_html.c


%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{modulesdir}
%{_sbindir}/apxs -i -S LIBEXECDIR=%{buildroot}/%{modulesdir} -n mod_proxy_html mod_proxy_html.la
install -m 644 -D proxy_html.conf %{buildroot}/%{confdir}.d/proxy_html.conf
%{__sed} -i \
	-e '/^# LoadFile	\/usr\/lib\/libxml2\.so/d' \
	-e '1,7s@^# \(LoadModule	proxy_html_module	modules/mod_proxy_html\.so\)$@\1@' \
%ifarch x86_64
	-e 's@/usr/lib/@%{_libdir}/@' \
%endif
	%{buildroot}/%{confdir}.d/proxy_html.conf


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-,root,root)
%{modulesdir}/mod_proxy_html.so
%config(noreplace) %lang(en) %{confdir}.d/proxy_html.conf
%doc COPYING README


%changelog
* Wed Dec 09 2009 Philip Prindeville <http://www.redfish-solutions.com> 3.1.2-1
- Version bump to 3.1.2

* Fri Sep 18 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-9
- Put back BuildRequires...

* Tue Sep  7 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-8
- Not being enabled by default (uncomment the "LoadModule" line from the
  config).

* Tue Sep  2 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-7
- Fixed "Source:" to point to numbered version of tarball.  Thanks Nick!

* Tue Aug 12 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-6
- Fixed BuildRequires: and BuildRoot: as per code review comments.

* Sun Jul 13 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-5
- Fixed gcc warning on missing braces/ambiguous "else".

* Thu Jul 10 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-4
- Fixed conditional edit of path to libs in .conf file based on architecture
  type.

* Mon Jun 30 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-3
- Added "--with xml" for those wanting implicit load of libxml2 via ld.so
  instead of via explicit "LoadFile" in configs.

* Sat Jun 28 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-2
- Merged with comments from reviewers (especially Ray).

* Wed Jun 18 2008 Philip Prindeville <http://www.redfish-solutions.com> 3.0.1-1
- Initial RPM release.

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux