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