]> git.pld-linux.org Git - packages/GeoIP.git/blob - GeoIP.spec
- no macro in Conflicts for old package
[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.4.0
5 Release:        2
6 License:        GPL v2
7 Group:          Libraries
8 Source0:        http://www.maxmind.com/download/geoip/api/c/%{name}-%{version}.tar.gz
9 # Source0-md5:  da09a3d9a1a91e3d16c0a29e6b056c15
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
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):    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
57 Biblioteka GeoIP.
58
59 %package devel
60 Summary:        Header files for GeoIP library
61 Summary(pl):    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
69 Pliki nag³ówkowe biblioteki GeoIP.
70
71 %package static
72 Summary:        Static GeoIP library
73 Summary(pl):    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
81 Statyczna biblioteka GeoIP.
82
83 %prep
84 %setup -q
85
86 %build
87 rm -f missing
88 %{__libtoolize}
89 %{__aclocal}
90 %{__autoconf}
91 %{__automake}
92 %configure
93 %{__make}
94
95 %{__make} check
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/GeoIP.conf.default
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post libs      -p /sbin/ldconfig
108 %postun libs    -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc AUTHORS ChangeLog README TODO
113 %attr(755,root,root) %{_bindir}/*
114 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/GeoIP.conf
115 %{_mandir}/man1/*
116
117 %files libs
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
120 %{_datadir}/%{name}
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/lib*.so
125 %{_libdir}/lib*.la
126 %{_includedir}/*
127
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/lib*.a
This page took 0.081277 seconds and 4 git commands to generate.