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