Update to 1.8.6 release

Also, update .spec file with some double-new-lines and
variables for the version (like for network-manager-applet).
epel8
Thomas Haller 6 years ago
parent e7a8a76cb6
commit b8f6cee323

1
.gitignore vendored

@ -25,3 +25,4 @@ NetworkManager-openvpn-0.8.1.tar.bz2
/NetworkManager-openvpn-1.8.0.tar.xz /NetworkManager-openvpn-1.8.0.tar.xz
/NetworkManager-openvpn-1.8.2.tar.xz /NetworkManager-openvpn-1.8.2.tar.xz
/NetworkManager-openvpn-1.8.4.tar.xz /NetworkManager-openvpn-1.8.4.tar.xz
/NetworkManager-openvpn-1.8.6.tar.xz

@ -1,22 +1,28 @@
%if 0%{?fedora} < 28 && 0%{?rhel} < 8 %if 0%{?fedora} < 28 && 0%{?rhel} < 8
%bcond_without libnm_glib %bcond_without libnm_glib
%else %else
# Disable the legacy version by default
%bcond_with libnm_glib %bcond_with libnm_glib
%endif %endif
%global real_version 1.8.6
%global rpm_version 1.8.6
%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 OpenVPN Summary: NetworkManager VPN plugin for OpenVPN
Name: NetworkManager-openvpn Name: NetworkManager-openvpn
Epoch: 1 Epoch: 1
Version: 1.8.4 Version: %{rpm_version}
Release: 2%{?dist} Release: %{release_version}%{?dist}
License: GPLv2+ License: GPLv2+
URL: http://www.gnome.org/projects/NetworkManager/ URL: http://www.gnome.org/projects/NetworkManager/
Group: System Environment/Base Group: System Environment/Base
Source0: https://download.gnome.org/sources/NetworkManager-openvpn/1.8/%{name}-%{version}.tar.xz
Source0: https://download.gnome.org/sources/NetworkManager-openvpn/%{real_version_major}/%{name}-%{real_version}.tar.xz
#Patch1: 0001-example.patch #Patch1: 0001-example.patch
BuildRequires: gtk3-devel BuildRequires: gtk3-devel
BuildRequires: NetworkManager-libnm-devel >= 1:1.2.0 BuildRequires: NetworkManager-libnm-devel >= 1:1.2.0
BuildRequires: glib2-devel BuildRequires: glib2-devel
@ -35,12 +41,15 @@ Requires: openvpn
Requires(pre): shadow-utils Requires(pre): shadow-utils
Obsoletes: NetworkManager-openvpn < 1:0.9.8.2-3 Obsoletes: NetworkManager-openvpn < 1:0.9.8.2-3
%global __provides_exclude ^libnm-.*\\.so %global __provides_exclude ^libnm-.*\\.so
%description %description
This package contains software for integrating VPN capabilities with This package contains software for integrating VPN capabilities with
the OpenVPN server with NetworkManager. the OpenVPN server with NetworkManager.
%package -n NetworkManager-openvpn-gnome %package -n NetworkManager-openvpn-gnome
Summary: NetworkManager VPN plugin for OpenVPN - GNOME files Summary: NetworkManager VPN plugin for OpenVPN - GNOME files
Group: System Environment/Base Group: System Environment/Base
@ -54,10 +63,10 @@ Obsoletes: NetworkManager-openvpn < 1:0.9.8.2-3
This package contains software for integrating VPN capabilities with This package contains software for integrating VPN capabilities with
the OpenVPN server with NetworkManager (GNOME files). the OpenVPN server with NetworkManager (GNOME files).
%prep %prep
%setup -q %autosetup -p1 -n "%{name}-%{real_version}"
#%patch1 -p1
%build %build
if [ ! -f configure ]; then if [ ! -f configure ]; then
@ -72,9 +81,11 @@ fi
--with-dist-version=%{version}-%{release} --with-dist-version=%{version}-%{release}
make %{?_smp_mflags} make %{?_smp_mflags}
%check %check
make check make check
%pre %pre
getent group nm-openvpn >/dev/null || groupadd -r nm-openvpn getent group nm-openvpn >/dev/null || groupadd -r nm-openvpn
getent passwd nm-openvpn >/dev/null || \ getent passwd nm-openvpn >/dev/null || \
@ -82,6 +93,7 @@ getent passwd nm-openvpn >/dev/null || \
-c "Default user for running openvpn spawned by NetworkManager" nm-openvpn -c "Default user for running openvpn spawned by NetworkManager" nm-openvpn
exit 0 exit 0
%install %install
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p" make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
@ -98,6 +110,7 @@ rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
%doc AUTHORS README ChangeLog %doc AUTHORS README ChangeLog
%license COPYING %license COPYING
%files -n NetworkManager-openvpn-gnome %files -n NetworkManager-openvpn-gnome
%{_libexecdir}/nm-openvpn-auth-dialog %{_libexecdir}/nm-openvpn-auth-dialog
%{_libdir}/NetworkManager/libnm-vpn-plugin-openvpn-editor.so %{_libdir}/NetworkManager/libnm-vpn-plugin-openvpn-editor.so
@ -108,7 +121,11 @@ rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
%{_sysconfdir}/NetworkManager/VPN/nm-openvpn-service.name %{_sysconfdir}/NetworkManager/VPN/nm-openvpn-service.name
%endif %endif
%changelog %changelog
* Tue Oct 2 2018 Thomas Haller <thaller@redhat.com> - 1:1.8.6-1
- Update to 1.8.6 release
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.8.4-2 * Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.8.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

@ -1 +1 @@
SHA512 (NetworkManager-openvpn-1.8.4.tar.xz) = dd0381175fa6a88259726a848ac46b7a5ee07a797cbe34382d3f4c0b6d8ad3807d224bfbb53cff793f4854558484d77fc7c6a6970e5364d39d058da5c35eac5a SHA512 (NetworkManager-openvpn-1.8.6.tar.xz) = a2d711be58810aad337b9c8bdead1ba6f64c1d1315a772ab79815624794c79668ab5056587be7096ac7367554c16114c2a3805a03484c2ea265ba4cd3bd54d32

Loading…
Cancel
Save