File wvdial.spec of Package wvdial
#
# spec file for package wvdial
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: wvdial
Version: 1.61
Release: 0
Summary: A PPP dialer
License: LGPL-2.1-or-later
Group: Hardware/Modem
URL: https://web.archive.org/web/20110504183753/http://alumnit.ca:80/wiki/index.php?page=WvDial
Source: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/wvstreams/%{name}-%{version}.tar.gz
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
Patch7: wvdial-1.61-use_DEFAULT_SOURCE.patch
BuildRequires: gcc-c++
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: wvstreams-devel
Requires: ppp
Provides: suseppp
Provides: toppp
Provides: wvdial-soho
%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
%patch7 -p1
%build
# FIXME: you should use the %%configure macro
./configure
export CFLAGS="%{optflags}"
export COPTS="$CFLAGS"
export CXXFLAGS="%{optflags}"
export CXXOPTS="$CXXFLAGS"
%make_build -j1
%install
make ROOT=%{buildroot} prefix=%{buildroot}%{_prefix} 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
%{_bindir}/wvdial
%{_bindir}/wvdialconf
%dir %{_sysconfdir}/ppp
%dir %{_sysconfdir}/ppp/peers
%config(noreplace) %{_sysconfdir}/ppp/peers/wvdial
%config(noreplace) %attr (-, root, dialout) %{_sysconfdir}/wvdial.conf
%license COPYING.LIB
%doc CHANGES README FAQ
%{_mandir}/man1/wvdial.1%{?ext_man}
%{_mandir}/man1/wvdialconf.1%{?ext_man}
%{_mandir}/man5/wvdial.conf.5%{?ext_man}
%changelog