Compare commits

..

3 Commits
epel9 ... epel8

Author SHA1 Message Date
Troy Dawson e39ad5273d remove package.cfg per new epel-playground policy
4 years ago
Thomas Haller 67b2e9fa92 Merge branch 'master' into epel8
5 years ago
Gwyn Ciesla 1e3ccfeffa "Adding package.cfg file"
5 years ago

@ -4,20 +4,27 @@
%bcond_with libnm_glib %bcond_with libnm_glib
%endif %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 Summary: NetworkManager VPN plugin for PPTP
Name: NetworkManager-pptp Name: NetworkManager-pptp
Epoch: 1 Epoch: 1
Version: 1.2.8 Version: %{rpm_version}
Release: 5%{?dist} Release: %{release_version}%{?dist}.3
License: GPLv2+ License: GPLv2+
URL: http://www.gnome.org/projects/NetworkManager/ URL: http://www.gnome.org/projects/NetworkManager/
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 #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) %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: glib2-devel
BuildRequires: gtk3-devel BuildRequires: gtk3-devel
BuildRequires: NetworkManager-libnm-devel >= 1:1.2.0 BuildRequires: NetworkManager-libnm-devel >= 1:1.2.0
@ -31,10 +38,10 @@ BuildRequires: NetworkManager-glib-devel >= 1:1.2.0
BuildRequires: libnm-gtk-devel >= 0.9 BuildRequires: libnm-gtk-devel >= 0.9
%endif %endif
Requires: dbus-common Requires: dbus
Requires: NetworkManager >= 1:1.2.0 Requires: NetworkManager >= 1:1.2.0
Requires: pptp Requires: pptp
Requires: ppp = %{ppp_version} Requires: ppp
%global __provides_exclude ^libnm-.*\\.so %global __provides_exclude ^libnm-.*\\.so
@ -56,7 +63,7 @@ the PPTP server with NetworkManager (GNOME files).
%prep %prep
%autosetup -p1 %autosetup -p1 -n "%{name}-%{real_version}"
%build %build
@ -81,14 +88,12 @@ make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la
mv %{buildroot}%{_sysconfdir}/dbus-1 %{buildroot}%{_datadir}/
%find_lang %{name} %find_lang %{name}
%files -f %{name}.lang %files -f %{name}.lang
%{_libdir}/NetworkManager/libnm-vpn-plugin-pptp.so %{_libdir}/NetworkManager/libnm-vpn-plugin-pptp.so
%{_datadir}/dbus-1/system.d/nm-pptp-service.conf %{_sysconfdir}/dbus-1/system.d/nm-pptp-service.conf
%{_prefix}/lib/NetworkManager/VPN/nm-pptp-service.name %{_prefix}/lib/NetworkManager/VPN/nm-pptp-service.name
%{_libexecdir}/nm-pptp-service %{_libexecdir}/nm-pptp-service
%{_libdir}/pppd/%{ppp_version}/nm-pptp-pppd-plugin.so %{_libdir}/pppd/%{ppp_version}/nm-pptp-pppd-plugin.so
@ -107,24 +112,6 @@ mv %{buildroot}%{_sysconfdir}/dbus-1 %{buildroot}%{_datadir}/
%changelog %changelog
* 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
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Feb 15 2021 Lubomir Rintel <lkundrak@v3.sk> - 1:1.2.8-3
- Move dbus service file into /usr/share/dbus-1
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.8-2.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.8-2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Mar 25 2020 Thomas Haller <thaller@redhat.com> - 1:1.2.8-2
* Rebuild for ppp 2.4.8
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.8-1.3 * Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.8-1.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

Loading…
Cancel
Save