]>
Commit | Line | Data |
---|---|---|
1a528dee AG |
1 | # ToDo: |
2 | # - pl descirption | |
3 | # - split? | |
4 | Summary: library to find what country an IP address or hostnames originate from | |
5 | Summary(pl): biblioteka do sprawdzenia z jakiego kraju adres IP lub domena pochodzi | |
6 | Name: GeoIP | |
7 | Version: 1.2.0 | |
8 | Release: 0.1 | |
9 | License: GPL | |
10 | Group: Libraries | |
11 | Source0: http://www.maxmind.com/download/geoip/api/c/%{name}-%{version}.tar.gz | |
12 | Patch0: %{name}-man-makefile.patch | |
13 | URL: http://www.maxmind.com/app/c | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | GeoIP is a C library that enables the user to find the country that any IP | |
18 | address or hostname originates from. It uses a file based database that is | |
19 | accurate as of March 2003. This database simply contains IP blocks as keys, | |
20 | and countries as values. This database should be more complete and accurate | |
21 | than using reverse DNS lookups. Commercial databases and automatic update | |
22 | services are available from http://www.maxmind.com/ | |
23 | ||
24 | This module can be used to automatically select the geographically closest | |
25 | mirror, to analyze your web server logs to determine the countries of your | |
26 | visitors, for credit card fraud detection, and for software export controls. | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | %patch0 -p0 | |
31 | ||
32 | %build | |
33 | rm -f missing | |
34 | %{__aclocal} | |
35 | %{__autoconf} | |
36 | %{__automake} | |
37 | %configure | |
38 | %{__make} | |
39 | %{__make} check | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | # create directories if necessary | |
44 | #install -d $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %post -p /sbin/ldconfig | |
52 | ||
53 | %postun -p /sbin/ldconfig | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc AUTHORS ChangeLog README TODO | |
58 | %attr(755,root,root) %{_bindir}/* | |
59 | %{_datadir}/%{name} | |
60 | %{_sysconfdir}/* | |
61 | %{_includedir}/* | |
62 | %{_libdir}/* | |
63 | %{_mandir}/*/* |