]> git.pld-linux.org Git - packages/NetworkManager-pptp.git/blobdiff - NetworkManager-pptp.spec
- release 2 (ppp 2.5.0, the code is already compatible)
[packages/NetworkManager-pptp.git] / NetworkManager-pptp.spec
index aabe3dfecfe253e2f0d3709fc9d49b2bad80547f..2c7cef718dd43ef60daaee07cbf3d2529ef5055e 100644 (file)
@@ -1,33 +1,37 @@
+#
+# Conditional build:
+%bcond_without gtk4    # Gtk4 version of editor plugin (GNOME 42+)
+
 Summary:       NetworkManager VPN integration for PPTP
 Summary(pl.UTF-8):     Integracja NetworkManagera z protokołem PPTP
 Name:          NetworkManager-pptp
-Version:       1.0.2
-Release:       1
+Version:       1.2.12
+Release:       2
 License:       GPL v2+
 Group:         X11/Applications
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-pptp/1.0/%{name}-%{version}.tar.xz
-# Source0-md5: 1e3bf62f7971d356c76f6a7fb094e20a
-URL:           http://projects.gnome.org/NetworkManager/
-BuildRequires: NetworkManager-devel >= 2:1.0.0
-BuildRequires: NetworkManager-gtk-lib-devel >= 1.0.0
+Source0:       https://download.gnome.org/sources/NetworkManager-pptp/1.2/%{name}-%{version}.tar.xz
+# Source0-md5: cde35b1d92b2a1f49118a59547be3e60
+URL:           https://wiki.gnome.org/Projects/NetworkManager
+BuildRequires: NetworkManager-devel >= 2:1.2.0
+BuildRequires: NetworkManager-gtk-lib-devel >= 1.2.0
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake >= 1:1.9
-BuildRequires: dbus-glib-devel >= 0.74
-BuildRequires: gettext-tools
-BuildRequires: glib2-devel >= 1:2.32
+BuildRequires: gettext-tools >= 0.19
+BuildRequires: glib2-devel >= 1:2.34
 BuildRequires: gtk+3-devel >= 3.4
-BuildRequires: intltool >= 0.35.0
-BuildRequires: libsecret-devel
-BuildRequires: libtool
+%{?with_gtk4:BuildRequires:    gtk4-devel >= 4.0}
+%{?with_gtk4:BuildRequires:    libnma-gtk4-devel >= 1.8.33}
+BuildRequires: libsecret-devel >= 0.18
+BuildRequires: libtool >= 2:2
 BuildRequires: pkgconfig
 BuildRequires: ppp-plugin-devel >= 3:2.4.5
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
 Requires:      NetworkManager >= 2:1.0.0
-Requires:      NetworkManager-gtk-lib >= 1.0.0
-Requires:      dbus-glib >= 0.74
-Requires:      glib2 >= 1:2.32
+Requires:      NetworkManager-gtk-lib >= 1.0.6
+Requires:      glib2 >= 1:2.34
 Requires:      gtk+3 >= 3.4
+Requires:      libsecret >= 0.18
 %requires_eq   ppp
 Requires:      pptp
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -42,14 +46,15 @@ Integracja NetworkManagera z protokołem PPTP.
 %setup -q
 
 %build
-%{__intltoolize}
 %{__libtoolize}
 %{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
+       --disable-silent-rules \
        --disable-static \
+       %{?with_gtk4:--with-gtk4} \
        --with-pppd-plugin-dir=%{_libdir}/pppd/plugins
 %{__make}
 
@@ -69,11 +74,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README TODO
-%attr(755,root,root) %{_libdir}/NetworkManager/libnm-pptp-properties.so
-%attr(755,root,root) %{_libdir}/nm-pptp-auth-dialog
-%attr(755,root,root) %{_libdir}/nm-pptp-service
+%doc AUTHORS NEWS README TODO
+%attr(755,root,root) %{_libdir}/NetworkManager/libnm-vpn-plugin-pptp.so
+%attr(755,root,root) %{_libdir}/NetworkManager/libnm-vpn-plugin-pptp-editor.so
+%if %{with gtk4}
+%attr(755,root,root) %{_libdir}/NetworkManager/libnm-gtk4-vpn-plugin-pptp-editor.so
+%endif
 %attr(755,root,root) %{_libdir}/pppd/plugins/nm-pptp-pppd-plugin.so
-%{_sysconfdir}/NetworkManager/VPN/nm-pptp-service.name
-%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/nm-pptp-service.conf
-%{_datadir}/gnome-vpn-properties/pptp
+%attr(755,root,root) %{_libexecdir}/nm-pptp-auth-dialog
+%attr(755,root,root) %{_libexecdir}/nm-pptp-service
+%{_prefix}/lib/NetworkManager/VPN/nm-pptp-service.name
+%{_datadir}/dbus-1/system.d/nm-pptp-service.conf
+%{_datadir}/metainfo/network-manager-pptp.metainfo.xml
This page took 0.085561 seconds and 4 git commands to generate.