]> git.pld-linux.org Git - packages/pptp.git/blob - pptp.spec
b60d60fb94ba337e89bdd156b055f8082431e814
[packages/pptp.git] / pptp.spec
1 Summary:        Point-to-Point Tunneling Protocol (PPTP) Client
2 Summary(pl.UTF-8):      Klient protokołu PPTP (Point-to-Point Tunneling Protocol)
3 Name:           pptp
4 Version:        1.7.2
5 Release:        2
6 License:        GPL
7 Group:          Networking/Admin
8 Source0:        http://dl.sourceforge.net/pptpclient/%{name}-%{version}.tar.gz
9 # Source0-md5:  4c3d19286a37459a632c7128c92a9857
10 Source1:        %{name}.tmpfiles
11 Patch0:         %{name}-ip.patch
12 URL:            http://pptpclient.sourceforge.net/
13 Requires:       ppp >= 2.4.2
14 Provides:       pptp-linux
15 Obsoletes:      pptp-linux
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Client for the proprietary Microsoft Point-to-Point Tunneling
20 Protocol, PPTP. Allows connection to a PPTP based VPN as used by
21 employers and some cable and ADSL service providers. Requires MPPE
22 support in kernel.
23
24 %description -l pl.UTF-8
25 Klient PPTP - własnościowego protokołu Point-to-Point Tunneling
26 Microsoftu. Umożliwia łączenie z siecami VPN opartymi o PPTP używanymi
27 przez niektóre firmy oraz dostarczycieli łącz kablowych i ADSL. Wymaga
28 obsugi MPPE w jądrze.
29
30 %prep
31 %setup -q
32 %patch0 -p1
33 %{__sed} -i -e 's/install -o root -m 555 pptp/install -m 755 pptp/' Makefile
34
35 %build
36 %{__make} \
37         CC="%{__cc}" \
38         CFLAGS="%{rpmcflags}" \
39         LDFLAGS="%{rpmldflags}"
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_localstatedir}/run/pptp \
44         $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 install %{SOURCE1} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc AUTHORS NEWS README TODO USING Documentation
57 %attr(755,root,root) %{_sbindir}/pptp
58 %attr(755,root,root) %{_sbindir}/pptpsetup
59 %{_mandir}/man8/pptp.8*
60 %{_mandir}/man8/pptpsetup.8*
61 /usr/lib/tmpfiles.d/%{name}.conf
62 %dir %attr(750,root,root) %{_localstatedir}/run/pptp
63 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/options.pptp
This page took 0.283243 seconds and 3 git commands to generate.