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