]>
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 |
1637b915 JB |
4 | Version: 1.6.9 |
5 | Release: 1 | |
6 | License: LGPL v2.1+ (library), CC-BY-SA v3.0 (database) | |
1a528dee | 7 | Group: Libraries |
1637b915 JB |
8 | #Source0Download: https://github.com/maxmind/geoip-api-c/releases |
9 | Source0: https://github.com/maxmind/geoip-api-c/releases/download/v%{version}/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 7475942dc8155046dddb4846f587a7e6 | |
accc8b5b | 11 | Patch0: %{name}-no_tests.patch |
77d976d5 | 12 | # note: "c" is a filename, do not add '/' |
62adc71f | 13 | URL: http://www.maxmind.com/app/c |
1637b915 JB |
14 | BuildRequires: autoconf >= 2.63 |
15 | BuildRequires: automake >= 1:1.10 | |
8a44bed0 | 16 | BuildRequires: libtool |
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 | 49 | %package libs |
1637b915 JB |
50 | Summary: GeoIP library for GeoIP Legacy database format |
51 | Summary(pl.UTF-8): Biblioteka GeoIP do obsługi baz danych w formacie GeoIP Legacy | |
52 | License: LGPL v2.1+ | |
db42c233 | 53 | Group: Libraries |
4b66015e | 54 | Conflicts: GeoIP < 1.4.0-2 |
db42c233 PG |
55 | |
56 | %description libs | |
1637b915 | 57 | GeoIP library for GeoIP Legacy (dat) database format. |
db42c233 | 58 | |
13e550ec | 59 | %description libs -l pl.UTF-8 |
1637b915 | 60 | Biblioteka GeoIP do obsługi baz danych w formacie GeoIP Legacy (dat). |
db42c233 | 61 | |
8a44bed0 JB |
62 | %package devel |
63 | Summary: Header files for GeoIP library | |
5d437b3a | 64 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GeoIP |
1637b915 | 65 | License: LGPL v2.1+ |
8a44bed0 | 66 | Group: Development/Libraries |
db42c233 | 67 | Requires: %{name}-libs = %{version}-%{release} |
8a44bed0 JB |
68 | |
69 | %description devel | |
70 | Header files for GeoIP library. | |
71 | ||
13e550ec JR |
72 | %description devel -l pl.UTF-8 |
73 | Pliki nagłówkowe biblioteki GeoIP. | |
8a44bed0 JB |
74 | |
75 | %package static | |
76 | Summary: Static GeoIP library | |
5d437b3a | 77 | Summary(pl.UTF-8): Statyczna biblioteka GeoIP |
1637b915 | 78 | License: LGPL v2.1+ |
8a44bed0 | 79 | Group: Development/Libraries |
095fef3a | 80 | Requires: %{name}-devel = %{version}-%{release} |
8a44bed0 JB |
81 | |
82 | %description static | |
83 | Static GeoIP library. | |
89616f82 | 84 | |
13e550ec | 85 | %description static -l pl.UTF-8 |
8a44bed0 | 86 | Statyczna biblioteka GeoIP. |
89616f82 | 87 | |
1a528dee AG |
88 | %prep |
89 | %setup -q | |
1637b915 | 90 | %patch0 -p1 |
1a528dee AG |
91 | |
92 | %build | |
8a44bed0 | 93 | %{__libtoolize} |
1637b915 | 94 | %{__aclocal} -I m4 |
1a528dee AG |
95 | %{__autoconf} |
96 | %{__automake} | |
97 | %configure | |
98 | %{__make} | |
8a44bed0 | 99 | |
1a528dee AG |
100 | %{__make} check |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
1637b915 | 104 | install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP |
1a528dee | 105 | |
1bbf49d9 MB |
106 | %{__make} install \ |
107 | DESTDIR=$RPM_BUILD_ROOT | |
4c9fcd03 | 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) | |
1637b915 | 117 | %doc AUTHORS ChangeLog LICENSE NEWS.md README.md |
4c9fcd03 JB |
118 | %attr(755,root,root) %{_bindir}/geoiplookup |
119 | %attr(755,root,root) %{_bindir}/geoiplookup6 | |
4c9fcd03 JB |
120 | %{_mandir}/man1/geoiplookup.1* |
121 | %{_mandir}/man1/geoiplookup6.1* | |
8a44bed0 | 122 | |
db42c233 PG |
123 | %files libs |
124 | %defattr(644,root,root,755) | |
69e7ed9b | 125 | %attr(755,root,root) %{_libdir}/libGeoIP.so.*.*.* |
69e7ed9b | 126 | %attr(755,root,root) %ghost %{_libdir}/libGeoIP.so.1 |
1637b915 | 127 | %dir %{_datadir}/GeoIP |
db42c233 | 128 | |
8a44bed0 JB |
129 | %files devel |
130 | %defattr(644,root,root,755) | |
4c9fcd03 | 131 | %attr(755,root,root) %{_libdir}/libGeoIP.so |
4c9fcd03 | 132 | %{_libdir}/libGeoIP.la |
1637b915 JB |
133 | %{_includedir}/GeoIP.h |
134 | %{_includedir}/GeoIPCity.h | |
0caf335f | 135 | %{_pkgconfigdir}/geoip.pc |
8a44bed0 JB |
136 | |
137 | %files static | |
138 | %defattr(644,root,root,755) | |
4c9fcd03 | 139 | %{_libdir}/libGeoIP.a |