]> git.pld-linux.org Git - packages/GeoIP.git/blame - GeoIP.spec
- initial import; adds DESTDIR in man/Makefile.am
[packages/GeoIP.git] / GeoIP.spec
CommitLineData
1a528dee
AG
1# ToDo:
2# - pl descirption
3# - split?
4Summary: library to find what country an IP address or hostnames originate from
5Summary(pl): biblioteka do sprawdzenia z jakiego kraju adres IP lub domena pochodzi
6Name: GeoIP
7Version: 1.2.0
8Release: 0.1
9License: GPL
10Group: Libraries
11Source0: http://www.maxmind.com/download/geoip/api/c/%{name}-%{version}.tar.gz
12Patch0: %{name}-man-makefile.patch
13URL: http://www.maxmind.com/app/c
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17GeoIP is a C library that enables the user to find the country that any IP
18address or hostname originates from. It uses a file based database that is
19accurate as of March 2003. This database simply contains IP blocks as keys,
20and countries as values. This database should be more complete and accurate
21than using reverse DNS lookups. Commercial databases and automatic update
22services are available from http://www.maxmind.com/
23
24This module can be used to automatically select the geographically closest
25mirror, to analyze your web server logs to determine the countries of your
26visitors, for credit card fraud detection, and for software export controls.
27
28%prep
29%setup -q
30%patch0 -p0
31
32%build
33rm -f missing
34%{__aclocal}
35%{__autoconf}
36%{__automake}
37%configure
38%{__make}
39%{__make} check
40
41%install
42rm -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
49rm -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}/*/*
This page took 0.055767 seconds and 4 git commands to generate.