1 Summary: Library to find what country an IP address or hostnames originate from
2 Summary(pl.UTF-8): Biblioteka do sprawdzenia z jakiego kraju pochodzi adres IP lub domena
8 Source0: http://www.maxmind.com/download/geoip/api/c/%{name}-%{version}.tar.gz
9 # Source0-md5: 36b82f3558e6e2ebdd11a56c5db21dbc
10 Patch0: %{name}-no_tests.patch
11 Patch1: %{name}-pc.patch
12 # note: "c" is a filename, do not add '/'
13 URL: http://www.maxmind.com/app/c
14 BuildRequires: autoconf >= 2.50
15 BuildRequires: automake
16 BuildRequires: libtool
17 BuildRequires: zlib-devel
18 Requires: %{name}-libs = %{version}-%{release}
19 Requires: GeoIP-db-Country >= 2009.05.02
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 GeoIP is a C library that enables the user to find the country that
24 any IP address or hostname originates from. It uses a file based
25 database that is accurate as of March 2003. This database simply
26 contains IP blocks as keys, and countries as values. This database
27 should be more complete and accurate than using reverse DNS lookups.
28 Commercial databases and automatic update services are available from
29 <http://www.maxmind.com/>.
31 This library can be used to automatically select the geographically
32 closest mirror, to analyze your web server logs to determine the
33 countries of your visitors, for credit card fraud detection, and for
34 software export controls.
36 %description -l pl.UTF-8
37 GeoIP jest biblioteką napisaną w C umożliwiającą użytkownikowi
38 odnalezienie państwa, z którego pochodzi dany adres IP lub domena.
39 Używa do tego zapisanej w pliku bazy danych (z marca 2003). W bazie
40 tej adresy IP są kluczami, a państwa wartościami. Powinna ona być
41 dokładniejsza niż sprawdzanie odwrotnego DNS. Komercyjne bazy oraz
42 usługi automatycznych aktualizacji dostępne są na stronie
43 <http://www.maxmind.com/>.
45 Ta biblioteka może być używana do automatycznego wyboru najbliższego
46 geograficznie mirrora, analizy logów serwera WWW w celu określenia
47 kraju, z którego pochodzą odwiedzający, do wykrywania oszustw
48 dotyczących kart kredytowych oraz kontroli eksportu oprogramowania.
51 Summary: GeoIP Library
52 Summary(pl.UTF-8): Biblioteka GeoIP
54 Conflicts: GeoIP < 1.4.0-2
59 %description libs -l pl.UTF-8
63 Summary: Header files for GeoIP library
64 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GeoIP
65 Group: Development/Libraries
66 Requires: %{name}-libs = %{version}-%{release}
69 Header files for GeoIP library.
71 %description devel -l pl.UTF-8
72 Pliki nagłówkowe biblioteki GeoIP.
75 Summary: Static GeoIP library
76 Summary(pl.UTF-8): Statyczna biblioteka GeoIP
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{version}-%{release}
83 %description static -l pl.UTF-8
84 Statyczna biblioteka GeoIP.
102 rm -rf $RPM_BUILD_ROOT
105 DESTDIR=$RPM_BUILD_ROOT
107 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/GeoIP.conf.default
109 # use GeoIP-db-Country package, which is updated more often (at least in PLD Linux)
110 %{__rm} $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIP.dat
113 rm -rf $RPM_BUILD_ROOT
115 %post libs -p /sbin/ldconfig
116 %postun libs -p /sbin/ldconfig
119 %defattr(644,root,root,755)
120 %doc AUTHORS ChangeLog README TODO
121 %attr(755,root,root) %{_bindir}/geoiplookup
122 %attr(755,root,root) %{_bindir}/geoiplookup6
123 %attr(755,root,root) %{_bindir}/geoipupdate
124 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/GeoIP.conf
125 %{_mandir}/man1/geoiplookup.1*
126 %{_mandir}/man1/geoiplookup6.1*
127 %{_mandir}/man1/geoipupdate.1*
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libGeoIP.so.*.*.*
132 %attr(755,root,root) %ghost %{_libdir}/libGeoIP.so.1
133 %attr(755,root,root) %{_libdir}/libGeoIPUpdate.so.*.*.*
134 %attr(755,root,root) %ghost %{_libdir}/libGeoIPUpdate.so.0
135 %dir %{_datadir}/%{name}
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/libGeoIP.so
140 %attr(755,root,root) %{_libdir}/libGeoIPUpdate.so
141 %{_libdir}/libGeoIP.la
142 %{_libdir}/libGeoIPUpdate.la
143 %{_includedir}/GeoIP*.h
144 %{_pkgconfigdir}/geoip.pc
147 %defattr(644,root,root,755)
148 %{_libdir}/libGeoIP.a
149 %{_libdir}/libGeoIPUpdate.a