[packages/NetworkManager-vpnc] - updated to 1.4.0
qboosh
qboosh at pld-linux.org
Fri Nov 15 19:31:21 CET 2024
commit 6ecd3b5259cabe30d42042398b6e0ec0811281b3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Nov 15 19:11:47 2024 +0100
- updated to 1.4.0
NetworkManager-vpnc.spec | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
---
diff --git a/NetworkManager-vpnc.spec b/NetworkManager-vpnc.spec
index 214c67c..4c3d7c0 100644
--- a/NetworkManager-vpnc.spec
+++ b/NetworkManager-vpnc.spec
@@ -1,31 +1,35 @@
-# TODO: GTK4 variant for GNOME42 (--with-gtk4, requires libnma-gtk4 >= 1.8.33)
+#
+# Conditional build:
+%bcond_without gtk4 # Gtk4 version of editor plugin (GNOME 42+)
+
Summary: NetworkManager VPN integration for vpnc
Summary(pl.UTF-8): Integracja NetworkManagera z vpnc
Name: NetworkManager-vpnc
-Version: 1.2.8
+Version: 1.4.0
Release: 1
License: GPL v2+
Group: X11/Applications
-Source0: https://download.gnome.org/sources/NetworkManager-vpnc/1.2/%{name}-%{version}.tar.xz
-# Source0-md5: b312c8c6d5ed750819d05e23c45eb8fe
+Source0: https://download.gnome.org/sources/NetworkManager-vpnc/1.4/%{name}-%{version}.tar.xz
+# Source0-md5: 2ea3dcf536c15b4a78a7f2d1906e4032
Patch0: %{name}-binary_path.patch
URL: https://wiki.gnome.org/Projects/NetworkManager
BuildRequires: NetworkManager-devel >= 2:1.2.0
-BuildRequires: NetworkManager-gtk-lib-devel >= 1.2.0
+BuildRequires: NetworkManager-gtk-lib-devel >= 1.8.0
BuildRequires: autoconf >= 2.52
BuildRequires: automake >= 1:1.9
-BuildRequires: gettext-tools
+BuildRequires: gettext-tools >= 0.19
BuildRequires: glib2-devel >= 1:2.34
BuildRequires: gtk+3-devel >= 3.4
-BuildRequires: intltool >= 0.35.0
+%{?with_gtk4:BuildRequires: gtk4-devel >= 4.0}
+%{?with_gtk4:BuildRequires: libnma-gtk4-devel >= 1.8.33}
BuildRequires: libsecret-devel >= 0.18
-BuildRequires: libtool
+BuildRequires: libtool >= 2:2
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.311
BuildRequires: tar >= 1:1.22
BuildRequires: xz
Requires: NetworkManager >= 2:1.2.0
-Requires: NetworkManager-gtk-lib >= 1.2.0
+Requires: NetworkManager-gtk-lib >= 1.8.0
Requires: glib2 >= 1:2.34
Requires: gtk+3 >= 3.4
Requires: libsecret >= 0.18
@@ -43,7 +47,6 @@ Integracja NetworkManagera z vpnc.
%patch0 -p1
%build
-%{__intltoolize}
%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
@@ -51,7 +54,8 @@ Integracja NetworkManagera z vpnc.
%{__automake}
%configure \
--disable-more-warnings \
- --disable-static
+ --disable-static \
+ %{?with_gtk4:--with-gtk4}
%{__make}
@@ -70,9 +74,12 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog
+%doc AUTHORS NEWS README
%attr(755,root,root) %{_libdir}/NetworkManager/libnm-vpn-plugin-vpnc.so
%attr(755,root,root) %{_libdir}/NetworkManager/libnm-vpn-plugin-vpnc-editor.so
+%if %{with gtk4}
+%attr(755,root,root) %{_libdir}/NetworkManager/libnm-gtk4-vpn-plugin-vpnc-editor.so
+%endif
%attr(755,root,root) %{_libexecdir}/nm-vpnc-auth-dialog
%attr(755,root,root) %{_libexecdir}/nm-vpnc-service
%attr(755,root,root) %{_libexecdir}/nm-vpnc-service-vpnc-helper
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/NetworkManager-vpnc.git/commitdiff/6ecd3b5259cabe30d42042398b6e0ec0811281b3
More information about the pld-cvs-commit
mailing list