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: d95c34cf8ebd48e357b1812db5d75cf1
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.
33 %description -l pl.UTF-8
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.UTF-8): Biblioteka GeoIP
51 Conflicts: GeoIP < 1.4.0-2
56 %description libs -l pl.UTF-8
60 Summary: Header files for GeoIP library
61 Summary(pl.UTF-8): 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.UTF-8
69 Pliki nagłówkowe biblioteki GeoIP.
72 Summary: Static GeoIP library
73 Summary(pl.UTF-8): Statyczna biblioteka GeoIP
74 Group: Development/Libraries
75 Requires: %{name}-devel = %{version}-%{release}
80 %description static -l pl.UTF-8
81 Statyczna biblioteka GeoIP.
97 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT
101 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/GeoIP.conf.default
104 rm -rf $RPM_BUILD_ROOT
106 %post libs -p /sbin/ldconfig
107 %postun libs -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %doc AUTHORS ChangeLog README TODO
112 %attr(755,root,root) %{_bindir}/*
113 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/GeoIP.conf
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/lib*.so
128 %defattr(644,root,root,755)