Группа :: Система/Серверы
Пакет: mod_geoip
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# override definition from apache-devel
%define apache_addonconfdir %apache_confdir/addon-modules.d
%define apache_moduledir %_libdir/apache
Name: mod_geoip
Version: 1.2.9
Release: alt1.0
Summary: GeoIP database access module for Apache
Group: System/Servers
License: Apache
URL: http://www.maxmind.com/app/mod_geoip
Source: http://www.maxmind.com/download/geoip/api/mod_geoip/mod_geoip_%version.tar.gz
Source2: mod_geoip.conf
# Automatically added by buildreq on Tue May 23 2006
BuildRequires: apache-devel libGeoIP-devel
%description
mod_geoip looks up the IP address of the client end user.
%prep
%setup -q -n mod_geoip_%version
%build
%apache_apxs -c -I/usr/include/GeoIP -lGeoIP mod_geoip.c
%install
%__install -pD -m755 %name.so %buildroot%apache_moduledir/%name.so
%__install -pD -m644 %_sourcedir/%name.conf %buildroot%apache_addonconfdir/%name.conf
%post
/sbin/service httpd condrestart
%postun
/sbin/service httpd condrestart
%files
%apache_moduledir/*
%config(noreplace) %apache_addonconfdir/*
%changelog
…
Полный changelog можно просмотреть здесь
%define apache_addonconfdir %apache_confdir/addon-modules.d
%define apache_moduledir %_libdir/apache
Name: mod_geoip
Version: 1.2.9
Release: alt1.0
Summary: GeoIP database access module for Apache
Group: System/Servers
License: Apache
URL: http://www.maxmind.com/app/mod_geoip
Source: http://www.maxmind.com/download/geoip/api/mod_geoip/mod_geoip_%version.tar.gz
Source2: mod_geoip.conf
# Automatically added by buildreq on Tue May 23 2006
BuildRequires: apache-devel libGeoIP-devel
%description
mod_geoip looks up the IP address of the client end user.
%prep
%setup -q -n mod_geoip_%version
%build
%apache_apxs -c -I/usr/include/GeoIP -lGeoIP mod_geoip.c
%install
%__install -pD -m755 %name.so %buildroot%apache_moduledir/%name.so
%__install -pD -m644 %_sourcedir/%name.conf %buildroot%apache_addonconfdir/%name.conf
%post
/sbin/service httpd condrestart
%postun
/sbin/service httpd condrestart
%files
%apache_moduledir/*
%config(noreplace) %apache_addonconfdir/*
%changelog
…
Полный changelog можно просмотреть здесь