]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without gtk4 # Gtk4 version of editor plugin (GNOME 42+) | |
4 | ||
5 | Summary: NetworkManager VPN integration for openconnect | |
6 | Summary(pl.UTF-8): Integracja NetworkManagera z openconnect | |
7 | Name: NetworkManager-openconnect | |
8 | Version: 1.2.10 | |
9 | Release: 1 | |
10 | License: GPL v2+ | |
11 | Group: X11/Applications | |
12 | Source0: https://download.gnome.org/sources/NetworkManager-openconnect/1.2/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: 7d814d8f8cbb024ef96818103b3c8a68 | |
14 | URL: https://wiki.gnome.org/Projects/NetworkManager | |
15 | BuildRequires: NetworkManager-devel >= 2:1.2.0 | |
16 | BuildRequires: NetworkManager-gtk-lib-devel >= 1.2.0 | |
17 | BuildRequires: autoconf >= 2.52 | |
18 | BuildRequires: automake | |
19 | BuildRequires: gcr-ui-devel >= 3.4 | |
20 | BuildRequires: gettext-tools | |
21 | BuildRequires: glib2-devel >= 1:2.34 | |
22 | BuildRequires: gtk+3-devel >= 3.12 | |
23 | # with fallback to gtk-webkit4 | |
24 | BuildRequires: gtk-webkit4.1-devel >= 2.36 | |
25 | %{?with_gtk4:BuildRequires: gtk4-devel >= 4.0} | |
26 | BuildRequires: intltool >= 0.35.0 | |
27 | %{?with_gtk4:BuildRequires: libnma-gtk4-devel >= 1.8.33} | |
28 | BuildRequires: libsecret-devel >= 0.18 | |
29 | BuildRequires: libtool | |
30 | BuildRequires: libxml2-devel >= 2.0 | |
31 | BuildRequires: openconnect-devel >= 3.02 | |
32 | BuildRequires: pkgconfig | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xz | |
35 | Requires: NetworkManager >= 2:1.2.0 | |
36 | Requires: gcr-ui >= 3.4 | |
37 | Requires: glib2 >= 1:2.34 | |
38 | Requires: gtk+3 >= 3.12 | |
39 | Requires: libsecret >= 0.18 | |
40 | Requires: openconnect >= 3.02 | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
44 | NetworkManager VPN integration for openconnect. | |
45 | ||
46 | %description -l pl.UTF-8 | |
47 | Integracja NetworkManagera z openconnect. | |
48 | ||
49 | %prep | |
50 | %setup -q | |
51 | ||
52 | %build | |
53 | %{__intltoolize} | |
54 | %{__libtoolize} | |
55 | %{__aclocal} -I m4 | |
56 | %{__autoconf} | |
57 | %{__autoheader} | |
58 | %{__automake} | |
59 | %configure \ | |
60 | --disable-static \ | |
61 | %{?with_gtk4:--with-gtk4} | |
62 | %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %{__make} install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
70 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/NetworkManager/*.la | |
71 | ||
72 | %find_lang NetworkManager-openconnect | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files -f NetworkManager-openconnect.lang | |
78 | %defattr(644,root,root,755) | |
79 | %doc AUTHORS ChangeLog NEWS | |
80 | %attr(755,root,root) %{_libdir}/NetworkManager/libnm-vpn-plugin-openconnect.so | |
81 | %attr(755,root,root) %{_libdir}/NetworkManager/libnm-vpn-plugin-openconnect-editor.so | |
82 | %if %{with gtk4} | |
83 | %attr(755,root,root) %{_libdir}/NetworkManager/libnm-gtk4-vpn-plugin-openconnect-editor.so | |
84 | %endif | |
85 | %attr(755,root,root) %{_libexecdir}/nm-openconnect-auth-dialog | |
86 | %attr(755,root,root) %{_libexecdir}/nm-openconnect-service | |
87 | %attr(755,root,root) %{_libexecdir}/nm-openconnect-service-openconnect-helper | |
88 | %{_prefix}/lib/NetworkManager/VPN/nm-openconnect-service.name | |
89 | %{_datadir}/dbus-1/system.d/nm-openconnect-service.conf | |
90 | %{_datadir}/metainfo/network-manager-openconnect.metainfo.xml |