]>
Commit | Line | Data |
---|---|---|
8a44bed0 | 1 | Summary: Library to find what country an IP address or hostnames originate from |
5d437b3a | 2 | Summary(pl.UTF-8): Biblioteka do sprawdzenia z jakiego kraju pochodzi adres IP lub domena |
1a528dee | 3 | Name: GeoIP |
6b4cb156 | 4 | Version: 1.4.8 |
01d8e1f7 | 5 | Release: 1 |
1bbf49d9 | 6 | License: GPL v2 |
1a528dee AG |
7 | Group: Libraries |
8 | Source0: http://www.maxmind.com/download/geoip/api/c/%{name}-%{version}.tar.gz | |
6b4cb156 | 9 | # Source0-md5: 05b7300435336231b556df5ab36f326d |
accc8b5b | 10 | Patch0: %{name}-no_tests.patch |
77d976d5 | 11 | # note: "c" is a filename, do not add '/' |
62adc71f | 12 | URL: http://www.maxmind.com/app/c |
8a44bed0 JB |
13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
15 | BuildRequires: libtool | |
db6d59ff | 16 | BuildRequires: zlib-devel |
db42c233 | 17 | Requires: %{name}-libs = %{version}-%{release} |
095d2529 | 18 | Requires: GeoIP-db-Country >= 2009.05.02 |
1a528dee AG |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
7724721c AG |
22 | GeoIP is a C library that enables the user to find the country that |
23 | any IP address or hostname originates from. It uses a file based | |
24 | database that is accurate as of March 2003. This database simply | |
25 | contains IP blocks as keys, and countries as values. This database | |
26 | should be more complete and accurate than using reverse DNS lookups. | |
27 | Commercial databases and automatic update services are available from | |
095fef3a | 28 | <http://www.maxmind.com/>. |
1a528dee | 29 | |
8a44bed0 | 30 | This library can be used to automatically select the geographically |
7724721c AG |
31 | closest mirror, to analyze your web server logs to determine the |
32 | countries of your visitors, for credit card fraud detection, and for | |
33 | software export controls. | |
1a528dee | 34 | |
13e550ec JR |
35 | %description -l pl.UTF-8 |
36 | GeoIP jest biblioteką napisaną w C umożliwiającą użytkownikowi | |
37 | odnalezienie państwa, z którego pochodzi dany adres IP lub domena. | |
38 | Używa do tego zapisanej w pliku bazy danych (z marca 2003). W bazie | |
39 | tej adresy IP są kluczami, a państwa wartościami. Powinna ona być | |
40 | dokładniejsza niż sprawdzanie odwrotnego DNS. Komercyjne bazy oraz | |
41 | usługi automatycznych aktualizacji dostępne są na stronie | |
095fef3a | 42 | <http://www.maxmind.com/>. |
8a44bed0 | 43 | |
13e550ec JR |
44 | Ta biblioteka może być używana do automatycznego wyboru najbliższego |
45 | geograficznie mirrora, analizy logów serwera WWW w celu określenia | |
46 | kraju, z którego pochodzą odwiedzający, do wykrywania oszustw | |
47 | dotyczących kart kredytowych oraz kontroli eksportu oprogramowania. | |
8a44bed0 | 48 | |
db42c233 PG |
49 | %package libs |
50 | Summary: GeoIP Library | |
5d437b3a | 51 | Summary(pl.UTF-8): Biblioteka GeoIP |
db42c233 | 52 | Group: Libraries |
4b66015e | 53 | Conflicts: GeoIP < 1.4.0-2 |
db42c233 PG |
54 | |
55 | %description libs | |
56 | GeoIP library. | |
57 | ||
13e550ec | 58 | %description libs -l pl.UTF-8 |
db42c233 PG |
59 | Biblioteka GeoIP. |
60 | ||
8a44bed0 JB |
61 | %package devel |
62 | Summary: Header files for GeoIP library | |
5d437b3a | 63 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GeoIP |
8a44bed0 | 64 | Group: Development/Libraries |
db42c233 | 65 | Requires: %{name}-libs = %{version}-%{release} |
8a44bed0 JB |
66 | |
67 | %description devel | |
68 | Header files for GeoIP library. | |
69 | ||
13e550ec JR |
70 | %description devel -l pl.UTF-8 |
71 | Pliki nagłówkowe biblioteki GeoIP. | |
8a44bed0 JB |
72 | |
73 | %package static | |
74 | Summary: Static GeoIP library | |
5d437b3a | 75 | Summary(pl.UTF-8): Statyczna biblioteka GeoIP |
8a44bed0 | 76 | Group: Development/Libraries |
095fef3a | 77 | Requires: %{name}-devel = %{version}-%{release} |
8a44bed0 JB |
78 | |
79 | %description static | |
80 | Static GeoIP library. | |
89616f82 | 81 | |
13e550ec | 82 | %description static -l pl.UTF-8 |
8a44bed0 | 83 | Statyczna biblioteka GeoIP. |
89616f82 | 84 | |
1a528dee AG |
85 | %prep |
86 | %setup -q | |
accc8b5b | 87 | %patch0 -p0 |
1a528dee AG |
88 | |
89 | %build | |
8a44bed0 | 90 | %{__libtoolize} |
1a528dee AG |
91 | %{__aclocal} |
92 | %{__autoconf} | |
93 | %{__automake} | |
94 | %configure | |
95 | %{__make} | |
8a44bed0 | 96 | |
1a528dee AG |
97 | %{__make} check |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
1a528dee | 101 | |
1bbf49d9 MB |
102 | %{__make} install \ |
103 | DESTDIR=$RPM_BUILD_ROOT | |
2ce296ee | 104 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/GeoIP.conf.default |
1a528dee | 105 | |
69e7ed9b ER |
106 | # use GeoIP-db-Country package, which is updated more often (at least in PLD Linux) |
107 | rm -f $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIP.dat | |
108 | ||
1a528dee AG |
109 | %clean |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
77d976d5 JB |
112 | %post libs -p /sbin/ldconfig |
113 | %postun libs -p /sbin/ldconfig | |
1a528dee AG |
114 | |
115 | %files | |
116 | %defattr(644,root,root,755) | |
117 | %doc AUTHORS ChangeLog README TODO | |
118 | %attr(755,root,root) %{_bindir}/* | |
378958a1 | 119 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/GeoIP.conf |
8a44bed0 JB |
120 | %{_mandir}/man1/* |
121 | ||
db42c233 PG |
122 | %files libs |
123 | %defattr(644,root,root,755) | |
69e7ed9b ER |
124 | %attr(755,root,root) %{_libdir}/libGeoIP.so.*.*.* |
125 | %attr(755,root,root) %{_libdir}/libGeoIPUpdate.so.*.*.* | |
126 | %attr(755,root,root) %ghost %{_libdir}/libGeoIP.so.1 | |
127 | %attr(755,root,root) %ghost %{_libdir}/libGeoIPUpdate.so.0 | |
128 | %dir %{_datadir}/%{name} | |
db42c233 | 129 | |
8a44bed0 JB |
130 | %files devel |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_libdir}/lib*.so | |
133 | %{_libdir}/lib*.la | |
1a528dee | 134 | %{_includedir}/* |
8a44bed0 JB |
135 | |
136 | %files static | |
137 | %defattr(644,root,root,755) | |
138 | %{_libdir}/lib*.a |