]> git.pld-linux.org Git - packages/ipv6calc.git/commitdiff
- updated to 0.97.3, ip2location support on bcond auto/th/ipv6calc-0.97.3-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 19 Jul 2014 21:33:53 +0000 (23:33 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 19 Jul 2014 21:33:53 +0000 (23:33 +0200)
ipv6calc.spec

index 3dc045ce234fa9ab66c8f3e3bf1aed70430a99b4..e61c09e12421dc246227ce6b10230f16c0bb356f 100644 (file)
@@ -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
This page took 0.101801 seconds and 4 git commands to generate.