]> git.pld-linux.org Git - packages/ipv6calc.git/blame - ipv6calc.spec
- up to 4.1.0
[packages/ipv6calc.git] / ipv6calc.spec
CommitLineData
8ae1c25d
JB
1#
2# Conditional build:
3%bcond_without geoip # GeoIP support
4%bcond_with ip2location # IP2Location support
5#
bcfca455 6Summary: IPv6 address format change and calculation utility
65dad22a 7Summary(pl.UTF-8): Narzędzie do zmiany formatu i przeliczania adresów IPv6
bcfca455 8Name: ipv6calc
47303e47 9Version: 4.1.0
99f547fb 10Release: 1
b157bb03 11License: GPL v2
bcfca455 12Group: Networking/Utilities
7e35e510 13Source0: ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/%{name}-%{version}.tar.gz
47303e47 14# Source0-md5: 4891e8f53606c78c77a8185fe1b02fde
aa91d244 15URL: http://www.deepspace6.net/projects/ipv6calc.html
1113ce26
KM
16BuildRequires: perl-HTML-Parser
17BuildRequires: perl-Digest-SHA1
8ae1c25d
JB
18%{?with_geoip:BuildRequires: GeoIP-devel >= 1.4.1}
19%{?with_ip2location:BuildRequires: ip2location-c-devel}
bcfca455 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23ipv6calc is a small utility which formats and calculates IPv6
24addresses in different ways.
25
26Install this package, if you want to extend the existing address
27detection on IPv6 initscript setup or make life easier in adding
28reverse 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:
84279270 30<http://www.bieringer.de/linux/IPv6/ipv6calc/>.
8422013e 31
3d35ce27
JR
32%description -l pl.UTF-8
33ipv6calc to niewielkie narzędzie formatujące i przeliczające adresy
34IPv6 na różne sposoby. Ułatwia życie przy dodawaniu stref odwrotnych
8422013e 35IPv6 do DNS lub odpytywaniu w rodzaju nslookup -q=ANY `ipv6calc -r
3d35ce27 363ffe:400:100:f101::1/48`. Więcej szczegółów pod adresem
84279270 37<http://www.bieringer.de/linux/IPv6/ipv6calc/>.
bcfca455 38
39%prep
40%setup -q
8422013e 41
bcfca455 42%build
011e5ff4 43%configure \
1aa12ce4 44 %{!?with_geoip:--disable-geoip2} \
1113ce26 45 %{?with_ip2location:--enable-ip2location --with-ip2location-dyn-lib=libIP2Location.so.1}
8ae1c25d 46
787fe229
JB
47# makefiles don't propagate configure CFLAGS nor CFLAGS from initial make environment
48export CFLAGS="%{rpmcflags} %{rpmcppflags}"
011e5ff4 49%{__make}
d8fe120e 50
bcfca455 51%install
52rm -rf $RPM_BUILD_ROOT
787fe229 53
011e5ff4 54%{__make} install \
787fe229 55 DESTDIR=$RPM_BUILD_ROOT
bcfca455 56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
2fc3a613 62%doc ChangeLog CHANGES CREDITS examples/ INSTALLING README* TODO USAGE doc/ipv6calc.html ipv6calcweb/ipv6calcweb.cgi
bcfca455 63%attr(755,root,root) %{_bindir}/ipv6calc
011e5ff4
ŁK
64%attr(755,root,root) %{_bindir}/ipv6loganon
65%attr(755,root,root) %{_bindir}/ipv6logconv
66%attr(755,root,root) %{_bindir}/ipv6logstats
2fc3a613 67%{_datadir}/%{name}
011e5ff4
ŁK
68%{_mandir}/man8/ipv6calc.8*
69%{_mandir}/man8/ipv6loganon.8*
70%{_mandir}/man8/ipv6logconv.8*
71%{_mandir}/man8/ipv6logstats.8*
This page took 0.196027 seconds and 4 git commands to generate.