File wvdial.spec of Package wvdial

#
# spec file for package wvdial (Version 1.60)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           wvdial
Url:            http://alumnit.ca/wiki/?WvDial
Version:        1.60
Release:        62
License:        LGPL v2.1 or later
Group:          Hardware/Modem
Provides:       suseppp toppp
Requires:       ppp
Obsoletes:      wvdial-soho
Provides:       wvdial-soho
Summary:        A PPP dialer
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        http://open.nit.ca/download/wvdial-%{version}.tar.bz2
Source1:        wvdial.conf
Source2:        wvdial-peers
Patch0:         empty-password.diff
Patch1:         passwordfd.diff
Patch2:         makefile.diff
Patch3:         wvdial-1.56-chat.patch
Patch4:         wvdial-1.56-no-logrotation-for-dev-null.patch
Patch5:         wvdial-glibc210.patch
Patch6:         wvdialer-retry.patch
BuildRequires:  gcc-c++ pam-devel pkgconfig wvstreams-devel

%description
A PPP dialer. With this program you can manually establish a PPP
connection to your ISP. Manual configuration, like dealing with chat
scripts, is normally not necessary as this program contains enough
intelligence to deal with most ISPs.



Authors:
--------
    Worldvisions Computer Technology, Inc.

%prep
%setup -q
%patch0
%patch1
%patch2
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6

%build
# disable as-needed default
export SUSE_ASNEEDED=0
export CFLAGS="$RPM_OPT_FLAGS"
export COPTS="$CFLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
export CXXOPTS="$CXXFLAGS"
make

%install
make ROOT=$RPM_BUILD_ROOT prefix=$RPM_BUILD_ROOT/usr install
mkdir -p $RPM_BUILD_ROOT/etc/ppp/peers
install -m 640 %{S:1} $RPM_BUILD_ROOT/etc/wvdial.conf
install -m 644 %{S:2} $RPM_BUILD_ROOT/etc/ppp/peers/wvdial

%clean
rm -rf %{buildroot}

%files
%defattr (-, root, root)
/usr/bin/wvdial
/usr/bin/wvdialconf
%dir /etc/ppp/peers
%config(noreplace) /etc/ppp/peers/wvdial
%config(noreplace) %attr (-, root, dialout) /etc/wvdial.conf
%doc COPYING.LIB CHANGES README FAQ
%doc %{_mandir}/man1/wvdial.1.gz
%doc %{_mandir}/man1/wvdialconf.1.gz
%doc %{_mandir}/man5/wvdial.conf.5.gz

%changelog
openSUSE Build Service is sponsored by