File dba-geoip-148-static.spec of Package dba-geoip-148-static
#
# spec file for package dba-geoip-148-static
#
%define maketest 0
%define real_name GeoIP
%define version 1.4.8
%define vers 148
%define prefix /DBA/geoip/%{version}
Name: dba-geoip-%{vers}-static
Summary: C library for country/city/organization to IP address or hostname mapping
Version: %{version}
Release: 1
License: LGPLv2+
Group: Development/Libraries
Url: http://www.maxmind.com/app/c
Source0: http://www.maxmind.com/download/geoip/api/c/GeoIP-%{version}.tar.gz
Source1: dba-geoip-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: zlib-devel
Conflicts: dba-geoip-148
%if 0%{?suse_version} >= 1100
BuildRequires: -post-build-checks
%endif
%description
GeoIP is a C library that enables the user to find the country that any IP
address or hostname originates from. It uses a file based database that is
accurate as of March 2003. This database simply contains IP blocks as keys, and
countries as values. This database should be more complete and accurate than
using reverse DNS lookups.
%prep
%setup -q -n %{real_name}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing -Wall"
./configure \
--prefix=%prefix \
--enable-static \
--disable-shared \
--disable-dependency-tracking
make %{?_smp_mflags}
%install
make DESTDIR=%buildroot install
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%dir %{prefix}
%{prefix}/bin
%{prefix}/etc
%{prefix}/include
%{prefix}/lib
%{prefix}/share
%changelog
* Wed Nov 27 2013 Holger Manthey <holger.manthey@bertelsmann.de>
- add fPIC for relocation
* Fri Jan 11 2013 Holger Manthey <holger.manthey@bertelsmann.de>
- inital version