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 http://bugs.opensuse.org/
#
Name: wvdial
Version: 1.61
Release: 0
Summary: A PPP dialer
License: LGPL-2.1+
Group: Hardware/Modem
Url: http://alumnit.ca/wiki/?WvDial
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-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
%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.
%prep
%setup -q
%patch0
%patch1
%patch2
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%build
./configure
export CFLAGS="%{optflags}"
export COPTS="$CFLAGS"
export CXXFLAGS="%{optflags}"
export CXXOPTS="$CXXFLAGS"
make -j1
%install
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
%files
%defattr (-, root, root)
%{_bindir}/wvdial
%{_bindir}/wvdialconf
%dir %{_sysconfdir}/ppp/peers
%config(noreplace) %{_sysconfdir}/ppp/peers/wvdial
%config(noreplace) %attr (-, root, dialout) %{_sysconfdir}/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