[packages/ipv6calc] - updated to 0.97.3, ip2location support on bcond
qboosh
qboosh at pld-linux.org
Sat Jul 19 23:28:48 CEST 2014
commit 8ae1c25d7865bb0dab7ca0af08667cdb5495016c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 19 23:33:53 2014 +0200
- updated to 0.97.3, ip2location support on bcond
ipv6calc.spec | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/ipv6calc.spec b/ipv6calc.spec
index 3dc045c..e61c09e 100644
--- a/ipv6calc.spec
+++ b/ipv6calc.spec
@@ -1,14 +1,20 @@
+#
+# Conditional build:
+%bcond_without geoip # GeoIP support
+%bcond_with ip2location # IP2Location support
+#
Summary: IPv6 address format change and calculation utility
Summary(pl.UTF-8): Narzędzie do zmiany formatu i przeliczania adresów IPv6
Name: ipv6calc
-Version: 0.97.2
+Version: 0.97.3
Release: 1
License: GPL v2
Group: Networking/Utilities
Source0: ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/%{name}-%{version}.tar.gz
-# Source0-md5: ff9f46b598f3e7faa8068600484e4af6
+# Source0-md5: 1fc9c1a14802638f21e59408faa721a6
URL: http://www.deepspace6.net/projects/ipv6calc.html
-BuildRequires: GeoIP-devel >= 1.4.1
+%{?with_geoip:BuildRequires: GeoIP-devel >= 1.4.1}
+%{?with_ip2location:BuildRequires: ip2location-c-devel}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -33,7 +39,9 @@ IPv6 do DNS lub odpytywaniu w rodzaju nslookup -q=ANY `ipv6calc -r
%build
%configure \
- --enable-geoip
+ %{?with_geoip:--enable-geoip} \
+ %{?with_ip2location:--enable-ip2location --with-ip2location-dyn-lib=libIP2Location.so.1}
+
%{__make}
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ipv6calc.git/commitdiff/8ae1c25d7865bb0dab7ca0af08667cdb5495016c
More information about the pld-cvs-commit
mailing list