Group :: Sistema/Servidores
RPM: apache2-mod_geoip2
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define program_name mod_geoip2
%define program_version 1.1.8
%define program_release alt2
Name: apache2-%program_name
Version: %program_version
Release: %program_release
Summary: Apache 2.0 module for finding the country and city that a web request originated from
License: GPL
Url: http://www.maxmind.com/app/mod_geoip
Group: System/Servers
Packager: Ivan Fedorov <ns at altlinux.ru>
Source0: %{program_name}_%program_version.tar.gz
Source1: apache2-%program_name-load.conf
Source2: apache2-%program_name.conf
PreReq: apache2 >= %apache_version-%apache_release
#Requires: GeoIP-data-GeoLiteCountry
#Requires: GeoIP-data-GeoLiteCity
# Automatically added by buildreq on Sun Feb 18 2007
BuildRequires: apache2-devel libGeoIP-devel
%description
%summary
%prep
%setup -q -n %{program_name}_%program_version
%build
%apache_apxs -lGeoIP -c mod_geoip.c
%install
mkdir -p %buildroot/{%apache_moduledir,%apache_addonconfdir,%apache_confdir/modules.d}
%__install -p -m 0644 %SOURCE1 %buildroot/%apache_confdir/modules.d/A.500_geoip2.conf
%__install -p -m 0644 %SOURCE2 %buildroot/%apache_addonconfdir/A.%program_name.conf
%__install -p -m 0755 .libs/mod_geoip.so %buildroot/%apache_moduledir/mod_geoip.so
%files
%config(noreplace) %apache_confdir/modules.d/A.500_geoip2.conf
%config(noreplace) %apache_addonconfdir/A.%program_name.conf
%apache_moduledir/mod_geoip.so
%doc Changes INSTALL README README.php
%changelog
…
Todas as alterações você pod ver aqui
%define program_version 1.1.8
%define program_release alt2
Name: apache2-%program_name
Version: %program_version
Release: %program_release
Summary: Apache 2.0 module for finding the country and city that a web request originated from
License: GPL
Url: http://www.maxmind.com/app/mod_geoip
Group: System/Servers
Packager: Ivan Fedorov <ns at altlinux.ru>
Source0: %{program_name}_%program_version.tar.gz
Source1: apache2-%program_name-load.conf
Source2: apache2-%program_name.conf
PreReq: apache2 >= %apache_version-%apache_release
#Requires: GeoIP-data-GeoLiteCountry
#Requires: GeoIP-data-GeoLiteCity
# Automatically added by buildreq on Sun Feb 18 2007
BuildRequires: apache2-devel libGeoIP-devel
%description
%summary
%prep
%setup -q -n %{program_name}_%program_version
%build
%apache_apxs -lGeoIP -c mod_geoip.c
%install
mkdir -p %buildroot/{%apache_moduledir,%apache_addonconfdir,%apache_confdir/modules.d}
%__install -p -m 0644 %SOURCE1 %buildroot/%apache_confdir/modules.d/A.500_geoip2.conf
%__install -p -m 0644 %SOURCE2 %buildroot/%apache_addonconfdir/A.%program_name.conf
%__install -p -m 0755 .libs/mod_geoip.so %buildroot/%apache_moduledir/mod_geoip.so
%files
%config(noreplace) %apache_confdir/modules.d/A.500_geoip2.conf
%config(noreplace) %apache_addonconfdir/A.%program_name.conf
%apache_moduledir/mod_geoip.so
%doc Changes INSTALL README README.php
%changelog
…
Todas as alterações você pod ver aqui