Summary: Simple IRC bouncer
Summary(pl): Proste narzêdzie do tunelowania irc
Name: bnc
-Version: 2.8.4
+Version: 2.9.1
Release: 1
License: GPL
Group: Networking/Utilities
-Group(de): Netzwerkwesen/Werkzeuge
-Group(pl): Sieciowe/Narzêdzia
-Source0: http://gotbnc.com/files/%{name}%{version}.tar.gz
-Source1: bncsetup.pld
+Source0: ftp://distfiles.pld-linux.org/src/%{name}%{version}.tar.gz
+# Source0-md5: ec371deebb7842b3703816296c7530a2
+Source1: %{name}setup.pld
+URL: http://gotbnc.com/
+BuildRequires: autoconf
+BuildRequires: automake
+Requires: dialog
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Easy-configurable IRC proxy.
+BNC is a great IRC (Internet Relay Chat) proxying server under the GPL
+(General Public License). It allows users to connect to chat servers
+by bouncing off the computer which is running BNC. Basically, it
+forwards the information from the user to the server and vise versa.
%description -l pl
-Prosty tunel IRC.
+BNC jest rewelacyjnym i prostym proxy do IRC (Internet Relay Chat) na
+licencji GPL (General Public License). BNC pozwala u¿ytkownikom na
+po³±czenie siê z serwerem IRC wykorzystuj±c do tego komputer na którym
+BNC zosta³o uruchomione. Mówi±c w skrócie, BNC przekazuje informacje
+od u¿ytkownika do serwera i vice versa.
%prep
%setup -q -n %{name}%{version}
-%configure2_13
-
%build
-%{__make} CC="gcc %{rpmcflags} -Wall"
+cp -f /usr/share/automake/config.sub .
+%{__autoconf}
+%configure
+
+%{__make} \
+ CFLAGS="%{rpmcflags}" \
+ OFLAGS="%{rpmcflags}" \
+ LIBS="-lcrypt"
%install
rm -rf $RPM_BUILD_ROOT
-mkdir $RPM_BUILD_ROOT/usr/bin -p
-install bnc $RPM_BUILD_ROOT/usr/bin
-install bncchk $RPM_BUILD_ROOT/usr/bin
-install %{SOURCE1} $RPM_BUILD_ROOT/usr/bin/bncsetup
-install mkpasswd $RPM_BUILD_ROOT/usr/bin/bncmkpasswd
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+install bnc $RPM_BUILD_ROOT%{_bindir}
+install bncchk $RPM_BUILD_ROOT%{_bindir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/bncsetup
+install mkpasswd $RPM_BUILD_ROOT%{_bindir}/bncmkpasswd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc README Changelog
%attr(755,root,root) %{_bindir}/*
-
-%doc README CHANGES COPYING