]> git.pld-linux.org Git - packages/apache-mod_proxy_html.git/commitdiff
- Version: 2.3 (official versioning)
authorJacek Konieczny <jajcus@pld-linux.org>
Wed, 15 Sep 2004 11:37:53 +0000 (11:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- source moved to distfiles and URL put in "Source:" field (DF will check MD5 sums)
- mod_proxy_html.html removed from documentation. It is HTML code of the home
  page of the module, and we don't know the license of the page.
- 35_mod_proxy_html.conf file added to apache configuration so the module is loaded
  on apache restart
- do not build in %{_sourcedir}!!!
- made it compile (including "-Wl,-shared" apxs bug workaround)

Changed files:
    apache-mod_proxy_html.spec -> 1.3

apache-mod_proxy_html.spec

index 77344e2dac836988a1b0172a6fa2b22ee7731f50..57c9d2dc5c2ba9b0a7f0bd62154d17cda95285dc 100644 (file)
@@ -4,13 +4,12 @@
 Summary:       mod_proxy_html - additional proxy module for rewriting HTML links
 Summary(pl):   mod_proxy_html - dodatkowy modu³ proxy do przepisywania odno¶ników HTML
 Name:          apache-mod_%{mod_name}
-Version:       0.20031204
+Version:       2.3
 Release:       1
 License:       GPL
 Group:         Networking/Daemons
-# http://apache.webthing.com/mod_proxy_html/mod_proxy_html.c
-Source0:       mod_proxy_html.c
-Source1:       mod_proxy_html.html
+Source0:       http://apache.webthing.com/mod_proxy_html/mod_proxy_html.c
+# Source0-md5: a7a2bb9c24ee548ea9b16c35e7cab76a
 URL:           http://apache.webthing.com/mod_proxy_html/
 BuildRequires: %{apxs}
 BuildRequires: apache-devel >= 2.0.44
@@ -36,16 +35,24 @@ mod_proxy_html to dodatkowy modu
 %setup -q -c -T
 
 %build
+cp %{SOURCE0} .
 %{apxs} \
+       -c -o mod_%{mod_name}.so \
        $(%{_bindir}/xml2-config --cflags --libs) \
-       $((%{_bindir}/apr-config --cflags --link-ld; %{_bindir}/apu-config --link-ld) | sed -e 's#-pthread#-lpthread#g') \
-       -c %{SOURCE0} -o mod_%{mod_name}.so
+       -Wl,-shared \
+       mod_%{mod_name}.c
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{apache_moddir}
+install -d $RPM_BUILD_ROOT{%{apache_moddir},/etc/httpd/httpd.conf}
 
 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{apache_moddir}
+cat <<EOF > $RPM_BUILD_ROOT/etc/httpd/httpd.conf/35_mod_%{mod_name}.conf
+LoadModule proxy_html_module    modules/mod_proxy_html.so
+
+# You will find configuration instructions here:
+# http://apache.webthing.com/mod_proxy_html/config.html
+EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -64,5 +71,5 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc %{SOURCE1}
+%config(noreplace) %verify(not size mtime md5) /etc/httpd/httpd.conf/*
 %attr(755,root,root) %{apache_moddir}/*
This page took 0.09541 seconds and 4 git commands to generate.