libGeoIP/libGeoIP.spec

152 lines
5.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: libGeoIP
Version: 1.5.0
Release: 1mamba
Summary: GeoIP is a C library find what country an IP address or hostname originates from.
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: http://www.maxmind.com/app/c
Source: http://www.maxmind.com/download/geoip/api/c/GeoIP-%{version}.tar.gz
License: LGPL
Requires: Geo-db-LiteCountry
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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 December 2002. 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.
This module can be used to automatically select the geographically closest mirror, to analyze your web server logs to determine the countries of your visitors, for credit card fraud detection, and for software export controls.
**GeoIP databases updated way more often than library itself. So we will not package DB files**
GeoIP databases available in two versions basis and can be downloaded from.
http://www.maxmind.com/app/geolitecountry
http://www.maxmind.com/app/geolitecity
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
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 December 2002. 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.
This module can be used to automatically select the geographically closest mirror, to analyze your web server logs to determine the countries of your visitors, for credit card fraud detection, and for software export controls.
**GeoIP databases updated way more often than library itself. So we will not package DB files**
GeoIP databases available in two versions basis and can be downloaded from.
http://www.maxmind.com/app/geolitecountry
http://www.maxmind.com/app/geolitecity
This package contains static libraries and header files need for development.
%package static
Summary: GeoIP static libraries
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description static
%{name} is a C library that enables the user to find the country that any IP address or hostname originates from.
**GeoIP databases updated way more often than library itself. So we will not package DB files**
GeoIP databases available in two versions basis and can be downloaded from.
http://www.maxmind.com/app/geolitecountry
http://www.maxmind.com/app/geolitecity
This package contain static libraries for %{name}.
%package tools
Summary: GeoIP tools
Group: System/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
%{name} is a C library that enables the user to find the country that any IP address or hostname originates from.
**GeoIP databases updated way more often than library itself. So we will not package DB files**
GeoIP databases available in two versions basis and can be downloaded from.
http://www.maxmind.com/app/geolitecountry
http://www.maxmind.com/app/geolitecity
This package contain few tools for %{name} such as lookup, export, autoupdate.
%prep
%setup -q -n GeoIP-%{version}
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
rm -f %{buildroot}%{_sysconfdir}/GeoIP.conf.default
rm -f %{buildroot}%{_datadir}/GeoIP/GeoIP.dat
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/GeoIP.conf
%{_libdir}/libGeoIP.so.*
%{_libdir}/libGeoIPUpdate.so.*
%{_mandir}/man1/geoiplookup.1.gz
%{_mandir}/man1/geoiplookup6.1.gz
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/libGeoIP.la
%{_libdir}/libGeoIP.so
%{_libdir}/libGeoIPUpdate.la
%{_libdir}/libGeoIPUpdate.so
%{_libdir}/pkgconfig/geoip.pc
%doc ChangeLog README TODO
%files static
%defattr(-,root,root)
%{_libdir}/libGeoIP.a
%{_libdir}/libGeoIPUpdate.a
%files tools
%defattr(-,root,root)
%{_bindir}/geoiplookup6
%{_bindir}/geoiplookup
%{_bindir}/geoipupdate
%{_mandir}/man1/geoipupdate.1.gz
%changelog
* Fri Apr 19 2013 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
- automatic version update by autodist
* Mon Jun 11 2012 Automatic Build System <autodist@mambasoft.it> 1.4.8-1mamba
- automatic version update by autodist
* Mon May 09 2011 Automatic Build System <autodist@mambasoft.it> 1.4.7-1mamba
- automatic update by autodist
* Fri Mar 20 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.6-1mamba
- update to 1.4.6
* Fri Oct 03 2008 gil <puntogil@libero.it> 1.4.5-1mamba
- update to 1.4.5
* Sun Sep 07 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.4-2mamba
- use package as requirement for GeoIP database
- added missing defattr
- fixed descriptions text formatting
* Thu Aug 21 2008 gil <puntogil@libero.it> 1.4.4-1mamba
- package created by autospec