File wvdial.spec of Package wvdial

# spec file for package wvdial
# Copyright (c) 2014 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

Name:           wvdial
Version:        1.61
Release:        0
Summary:        A PPP dialer
License:        LGPL-2.1+
Group:          Hardware/Modem
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-1.61_nocrtscts.patch
Patch6:         wvdial-1.61-as-needed.patch
BuildRequires:  gcc-c++
BuildRequires:  pam-devel
BuildRequires:  pkgconfig
BuildRequires:  wvstreams-devel
Requires:       ppp
Provides:       suseppp
Provides:       toppp
Provides:       wvdial-soho
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.

%setup -q
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1

export CFLAGS="%{optflags}"
export COPTS="$CFLAGS"
export CXXFLAGS="%{optflags}"
make -j1

make ROOT=%{buildroot} prefix=%{buildroot}/usr install
mkdir -p %{buildroot}%{_sysconfdir}/ppp/peers
install -m 640 %{SOURCE1} %{buildroot}%{_sysconfdir}/wvdial.conf
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/ppp/peers/wvdial

%defattr (-, root, root)
%dir %{_sysconfdir}/ppp/peers
%config(noreplace) %{_sysconfdir}/ppp/peers/wvdial
%config(noreplace) %attr (-, root, dialout) %{_sysconfdir}/wvdial.conf
%doc %{_mandir}/man1/wvdial.1.gz
%doc %{_mandir}/man1/wvdialconf.1.gz
%doc %{_mandir}/man5/wvdial.conf.5.gz

openSUSE Build Service is sponsored by