File pptp.spec of Package pptp

#
# spec file for package pptp (Version 1.7.2)
#
# 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:           pptp
Url:            http://pptpclient.sourceforge.net/ 
Summary:        Point-to-Point Tunneling Protocol (PPTP) Client
Version:        1.7.2
Release:        24
Source:         %{name}-%{version}.tar.bz2
Source1:        pptp-command
Source2:        options.pptp
Source3:        pptp_fe.pl
Source4:        xpptp_fe.pl
Patch1:         pptp-makefile.patch
License:        GPL-2.0+
Group:          Productivity/Networking/Security
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A client for the proprietary Microsoft Point-to-Point Tunneling
Protocol, PPTP.  It allows connections to a PPTP based VPN as used by
employers and some cable and ADSL service providers. It requires MPPE
support in the kernel. Use the ppp-mppe package.



Authors:
--------
    C. Scott Ananian <cananian@alumni.princeton.edu>
    
    Christoph Lameter <christoph@lameter.com>
    Gordon Chaffee <chaffee@HOME.COM>
    mulix <mulix@actcom.co.il>
    James Cameron <james.cameron@compaq.com>
    Rein Klazes <rklazes@xs4all.nl>
    Thomas Quinot <thomas@cuivre.fr.eu.org>
    Rhialto <rhialto@azenomei.knuffel.net>
    Scott Venier <scott@scooter.cx>
    Jeff Wiedemeier <Jeff.Wiedemeier@compaq.com>
    Yura Zotov <yz@altlinux.ru>

%prep
%setup -q -n %{name}-%{version}
%patch1

%build
make CFLAGS="$RPM_OPT_FLAGS"

%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/ppp
mkdir -p $RPM_BUILD_ROOT/etc/pptp.d
cp %{SOURCE1} $RPM_BUILD_ROOT/usr/sbin/pptp-command
cp %{SOURCE2} $RPM_BUILD_ROOT/etc/ppp
find Documentation	-name CVS | xargs rm -rf
find Reference		-name CVS | xargs rm -rf

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644,root,root,0755)
%doc AUTHORS COPYING INSTALL NEWS README TODO USING Documentation
%attr(0755,root,root) /usr/sbin/pptp
%attr(0755,root,root) /usr/sbin/pptpsetup
%attr(0444,root,root) %{_mandir}/man8/pptp.8.gz
%attr(0444,root,root) %{_mandir}/man8/pptpsetup.8.gz
%attr(0755,root,root) /usr/sbin/pptp-command
%config %attr(0600,root,root) /etc/ppp/options.pptp
%attr(0755,root,root) /etc/pptp.d

%changelog
openSUSE Build Service is sponsored by