rpms/mod_geoip/devel mod_geoip.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Michael G. Fleming (mfleming) fedora-extras-commits at redhat.com
Mon Feb 20 22:45:12 UTC 2006


Author: mfleming

Update of /cvs/extras/rpms/mod_geoip/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1815/devel

Modified Files:
	.cvsignore sources 
Added Files:
	mod_geoip.spec 
Log Message:
auto-import mod_geoip-1.1.7-2 on branch devel from mod_geoip-1.1.7-2.src.rpm


--- NEW FILE mod_geoip.spec ---
Summary: GeoIP module for the Apache HTTP Server
Name: mod_geoip
Version: 1.1.7
Release: 2%{?dist}
License: Apache Software License
Group: System Environment/Daemons
URL: http://www.maxmind.com/app/mod_geoip
Source: http://www.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: GeoIP httpd httpd-mmn = %([ -a %{_includedir}/httpd/.mmn ] && cat %{_includedir}/httpd/.mmn || echo missing)
BuildRequires: httpd-devel GeoIP-devel

%description
mod_geoip is an Apache module for finding the country that a web request
originated from.  It uses the GeoIP library and database to perform
the lookup.  It is free software, licensed under the Apache license.

%prep

%setup -n mod_geoip2_%{version}

%build
/usr/sbin/apxs -Wc,"%{optflags}" -Wl,"-lGeoIP" -c mod_geoip.c

%install
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/
install -Dp .libs/mod_geoip.so %{buildroot}%{_libdir}/httpd/modules/mod_geoip.so

%{__cat} << EOF > %{buildroot}%{_sysconfdir}/httpd/conf.d/mod_geoip.conf
LoadModule geoip_module modules/mod_geoip.so

<IfModule mod_geoip.c>
  GeoIPEnable On
  GeoIPDBFile /usr/share/GeoIP/GeoIP.dat
</IfModule>

EOF

%clean
rm -rf %{buildroot}

%files
%defattr (-,root,root)
%doc INSTALL README* Changes
%{_libdir}/httpd/modules/mod_geoip.so
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mod_geoip.conf

%changelog
* Sat Feb 18 2006 Michael Fleming <mfleming+rpm at enlartenment.com> 1.1.7-2
- Small cleanups, including a saner Requires: for httpd
- Don't strip the binary

* Sun Feb 5 2006 Michael Fleming <mfleming+rpm at enlartenment.com> 1.1.7-1
- Initial review package for Extras



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/mod_geoip/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	20 Feb 2006 22:44:29 -0000	1.1
+++ .cvsignore	20 Feb 2006 22:45:12 -0000	1.2
@@ -0,0 +1 @@
+mod_geoip2_1.1.7.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/mod_geoip/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	20 Feb 2006 22:44:29 -0000	1.1
+++ sources	20 Feb 2006 22:45:12 -0000	1.2
@@ -0,0 +1 @@
+ca02b8b955d95d659037f8c633908ae9  mod_geoip2_1.1.7.tar.gz




More information about the scm-commits mailing list