|
|
|
@ -1,33 +1,34 @@
|
|
|
|
|
%if 0%{?fedora} < 36 && 0%{?rhel} < 10
|
|
|
|
|
%bcond_with gtk4
|
|
|
|
|
%if 0%{?fedora} < 28 && 0%{?rhel} < 8
|
|
|
|
|
%bcond_without libnm_glib
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without gtk4
|
|
|
|
|
%bcond_with libnm_glib
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Summary: NetworkManager VPN plugin for PPTP
|
|
|
|
|
Name: NetworkManager-pptp
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 1.2.12
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
|
Version: 1.2.8
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://www.gnome.org/projects/NetworkManager/
|
|
|
|
|
|
|
|
|
|
Source0: https://download.gnome.org/sources/NetworkManager-pptp/1.2/%{name}-%{version}.tar.xz
|
|
|
|
|
#Patch1: 0001-example.patch
|
|
|
|
|
|
|
|
|
|
%global ppp_version %(pkg-config --modversion pppd 2>/dev/null || echo bad)
|
|
|
|
|
%global ppp_version %(sed -n 's/^#define\\s*VERSION\\s*"\\([^\\s]*\\)"$/\\1/p' %{_includedir}/pppd/patchlevel.h 2>/dev/null | grep . || echo bad)
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
|
BuildRequires: gtk3-devel
|
|
|
|
|
BuildRequires: NetworkManager-libnm-devel >= 1:1.2.0
|
|
|
|
|
BuildRequires: libnma-devel >= 1.2.0
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: ppp-devel >= 2.5.0
|
|
|
|
|
BuildRequires: ppp-devel
|
|
|
|
|
BuildRequires: libtool intltool gettext
|
|
|
|
|
BuildRequires: libsecret-devel
|
|
|
|
|
%if %with gtk4
|
|
|
|
|
BuildRequires: libnma-gtk4-devel
|
|
|
|
|
%if %with libnm_glib
|
|
|
|
|
BuildRequires: NetworkManager-devel
|
|
|
|
|
BuildRequires: NetworkManager-glib-devel >= 1:1.2.0
|
|
|
|
|
BuildRequires: libnm-gtk-devel >= 0.9
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Requires: dbus-common
|
|
|
|
@ -61,8 +62,8 @@ the PPTP server with NetworkManager (GNOME files).
|
|
|
|
|
%build
|
|
|
|
|
%configure \
|
|
|
|
|
--disable-static \
|
|
|
|
|
%if %with gtk4
|
|
|
|
|
--with-gtk4 \
|
|
|
|
|
%if %without libnm_glib
|
|
|
|
|
--without-libnm-glib \
|
|
|
|
|
%endif
|
|
|
|
|
--enable-more-warnings=yes \
|
|
|
|
|
--with-pppd-plugin-dir=%{_libdir}/pppd/%{ppp_version} \
|
|
|
|
@ -80,6 +81,8 @@ make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la
|
|
|
|
|
|
|
|
|
|
mv %{buildroot}%{_sysconfdir}/dbus-1 %{buildroot}%{_datadir}/
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -89,53 +92,21 @@ rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la
|
|
|
|
|
%{_prefix}/lib/NetworkManager/VPN/nm-pptp-service.name
|
|
|
|
|
%{_libexecdir}/nm-pptp-service
|
|
|
|
|
%{_libdir}/pppd/%{ppp_version}/nm-pptp-pppd-plugin.so
|
|
|
|
|
%doc AUTHORS README NEWS
|
|
|
|
|
%doc AUTHORS README ChangeLog NEWS
|
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
|
|
%files -n NetworkManager-pptp-gnome
|
|
|
|
|
%{_libexecdir}/nm-pptp-auth-dialog
|
|
|
|
|
%{_libdir}/NetworkManager/libnm-vpn-plugin-pptp-editor.so
|
|
|
|
|
%{_metainfodir}/network-manager-pptp.metainfo.xml
|
|
|
|
|
%{_datadir}/appdata/network-manager-pptp.metainfo.xml
|
|
|
|
|
|
|
|
|
|
%if %with gtk4
|
|
|
|
|
%{_libdir}/NetworkManager/libnm-gtk4-vpn-plugin-pptp-editor.so
|
|
|
|
|
%if %with libnm_glib
|
|
|
|
|
%{_libdir}/NetworkManager/libnm-*-properties.so
|
|
|
|
|
%{_sysconfdir}/NetworkManager/VPN/nm-pptp-service.name
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Dec 24 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.2.12-7
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.12-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.12-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.12-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Nov 03 2023 Íñigo Huguet <ihuguet@redhat.com> - 1.2.12-4
|
|
|
|
|
- Migrated to SPDX license
|
|
|
|
|
|
|
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.12-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Apr 18 2023 Adam Williamson <awilliam@redhat.com> - 1.2.12-2
|
|
|
|
|
- Rebuild for new ppp
|
|
|
|
|
|
|
|
|
|
* Thu Mar 09 2023 Lubomir Rintel <lkundrak@v3.sk> - 1.2.12-1
|
|
|
|
|
- Update to 1.2.12 release
|
|
|
|
|
|
|
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.10-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.10-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Mar 11 2022 Lubomir Rintel <lkundrak@v3.sk> - 1.2.10-1
|
|
|
|
|
- Update to 1.2.10 release
|
|
|
|
|
|
|
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.8-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|