]> git.pld-linux.org Git - packages/GeoIP.git/blob - GeoIP.spec
- updated to 1.3.7 (Mateusz Murawski)
[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.7
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:  085b6095dfbf326dcce950caea08fecb
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 DESTDIR=$RPM_BUILD_ROOT
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post   -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
94
95 %files
96 %defattr(644,root,root,755)
97 %doc AUTHORS ChangeLog README TODO
98 %attr(755,root,root) %{_bindir}/*
99 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
100 %{_datadir}/%{name}
101 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/GeoIP.conf
102 %{_mandir}/man1/*
103
104 %files devel
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/lib*.so
107 %{_libdir}/lib*.la
108 %{_includedir}/*
109
110 %files static
111 %defattr(644,root,root,755)
112 %{_libdir}/lib*.a
This page took 0.057857 seconds and 3 git commands to generate.