]> git.pld-linux.org Git - packages/GeoIP.git/blame - GeoIP.spec
- new Source0 URL, updated to 1.6.9
[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
1637b915
JB
4Version: 1.6.9
5Release: 1
6License: LGPL v2.1+ (library), CC-BY-SA v3.0 (database)
1a528dee 7Group: Libraries
1637b915
JB
8#Source0Download: https://github.com/maxmind/geoip-api-c/releases
9Source0: https://github.com/maxmind/geoip-api-c/releases/download/v%{version}/%{name}-%{version}.tar.gz
10# Source0-md5: 7475942dc8155046dddb4846f587a7e6
accc8b5b 11Patch0: %{name}-no_tests.patch
77d976d5 12# note: "c" is a filename, do not add '/'
62adc71f 13URL: http://www.maxmind.com/app/c
1637b915
JB
14BuildRequires: autoconf >= 2.63
15BuildRequires: automake >= 1:1.10
8a44bed0 16BuildRequires: libtool
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 49%package libs
1637b915
JB
50Summary: GeoIP library for GeoIP Legacy database format
51Summary(pl.UTF-8): Biblioteka GeoIP do obsługi baz danych w formacie GeoIP Legacy
52License: LGPL v2.1+
db42c233 53Group: Libraries
4b66015e 54Conflicts: GeoIP < 1.4.0-2
db42c233
PG
55
56%description libs
1637b915 57GeoIP library for GeoIP Legacy (dat) database format.
db42c233 58
13e550ec 59%description libs -l pl.UTF-8
1637b915 60Biblioteka GeoIP do obsługi baz danych w formacie GeoIP Legacy (dat).
db42c233 61
8a44bed0
JB
62%package devel
63Summary: Header files for GeoIP library
5d437b3a 64Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GeoIP
1637b915 65License: LGPL v2.1+
8a44bed0 66Group: Development/Libraries
db42c233 67Requires: %{name}-libs = %{version}-%{release}
8a44bed0
JB
68
69%description devel
70Header files for GeoIP library.
71
13e550ec
JR
72%description devel -l pl.UTF-8
73Pliki nagłówkowe biblioteki GeoIP.
8a44bed0
JB
74
75%package static
76Summary: Static GeoIP library
5d437b3a 77Summary(pl.UTF-8): Statyczna biblioteka GeoIP
1637b915 78License: LGPL v2.1+
8a44bed0 79Group: Development/Libraries
095fef3a 80Requires: %{name}-devel = %{version}-%{release}
8a44bed0
JB
81
82%description static
83Static GeoIP library.
89616f82 84
13e550ec 85%description static -l pl.UTF-8
8a44bed0 86Statyczna biblioteka GeoIP.
89616f82 87
1a528dee
AG
88%prep
89%setup -q
1637b915 90%patch0 -p1
1a528dee
AG
91
92%build
8a44bed0 93%{__libtoolize}
1637b915 94%{__aclocal} -I m4
1a528dee
AG
95%{__autoconf}
96%{__automake}
97%configure
98%{__make}
8a44bed0 99
1a528dee
AG
100%{__make} check
101
102%install
103rm -rf $RPM_BUILD_ROOT
1637b915 104install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP
1a528dee 105
1bbf49d9
MB
106%{__make} install \
107 DESTDIR=$RPM_BUILD_ROOT
4c9fcd03 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)
1637b915 117%doc AUTHORS ChangeLog LICENSE NEWS.md README.md
4c9fcd03
JB
118%attr(755,root,root) %{_bindir}/geoiplookup
119%attr(755,root,root) %{_bindir}/geoiplookup6
4c9fcd03
JB
120%{_mandir}/man1/geoiplookup.1*
121%{_mandir}/man1/geoiplookup6.1*
8a44bed0 122
db42c233
PG
123%files libs
124%defattr(644,root,root,755)
69e7ed9b 125%attr(755,root,root) %{_libdir}/libGeoIP.so.*.*.*
69e7ed9b 126%attr(755,root,root) %ghost %{_libdir}/libGeoIP.so.1
1637b915 127%dir %{_datadir}/GeoIP
db42c233 128
8a44bed0
JB
129%files devel
130%defattr(644,root,root,755)
4c9fcd03 131%attr(755,root,root) %{_libdir}/libGeoIP.so
4c9fcd03 132%{_libdir}/libGeoIP.la
1637b915
JB
133%{_includedir}/GeoIP.h
134%{_includedir}/GeoIPCity.h
0caf335f 135%{_pkgconfigdir}/geoip.pc
8a44bed0
JB
136
137%files static
138%defattr(644,root,root,755)
4c9fcd03 139%{_libdir}/libGeoIP.a
This page took 0.101278 seconds and 4 git commands to generate.