]> git.pld-linux.org Git - packages/GeoIP.git/blob - GeoIP.spec
- release 1
[packages/GeoIP.git] / GeoIP.spec
1 Summary:        Library to find what country an IP address or hostnames originate from
2 Summary(pl):    Biblioteka do sprawdzenia z jakiego kraju pochodzi adres IP lub domena
3 Name:           GeoIP
4 Version:        1.3.1
5 Release:        1
6 License:        GPL
7 Group:          Libraries
8 Source0:        http://www.maxmind.com/download/geoip/api/c/%{name}-%{version}.tar.gz
9 # Source0-md5:  cbfb7be70e2b02140677008d6e902dac
10 # note: "c" is a filename, do not add '/'
11 URL:            http://www.maxmind.com/app/c
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  libtool
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 GeoIP is a C library that enables the user to find the country that
19 any IP address or hostname originates from. It uses a file based
20 database that is accurate as of March 2003. This database simply
21 contains IP blocks as keys, and countries as values. This database
22 should be more complete and accurate than using reverse DNS lookups.
23 Commercial databases and automatic update services are available from
24 http://www.maxmind.com/.
25
26 This library can be used to automatically select the geographically
27 closest mirror, to analyze your web server logs to determine the
28 countries of your visitors, for credit card fraud detection, and for
29 software export controls.
30
31 %description -l pl
32 GeoIP jest bibliotek± napisan± w C umo¿liwiaj±c± u¿ytkownikowi
33 odnalezienie pañstwa, z którego pochodzi dany adres IP lub domena.
34 U¿ywa do tego zapisanej w pliku bazy danych (z marca 2003). W bazie
35 tej adresy IP s± kluczami, a pañstwa warto¶ciami. Powinna ona byæ
36 dok³adniejsza ni¿ sprawdzanie odwrotnego DNS. Komercyjne bazy oraz
37 us³ugi automatycznych aktualizacji dostêpne s± na stronie
38 http://www.maxmind.com/.
39
40 Ta biblioteka mo¿e byæ u¿ywana do automatycznego wyboru najbli¿szego
41 geograficznie mirrora, analizy logów serwera WWW w celu okre¶lenia
42 kraju, z którego pochodz± odwiedzaj±cy, do wykrywania oszustw
43 dotycz±cych kart kredytowych oraz kontroli eksportu oprogramowania.
44
45 %package devel
46 Summary:        Header files for GeoIP library
47 Summary(pl):    Pliki nag³ówkowe biblioteki GeoIP
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}
50
51 %description devel
52 Header files for GeoIP library.
53
54 %description devel -l pl
55 Pliki nag³ówkowe biblioteki GeoIP.
56
57 %package static
58 Summary:        Static GeoIP library
59 Summary(pl):    Statyczna biblioteka GeoIP
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}
62
63 %description static
64 Static GeoIP library.
65
66 %description static -l pl
67 Statyczna biblioteka GeoIP.
68
69 %prep
70 %setup -q
71
72 %build
73 rm -f missing
74 %{__libtoolize}
75 %{__aclocal}
76 %{__autoconf}
77 %{__automake}
78 %configure
79 %{__make}
80
81 %{__make} check
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85
86 %{__make} install DESTDIR=$RPM_BUILD_ROOT
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %files
95 %defattr(644,root,root,755)
96 %doc AUTHORS ChangeLog README TODO
97 %attr(755,root,root) %{_bindir}/*
98 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
99 %{_datadir}/%{name}
100 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/GeoIP.conf
101 %{_mandir}/man1/*
102
103 %files devel
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/lib*.so
106 %{_libdir}/lib*.la
107 %{_includedir}/*
108
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/lib*.a
This page took 0.196202 seconds and 3 git commands to generate.