File smpppd.spec of Package smpppd
#
# spec file for package smpppd (Version 1.59_SVN31)
#
# 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: smpppd
BuildRequires: gcc-c++ libiw-devel openslp-devel openssl-devel
BuildRequires: PolicyKit-devel
License: GPL v2 or later
Group: Productivity/Networking/PPP
Summary: SuSE Meta PPP Daemon
Requires: ppp /usr/bin/killall
Version: 1.59_SVN31
Release: 4.<RELEASE2>
Source0: smpppd-%version.tar.bz2
Patch: smpppd-add-support-for-netconfig-bnc-449518.diff
Patch1: smpppd-sysconfig-bnc-449518.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %fillup_prereq %insserv_prereq
Recommends: wvdial
Recommends: pptp
%description
The SuSE Meta PPP Daemon is the back-end for kinternet. It is required
for modem, ISDN, and DSL connections.
Authors:
--------
Arvin Schnell
Ludwig Nussel
%prep
%setup -q
%patch -p1
%patch1 -p1
%if 0
if [ -e $RPM_SOURCE_DIR/devel.diff ]; then
patch -p1 < $RPM_SOURCE_DIR/devel.diff
fi
%endif
%build
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
test configure -nt configure.in || autoreconf -i
./configure --prefix=%_prefix --sysconf=/etc --mandir=%{_mandir} --docdir=%_defaultdocdir/%name
make %{?jobs:-j%jobs}
%check
make check
%install
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}/etc/init.d
install misc/smpppd.conf %{buildroot}/etc/
install misc/smpppd-c.conf %{buildroot}/etc/
install misc/rc.smpppd %{buildroot}/etc/init.d/smpppd
ln -sf ../../etc/init.d/smpppd %{buildroot}/usr/sbin/rcsmpppd
install -d %{buildroot}/var/lib/smpppd
install -d %{buildroot}/var/log/smpppd
install -d %{buildroot}/var/run/smpppd
%clean
rm -rf %{buildroot}
%files
%defattr (-, root, root)
%attr (600, root, root) %config(noreplace) /etc/smpppd.conf
%attr (644, root, dialout) %config(noreplace) /etc/smpppd-c.conf
%config /etc/init.d/smpppd
%{_bindir}/cinternet
%{_bindir}/accounting
%{_sbindir}/smpppd
%{_sbindir}/smpppd-ifcfg
%{_sbindir}/smpppd-dhcp
%{_sbindir}/rcsmpppd
%dir %{_datadir}/PolicyKit
%dir %{_datadir}/PolicyKit/policy
%{_datadir}/PolicyKit/policy/org.opensuse.smpppd.policy
%{_prefix}/lib/smpppd
%attr (700, root, root) %dir /var/lib/smpppd
%attr (750, root, dialout) %dir /var/log/smpppd
%attr (755, root, dialout) %dir /var/run/smpppd
%{_mandir}/man?/*
%doc %_defaultdocdir/smpppd
%post
%{fillup_and_insserv smpppd}
%preun
%{stop_on_removal smpppd}
%postun
%{insserv_cleanup}
%{restart_on_update smpppd}
%changelog