]> git.pld-linux.org Git - packages/apache-mod_geoip.git/blobdiff - apache-mod_geoip.spec
- fix typo
[packages/apache-mod_geoip.git] / apache-mod_geoip.spec
index eba52eec6277cfb1b5941dd2ff630730c39daa12..e46f3cec62602b4f4823fe5039b26e0992842667 100644 (file)
@@ -1,21 +1,24 @@
 %define                mod_name        geoip
-%define        apxs            %{_sbindir}/apxs
+%define                apxs            %{_sbindir}/apxs
 Summary:       GeoIP module for the Apache HTTP Server
 Name:          apache-mod_%{mod_name}
 Version:       1.2.7
-Release:       1
+Release:       3
 License:       ASL 1.1
 Group:         Daemons
 URL:           https://www.maxmind.com/app/mod_geoip
 Source0:       http://www.maxmind.com/download/geoip/api/mod_geoip2/mod_%{mod_name}2_%{version}.tar.gz
 # Source0-md5: 76514ad0e8adb8cd8231c5e3646d03fd
 Source1:       apache.conf
-BuildRequires: GeoIP-devel
+Patch0:                mod_geoip-apache24.patch
 BuildRequires: %{apxs}
+BuildRequires: GeoIP-devel >= 1.4.8
 BuildRequires: apache-devel >= 2.2
 BuildRequires: rpmbuild(macros) >= 1.268
-Requires:      GeoIP
 Requires:      apache(modules-api) = %apache_modules_api
+Suggests:      GeoIP-db-City
+Suggests:      GeoIP-db-Country
+Suggests:      GeoIP-db-IPASNum
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -29,9 +32,10 @@ license.
 
 %prep
 %setup -q -n mod_geoip2_%{version}
+%patch0 -p0
 
 %build
-%{apxs} -Wc,"%{rpmcflags}" -Wl,-lGeoIP -c mod_geoip.c
+%{apxs} -Wc,"%{rpmcppflags} %{rpmcflags}" -Wl,"-lGeoIP %{rpmldflags}" -c mod_geoip.c
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.091563 seconds and 4 git commands to generate.