]> git.pld-linux.org Git - packages/apache1-mod_access_referer.git/blobdiff - apache1-mod_access_referer.spec
- release 2: Name =~ s/apache/apache1/
[packages/apache1-mod_access_referer.git] / apache1-mod_access_referer.spec
index b1cc0a3b13a21744e7b019975591689d338eea0a..c1e719e3313822e5f7a8c50ad7aae2fe44233a94 100644 (file)
@@ -1,18 +1,21 @@
 %define                mod_name        access_referer
-%define        apxs            %{_sbindir}/apxs
+%define        apxs            %{_sbindir}/apxs1
 Summary:       Access control based on "Referer" HTTP header content
 Summary(pl):   Kontrola dostêpu bazuj±ca na zawarto¶ci standardowego nag³ówka HTTP "REFERER"
-Name:          apache-mod_%{mod_name}
+Name:          apache1-mod_%{mod_name}
 Version:       1.0.2
-Release:       5
+Release:       2
 License:       Apache Group
 Group:         Networking/Daemons
-Source0:       http://prdownloads.sourceforge.net/accessreferer/mod_%{mod_name}-%{version}.tar.gz
+Source0:       http://dl.sourceforge.net/accessreferer/mod_%{mod_name}-%{version}.tar.gz
+# Source0-md5: f1726cfe5965eda1bdca90b8db475377
+Patch0:                http://dl.sourceforge.net/sourceforge/accessreferer/mod_access_referer_1.0.2_third_part_patch.txt
 URL:           http://sourceforge.net/projects/accessreferer/
 BuildRequires: %{apxs}
-BuildRequires: apache(EAPI)-devel
-Prereq:                %{_sbindir}/apxs
-Requires:      apache(EAPI)
+BuildRequires: apache1-devel
+Requires(post,preun):  %{apxs}
+Requires:      apache1
+Obsoletes:     apache-mod_%{mod_name} <= %{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
@@ -27,10 +30,10 @@ zale
 
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
+%patch0 -p0
 
 %build
-PATH=$PATH:%{_sbindir}
-%{__make}
+%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.so
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -38,24 +41,24 @@ install -d $RPM_BUILD_ROOT%{_pkglibdir}
 
 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post
 %{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache restart 1>&2
 fi
 
 %preun
 if [ "$1" = "0" ]; then
 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
-%doc README ChangeLog
+%doc README ChangeLog HACKING *.html
 %attr(755,root,root) %{_pkglibdir}/*
This page took 0.060455 seconds and 4 git commands to generate.