Summary: AICCU - SixXS Automatic IPv6 Connectivity Client Utility
-Summary(pl): AICCU - Klient automatycznych po³±czeñ IPv6 z SixXS
+Summary(pl.UTF-8): AICCU - Klient automatycznych połączeń IPv6 z SixXS
Name: aiccu
-Version: 2005.01.31
-Release: 0.2
-License: GPL
+Version: 2007.01.15
+%define filever 20070115
+Release: 3
+License: BSD
Group: Networking/Utilities
-URL: http://www.sixxs.net/tools/aiccu/
-Vendor: SixXS
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Source0: %{name}_%{version}.tar.gz
+Source0: http://www.sixxs.net/archive/sixxs/aiccu/unix/%{name}_%{filever}.tar.gz
+# Source0-md5: c9bcc83644ed788e22a7c3f3d4021350
Patch0: %{name}-makefile.diff
+Patch1: 02_skip-strip.patch
+Patch2: 03_no-quiet-gcc.patch
+Patch3: 05_spelling-error.patch
+Patch4: 06_syslog_openlog.patch
+Patch5: 07_allow_tunnels.patch
+Patch6: 08_setup_script.patch
+Patch7: 09_binutils_gold.patch
+Patch8: 10_gnutls34.patch
+Patch9: 11_gnutls-cleanup.patch
+Patch10: 12_memset-sizeof.patch
+Patch11: 13_autotest_description.patch
+URL: http://www.sixxs.net/tools/aiccu/
+BuildRequires: gnutls-devel
+#Requires(post,preun): /sbin/chkconfig
+Requires: gnutls
Requires: iproute2
-Requires(post,preun): chkconfig
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This client automatically gives one IPv6 connectivity without having
to manually configure interfaces etc. One does need a SixXS account
and at least a tunnel. These can be freely & gratis requested from the
SixXS website. For more information about SixXS check
-http://www.sixxs.net
+<http://www.sixxs.net/>.
-%description -l pl
-Ten klient automatycznie pozwala na stworzenie po³±czenia IPv6 bez
-konieczno¶ci rêcznej konfiguracji interfejsów itp. Potrzeba do tego
-konta w serwisie SixXS oraz conajmniej tunelu. Mog± one byæ uzyskane
-na stronie SixXS http://www.sixx.net, któr± odwied¼ w celu uzyskania
-szczegó³ów.
+%description -l pl.UTF-8
+Ten klient automatycznie pozwala na stworzenie połączenia IPv6 bez
+konieczności ręcznej konfiguracji interfejsów itp. Potrzeba do tego
+konta w serwisie SixXS oraz co najmniej tunelu. Mogą one być uzyskane
+na stronie SixXS <http://www.sixx.net/>, na której można znaleźć
+więcej szczegółów.
%prep
%setup -q -n %{name}
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
%build
-%{__make} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+%{__make} \
+ RPM_OPT_FLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
%post
#if [ "$1" = "1" ]; then
-# chkconfig --add aiccu
+# /sbin/chkconfig --add aiccu
#fi
%preun
#if [ "$1" = "0" ]; then
-# service aiccu stop >/dev/null 2>&1
+# /etc/rc.d/init.d/aiccu stop >/dev/null 2>&1
# /sbin/chkconfig --del aiccu
#fi
-%clean
-make clean
-rm -rf $RPM_BUILD_ROOT
-
%files
%defattr(644,root,root,755)
-%attr(600, root, root) %{_sysconfdir}/aiccu.conf
%doc doc/README doc/LICENSE
%attr(755,root,root) %{_sbindir}/aiccu
-%config %{_sysconfdir}/aiccu.conf
-%attr(754,root,root) %config /etc/rc.d/init.d/aiccu
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aiccu.conf
+%attr(754,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/rc.d/init.d/aiccu