]>
Commit | Line | Data |
---|---|---|
8ae1c25d JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without geoip # GeoIP support | |
4 | %bcond_with ip2location # IP2Location support | |
5 | # | |
bcfca455 | 6 | Summary: IPv6 address format change and calculation utility |
65dad22a | 7 | Summary(pl.UTF-8): Narzędzie do zmiany formatu i przeliczania adresów IPv6 |
bcfca455 | 8 | Name: ipv6calc |
8ae1c25d | 9 | Version: 0.97.3 |
0c218b16 | 10 | Release: 1 |
b157bb03 | 11 | License: GPL v2 |
bcfca455 | 12 | Group: Networking/Utilities |
7e35e510 | 13 | Source0: ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/%{name}-%{version}.tar.gz |
8ae1c25d | 14 | # Source0-md5: 1fc9c1a14802638f21e59408faa721a6 |
aa91d244 | 15 | URL: http://www.deepspace6.net/projects/ipv6calc.html |
8ae1c25d JB |
16 | %{?with_geoip:BuildRequires: GeoIP-devel >= 1.4.1} |
17 | %{?with_ip2location:BuildRequires: ip2location-c-devel} | |
bcfca455 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | ipv6calc is a small utility which formats and calculates IPv6 | |
22 | addresses in different ways. | |
23 | ||
24 | Install this package, if you want to extend the existing address | |
25 | detection on IPv6 initscript setup or make life easier in adding | |
26 | reverse IPv6 zones to DNS or using in DNS queries like nslookup -q=ANY | |
27 | `ipv6calc -r 3ffe:400:100:f101::1/48` See also here for more details: | |
84279270 | 28 | <http://www.bieringer.de/linux/IPv6/ipv6calc/>. |
8422013e | 29 | |
3d35ce27 JR |
30 | %description -l pl.UTF-8 |
31 | ipv6calc to niewielkie narzędzie formatujące i przeliczające adresy | |
32 | IPv6 na różne sposoby. Ułatwia życie przy dodawaniu stref odwrotnych | |
8422013e | 33 | IPv6 do DNS lub odpytywaniu w rodzaju nslookup -q=ANY `ipv6calc -r |
3d35ce27 | 34 | 3ffe:400:100:f101::1/48`. Więcej szczegółów pod adresem |
84279270 | 35 | <http://www.bieringer.de/linux/IPv6/ipv6calc/>. |
bcfca455 | 36 | |
37 | %prep | |
38 | %setup -q | |
8422013e | 39 | |
bcfca455 | 40 | %build |
011e5ff4 | 41 | %configure \ |
8ae1c25d JB |
42 | %{?with_geoip:--enable-geoip} \ |
43 | %{?with_ip2location:--enable-ip2location --with-ip2location-dyn-lib=libIP2Location.so.1} | |
44 | ||
011e5ff4 | 45 | %{__make} |
d8fe120e | 46 | |
bcfca455 | 47 | %install |
48 | rm -rf $RPM_BUILD_ROOT | |
011e5ff4 ŁK |
49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
bcfca455 | 51 | |
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
fcb5138d | 57 | %doc ChangeLog README CREDITS TODO doc/ipv6calc.html ipv6calcweb/ipv6calcweb.cgi |
bcfca455 | 58 | %attr(755,root,root) %{_bindir}/ipv6calc |
011e5ff4 ŁK |
59 | %attr(755,root,root) %{_bindir}/ipv6loganon |
60 | %attr(755,root,root) %{_bindir}/ipv6logconv | |
61 | %attr(755,root,root) %{_bindir}/ipv6logstats | |
62 | %{_mandir}/man8/ipv6calc.8* | |
63 | %{_mandir}/man8/ipv6loganon.8* | |
64 | %{_mandir}/man8/ipv6logconv.8* | |
65 | %{_mandir}/man8/ipv6logstats.8* |