3 %bcond_without geoip # GeoIP support
4 %bcond_with ip2location # IP2Location support
6 Summary: IPv6 address format change and calculation utility
7 Summary(pl.UTF-8): Narzędzie do zmiany formatu i przeliczania adresów IPv6
12 Group: Networking/Utilities
13 Source0: ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/%{name}-%{version}.tar.gz
14 # Source0-md5: 6ceb842c0ee8589b370183f1af3ff07d
15 URL: http://www.deepspace6.net/projects/ipv6calc.html
16 BuildRequires: perl-HTML-Parser
17 BuildRequires: perl-Digest-SHA1
18 %{?with_geoip:BuildRequires: GeoIP-devel >= 1.4.1}
19 %{?with_ip2location:BuildRequires: ip2location-c-devel}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 ipv6calc is a small utility which formats and calculates IPv6
24 addresses in different ways.
26 Install this package, if you want to extend the existing address
27 detection on IPv6 initscript setup or make life easier in adding
28 reverse IPv6 zones to DNS or using in DNS queries like nslookup -q=ANY
29 `ipv6calc -r 3ffe:400:100:f101::1/48` See also here for more details:
30 <http://www.bieringer.de/linux/IPv6/ipv6calc/>.
32 %description -l pl.UTF-8
33 ipv6calc to niewielkie narzędzie formatujące i przeliczające adresy
34 IPv6 na różne sposoby. Ułatwia życie przy dodawaniu stref odwrotnych
35 IPv6 do DNS lub odpytywaniu w rodzaju nslookup -q=ANY `ipv6calc -r
36 3ffe:400:100:f101::1/48`. Więcej szczegółów pod adresem
37 <http://www.bieringer.de/linux/IPv6/ipv6calc/>.
44 %{!?with_geoip:--disable-geoip2} \
45 %{?with_ip2location:--enable-ip2location --with-ip2location-dyn-lib=libIP2Location.so.1}
47 # makefiles don't propagate configure CFLAGS nor CFLAGS from initial make environment
48 export CFLAGS="%{rpmcflags} %{rpmcppflags}"
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc ChangeLog CHANGES CREDITS examples/ INSTALLING README* TODO USAGE doc/ipv6calc.html ipv6calcweb/ipv6calcweb.cgi
63 %attr(755,root,root) %{_bindir}/ipv6calc
64 %attr(755,root,root) %{_bindir}/ipv6loganon
65 %attr(755,root,root) %{_bindir}/ipv6logconv
66 %attr(755,root,root) %{_bindir}/ipv6logstats
68 %{_mandir}/man8/ipv6calc.8*
69 %{_mandir}/man8/ipv6loganon.8*
70 %{_mandir}/man8/ipv6logconv.8*
71 %{_mandir}/man8/ipv6logstats.8*