-Summary: A heuristic autodialer for PPP connections.
+Summary: A heuristic autodialer for PPP connections
Summary(pl): Heurystyczny "autowydzwaniacz" dla po³±czeñ PPP
Name: wvdial
-Version: 1.41
-Release: 3
+Version: 1.53
+Release: 1
License: LGPL
Group: Networking/Daemons
-Group(pl): Sieciowe/Demony
Source0: http://www.worldvisions.ca/wvdial/%{name}-%{version}.tar.gz
-Patch0: %{name}-libs.patch
-Requires: ppp >= 2.3.7
+# Source0-md5: e5432b4812b76e31b37cc10b6df62f5f
+Patch0: %{name}-make.patch
+URL: http://open.nit.ca/wvdial/
+BuildRequires: libstdc++-devel
+BuildRequires: wvstreams-devel
+Requires: ppp >= 2.4.0
Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-WvDial automatically locates and configures modems and can log into almost
-any ISP's server without special configuration. You need to input the
-username, password, and phone number, and then WvDial will negotiate the
-PPP connection using any mechanism needed.
+WvDial automatically locates and configures modems and can log into
+almost any ISP's server without special configuration. You need to
+input the username, password, and phone number, and then WvDial will
+negotiate the PPP connection using any mechanism needed.
-Install wvdial if you need a utility to configure your modem and set up a
-PPP connection.
+Install wvdial if you need a utility to configure your modem and set
+up a PPP connection.
%description -l pl
-WvDial automatycznie wyszukuje i konfiguruje modem, i mo¿e sie zalogowaæ
-do praktycznie ka¿dego serwera dostawcy us³ug internetowych (ISP).
-Potrzebujesz podaæ nazwê u¿ytkownika, has³o i numer telefonu, a WvDial
-wynegocjuje po³±czenie PPP u¿ywaj±c potrzebnych mechanizmów.
+WvDial automatycznie wyszukuje i konfiguruje modem, i mo¿e sie
+zalogowaæ do praktycznie ka¿dego serwera dostawcy us³ug internetowych
+(ISP). Potrzebujesz podaæ nazwê u¿ytkownika, has³o i numer telefonu, a
+WvDial wynegocjuje po³±czenie PPP u¿ywaj±c potrzebnych mechanizmów.
%prep
%setup -q
%patch0 -p1
%build
-make PREFIX=%{_prefix} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+%{__make} \
+ CXX="%{__cxx}" \
+ PREFIX=%{_prefix} \
+ BINDIR=%{_bindir} \
+ MANDIR=%{_mandir} \
+ COPTS="%{rpmcflags}" \
+ CXXOPTS="%{rpmcflags} -fno-rtti -fno-exceptions -fno-implicit-templates" \
+ LDOPTS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
-make install PREFIX=${RPM_BUILD_ROOT}%{_prefix} PPPDIR=${RPM_BUILD_ROOT}%{_sysconfdir}/ppp/peers
+%{__make} install \
+ PREFIX=$RPM_BUILD_ROOT%{_prefix} \
+ BINDIR=$RPM_BUILD_ROOT%{_bindir} \
+ MANDIR=$RPM_BUILD_ROOT%{_mandir} \
+ PPPDIR=$RPM_BUILD_ROOT%{_sysconfdir}/ppp/peers
%clean
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%attr(0755,root,root) %{_bindir}/*
-%attr(0644,root,root) %{_prefix}/man/man1/*
-%attr(0600,root,daemon) %config %{_sysconfdir}/ppp/peers/wvdial
+%doc README CHANGES ANNOUNCE src/FAQ src/TODO src/MENUS
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man?/*
+%config %{_sysconfdir}/ppp/peers/*