|
|
|
@ -1,10 +1,15 @@
|
|
|
|
|
%if 0%{?fedora} < 28 && 0%{?rhel} < 8
|
|
|
|
|
%bcond_without libnm_glib
|
|
|
|
|
%else
|
|
|
|
|
# Disable the legacy version by default
|
|
|
|
|
%bcond_with libnm_glib
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global real_version 1.2.8
|
|
|
|
|
%global rpm_version 1.2.8
|
|
|
|
|
%global release_version 1
|
|
|
|
|
|
|
|
|
|
%global real_version_major %(printf '%s' '%{real_version}' | sed -n 's/^\\([1-9][0-9]*\\.[1-9][0-9]*\\)\\.[1-9][0-9]*$/\\1/p')
|
|
|
|
|
|
|
|
|
|
Summary: NetworkManager VPN plugin for PPTP
|
|
|
|
|
Name: NetworkManager-pptp
|
|
|
|
|
Epoch: 1
|
|
|
|
@ -13,7 +18,11 @@ Release: 2%{?dist}
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://www.gnome.org/projects/NetworkManager/
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Source0: https://download.gnome.org/sources/NetworkManager-pptp/1.2/%{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Source0: https://download.gnome.org/sources/NetworkManager-pptp/%{real_version_major}/%{name}-%{real_version}.tar.xz
|
|
|
|
|
#Patch1: 0001-example.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global ppp_version %(sed -n 's/^#define\\s*VERSION\\s*"\\([^\\s]*\\)"$/\\1/p' %{_includedir}/pppd/patchlevel.h 2>/dev/null | grep . || echo bad)
|
|
|
|
|
|
|
|
|
@ -35,12 +44,14 @@ Requires: NetworkManager >= 1:1.2.0
|
|
|
|
|
Requires: pptp
|
|
|
|
|
Requires: ppp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global __provides_exclude ^libnm-.*\\.so
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package contains software for integrating VPN capabilities with
|
|
|
|
|
the PPTP server with NetworkManager.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n NetworkManager-pptp-gnome
|
|
|
|
|
Summary: NetworkManager VPN plugin for PPTP - GNOME files
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
@ -52,8 +63,10 @@ Obsoletes: NetworkManager-pptp < 1:0.9.8.2-3
|
|
|
|
|
This package contains software for integrating VPN capabilities with
|
|
|
|
|
the PPTP server with NetworkManager (GNOME files).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%autosetup -p1 -n "%{name}-%{real_version}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure \
|
|
|
|
@ -66,9 +79,11 @@ the PPTP server with NetworkManager (GNOME files).
|
|
|
|
|
--with-dist-version=%{version}-%{release}
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
|
|
|
|
|
|
|
|
|
@ -77,6 +92,7 @@ rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%{_libdir}/NetworkManager/libnm-vpn-plugin-pptp.so
|
|
|
|
|
%{_sysconfdir}/dbus-1/system.d/nm-pptp-service.conf
|
|
|
|
@ -98,6 +114,9 @@ rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Oct 4 2018 Thomas Haller <thaller@redhat.com> - 1.2.8-1
|
|
|
|
|
- Update to 1.2.8 release
|
|
|
|
|
|
|
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.6-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|