+# TODO: decide to use libinet6 or not
+Summary: Simple tunneling for applications that don't speak IPv6
+Summary(pl): Proste narzêdzie do tunelowania
Name: 6tunnel
-Version: 0.04
-Release: 1
-Group: Networking/Utilities
-Group(pl): Sieciowe/Narzêdzia
+Version: 0.11
+Release: 0.rc1
License: GPL
+Group: Networking/Utilities
+Source0: http://toxygen.net/6tunnel/%{name}-%{version}rc1.tar.gz
+# Source0-md5: b325fa9d238e32195fbb3fc3646b0d28
+URL: http://toxygen.net/6tunnel/
+# probably not needed, but used if found, so BR or BC is needed
+# to force stable build environment
+# (should be disabled in configure if not needed)
+BuildRequires: autoconf
+BuildRequires: libinet6
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Source0: ftp://bzium.eu.org/pub/%{name}-%{version}.tar.gz
-Summary: Simple tunneling for applications that don't speak IPv6.
-Summary(pl): Proste narzêdzie do tunelowania.
%description
-If you want to access some services that are avaiable only for IPv6 hosts
-and the application doesn't support it or you have no time to play with
-patches, use this tool. Simple `6tunnel 6668 irc6.net 6667' will do :)
+If you want to access some services that are avaiable only for IPv6
+hosts and the application doesn't support it or you have no time to
+play with patches, use this tool. Simple `6tunnel 6668 irc6.net 6667'
+will do :)
%description -l pl
Je¶li chcesz uzyskaæ dostêp do niektórych us³ug, dostêpnych wy³±cznie
narzêdzia. Np. `6tunnel 6668 irc6.net 6667'.
%prep
-%setup -q -n %{name}
+%setup -q -n %{name}-0.11
%build
-make CC="gcc $RPM_OPT_FLAGS -Wall"
+%{__autoconf}
+%configure
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-install -s 6tunnel $RPM_BUILD_ROOT%{_bindir}
-install 6tunnel.1 $RPM_BUILD_ROOT%{_mandir}/man1
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/*
+install 6tunnel $RPM_BUILD_ROOT%{_bindir}
+install 6tunnel.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc ChangeLog contrib/cron.sh
%attr(755,root,root) %{_bindir}/6tunnel
-%{_mandir}/man1/6tunnel.*
+%{_mandir}/man?/*