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