]>
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 |
260361b0 | 4 | Version: 1.4.2 |
c04f3c98 | 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 | |
260361b0 | 9 | # Source0-md5: d310da791d1d760edad25d33f2166fcd |
77d976d5 | 10 | # note: "c" is a filename, do not add '/' |
62adc71f | 11 | URL: http://www.maxmind.com/app/c |
8a44bed0 JB |
12 | BuildRequires: autoconf |
13 | BuildRequires: automake | |
14 | BuildRequires: libtool | |
db6d59ff | 15 | BuildRequires: zlib-devel |
db42c233 | 16 | Requires: %{name}-libs = %{version}-%{release} |
1a528dee AG |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
7724721c AG |
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 | |
095fef3a | 26 | <http://www.maxmind.com/>. |
1a528dee | 27 | |
8a44bed0 | 28 | This library can be used to automatically select the geographically |
7724721c AG |
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. | |
1a528dee | 32 | |
13e550ec JR |
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 | |
095fef3a | 40 | <http://www.maxmind.com/>. |
8a44bed0 | 41 | |
13e550ec JR |
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. | |
8a44bed0 | 46 | |
db42c233 PG |
47 | %package libs |
48 | Summary: GeoIP Library | |
5d437b3a | 49 | Summary(pl.UTF-8): Biblioteka GeoIP |
db42c233 | 50 | Group: Libraries |
4b66015e | 51 | Conflicts: GeoIP < 1.4.0-2 |
db42c233 PG |
52 | |
53 | %description libs | |
54 | GeoIP library. | |
55 | ||
13e550ec | 56 | %description libs -l pl.UTF-8 |
db42c233 PG |
57 | Biblioteka GeoIP. |
58 | ||
8a44bed0 JB |
59 | %package devel |
60 | Summary: Header files for GeoIP library | |
5d437b3a | 61 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GeoIP |
8a44bed0 | 62 | Group: Development/Libraries |
db42c233 | 63 | Requires: %{name}-libs = %{version}-%{release} |
8a44bed0 JB |
64 | |
65 | %description devel | |
66 | Header files for GeoIP library. | |
67 | ||
13e550ec JR |
68 | %description devel -l pl.UTF-8 |
69 | Pliki nagłówkowe biblioteki GeoIP. | |
8a44bed0 JB |
70 | |
71 | %package static | |
72 | Summary: Static GeoIP library | |
5d437b3a | 73 | Summary(pl.UTF-8): Statyczna biblioteka GeoIP |
8a44bed0 | 74 | Group: Development/Libraries |
095fef3a | 75 | Requires: %{name}-devel = %{version}-%{release} |
8a44bed0 JB |
76 | |
77 | %description static | |
78 | Static GeoIP library. | |
89616f82 | 79 | |
13e550ec | 80 | %description static -l pl.UTF-8 |
8a44bed0 | 81 | Statyczna biblioteka GeoIP. |
89616f82 | 82 | |
1a528dee AG |
83 | %prep |
84 | %setup -q | |
1a528dee AG |
85 | |
86 | %build | |
8a44bed0 | 87 | %{__libtoolize} |
1a528dee AG |
88 | %{__aclocal} |
89 | %{__autoconf} | |
90 | %{__automake} | |
91 | %configure | |
92 | %{__make} | |
8a44bed0 | 93 | |
1a528dee AG |
94 | %{__make} check |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
1a528dee | 98 | |
1bbf49d9 MB |
99 | %{__make} install \ |
100 | DESTDIR=$RPM_BUILD_ROOT | |
2ce296ee | 101 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/GeoIP.conf.default |
1a528dee AG |
102 | |
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
77d976d5 JB |
106 | %post libs -p /sbin/ldconfig |
107 | %postun libs -p /sbin/ldconfig | |
1a528dee AG |
108 | |
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc AUTHORS ChangeLog README TODO | |
112 | %attr(755,root,root) %{_bindir}/* | |
378958a1 | 113 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/GeoIP.conf |
8a44bed0 JB |
114 | %{_mandir}/man1/* |
115 | ||
db42c233 PG |
116 | %files libs |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
119 | %{_datadir}/%{name} | |
120 | ||
8a44bed0 JB |
121 | %files devel |
122 | %defattr(644,root,root,755) | |
123 | %attr(755,root,root) %{_libdir}/lib*.so | |
124 | %{_libdir}/lib*.la | |
1a528dee | 125 | %{_includedir}/* |
8a44bed0 JB |
126 | |
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/lib*.a |