1 Summary: Library to find what country an IP address or hostnames originate from
2 Summary(pl): 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: da09a3d9a1a91e3d16c0a29e6b056c15
10 # note: "c" is a filename, do not add '/'
11 URL: http://www.maxmind.com/app/c
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: libtool
15 BuildRequires: zlib-devel
16 Requires: %{name}-libs = %{version}-%{release}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 GeoIP is a C library that enables the user to find the country that
21 any IP address or hostname originates from. It uses a file based
22 database that is accurate as of March 2003. This database simply
23 contains IP blocks as keys, and countries as values. This database
24 should be more complete and accurate than using reverse DNS lookups.
25 Commercial databases and automatic update services are available from
26 <http://www.maxmind.com/>.
28 This library can be used to automatically select the geographically
29 closest mirror, to analyze your web server logs to determine the
30 countries of your visitors, for credit card fraud detection, and for
31 software export controls.
34 GeoIP jest bibliotek± napisan± w C umo¿liwiaj±c± u¿ytkownikowi
35 odnalezienie pañstwa, z którego pochodzi dany adres IP lub domena.
36 U¿ywa do tego zapisanej w pliku bazy danych (z marca 2003). W bazie
37 tej adresy IP s± kluczami, a pañstwa warto¶ciami. Powinna ona byæ
38 dok³adniejsza ni¿ sprawdzanie odwrotnego DNS. Komercyjne bazy oraz
39 us³ugi automatycznych aktualizacji dostêpne s± na stronie
40 <http://www.maxmind.com/>.
42 Ta biblioteka mo¿e byæ u¿ywana do automatycznego wyboru najbli¿szego
43 geograficznie mirrora, analizy logów serwera WWW w celu okre¶lenia
44 kraju, z którego pochodz± odwiedzaj±cy, do wykrywania oszustw
45 dotycz±cych kart kredytowych oraz kontroli eksportu oprogramowania.
48 Summary: GeoIP Library
49 Summary(pl): Biblioteka GeoIP
51 Conflicts: GeoIP < 1.4.0-2
56 %description libs -l pl
60 Summary: Header files for GeoIP library
61 Summary(pl): Pliki nag³ówkowe biblioteki GeoIP
62 Group: Development/Libraries
63 Requires: %{name}-libs = %{version}-%{release}
66 Header files for GeoIP library.
68 %description devel -l pl
69 Pliki nag³ówkowe biblioteki GeoIP.
72 Summary: Static GeoIP library
73 Summary(pl): Statyczna biblioteka GeoIP
74 Group: Development/Libraries
75 Requires: %{name}-devel = %{version}-%{release}
80 %description static -l pl
81 Statyczna biblioteka GeoIP.
98 rm -rf $RPM_BUILD_ROOT
101 DESTDIR=$RPM_BUILD_ROOT
102 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/GeoIP.conf.default
105 rm -rf $RPM_BUILD_ROOT
107 %post libs -p /sbin/ldconfig
108 %postun libs -p /sbin/ldconfig
111 %defattr(644,root,root,755)
112 %doc AUTHORS ChangeLog README TODO
113 %attr(755,root,root) %{_bindir}/*
114 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/GeoIP.conf
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/lib*.so
129 %defattr(644,root,root,755)