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