]>
Commit | Line | Data |
---|---|---|
f2028a82 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without gtk4 # Gtk4 version of editor plugin (GNOME 42+) | |
4 | ||
d33eb75d MB |
5 | Summary: NetworkManager VPN integration for PPTP |
6 | Summary(pl.UTF-8): Integracja NetworkManagera z protokołem PPTP | |
7 | Name: NetworkManager-pptp | |
f2028a82 | 8 | Version: 1.2.12 |
9764be89 | 9 | Release: 2 |
75efe160 | 10 | License: GPL v2+ |
d33eb75d | 11 | Group: X11/Applications |
62775956 | 12 | Source0: https://download.gnome.org/sources/NetworkManager-pptp/1.2/%{name}-%{version}.tar.xz |
f2028a82 | 13 | # Source0-md5: cde35b1d92b2a1f49118a59547be3e60 |
96802b3e | 14 | URL: https://wiki.gnome.org/Projects/NetworkManager |
d4475670 MB |
15 | BuildRequires: NetworkManager-devel >= 2:1.2.0 |
16 | BuildRequires: NetworkManager-gtk-lib-devel >= 1.2.0 | |
d33eb75d MB |
17 | BuildRequires: autoconf >= 2.59 |
18 | BuildRequires: automake >= 1:1.9 | |
f2028a82 | 19 | BuildRequires: gettext-tools >= 0.19 |
62775956 | 20 | BuildRequires: glib2-devel >= 1:2.34 |
fd35b249 | 21 | BuildRequires: gtk+3-devel >= 3.4 |
f2028a82 JB |
22 | %{?with_gtk4:BuildRequires: gtk4-devel >= 4.0} |
23 | %{?with_gtk4:BuildRequires: libnma-gtk4-devel >= 1.8.33} | |
be7f0d08 | 24 | BuildRequires: libsecret-devel >= 0.18 |
f2028a82 | 25 | BuildRequires: libtool >= 2:2 |
d33eb75d | 26 | BuildRequires: pkgconfig |
f2e2e550 | 27 | BuildRequires: ppp-plugin-devel >= 3:2.4.5 |
8b7a44f7 MB |
28 | BuildRequires: tar >= 1:1.22 |
29 | BuildRequires: xz | |
3872c468 | 30 | Requires: NetworkManager >= 2:1.0.0 |
22b957a9 | 31 | Requires: NetworkManager-gtk-lib >= 1.0.6 |
62775956 | 32 | Requires: glib2 >= 1:2.34 |
fd35b249 | 33 | Requires: gtk+3 >= 3.4 |
be7f0d08 | 34 | Requires: libsecret >= 0.18 |
5c94514b | 35 | %requires_eq ppp |
d33eb75d MB |
36 | Requires: pptp |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | NetworkManager VPN integration for PPTP. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Integracja NetworkManagera z protokołem PPTP. | |
44 | ||
45 | %prep | |
46 | %setup -q | |
47 | ||
48 | %build | |
d33eb75d | 49 | %{__libtoolize} |
4921fa3d | 50 | %{__aclocal} -I m4 |
d33eb75d MB |
51 | %{__autoconf} |
52 | %{__autoheader} | |
53 | %{__automake} | |
bde63cc6 | 54 | %configure \ |
4cf7fe7e | 55 | --disable-silent-rules \ |
75efe160 | 56 | --disable-static \ |
f2028a82 JB |
57 | %{?with_gtk4:--with-gtk4} \ |
58 | --with-pppd-plugin-dir=%{_libdir}/pppd/plugins | |
d33eb75d MB |
59 | %{__make} |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
75efe160 | 67 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/NetworkManager/*.la |
643f4ff2 | 68 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/pppd/plugins/*.la |
d33eb75d MB |
69 | |
70 | %find_lang %{name} | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
d33eb75d MB |
75 | %files -f %{name}.lang |
76 | %defattr(644,root,root,755) | |
f2028a82 | 77 | %doc AUTHORS NEWS README TODO |
d4475670 | 78 | %attr(755,root,root) %{_libdir}/NetworkManager/libnm-vpn-plugin-pptp.so |
1a042acc | 79 | %attr(755,root,root) %{_libdir}/NetworkManager/libnm-vpn-plugin-pptp-editor.so |
f2028a82 JB |
80 | %if %{with gtk4} |
81 | %attr(755,root,root) %{_libdir}/NetworkManager/libnm-gtk4-vpn-plugin-pptp-editor.so | |
82 | %endif | |
f2e2e550 | 83 | %attr(755,root,root) %{_libdir}/pppd/plugins/nm-pptp-pppd-plugin.so |
4cf7fe7e MB |
84 | %attr(755,root,root) %{_libexecdir}/nm-pptp-auth-dialog |
85 | %attr(755,root,root) %{_libexecdir}/nm-pptp-service | |
0feea86d | 86 | %{_prefix}/lib/NetworkManager/VPN/nm-pptp-service.name |
62775956 JB |
87 | %{_datadir}/dbus-1/system.d/nm-pptp-service.conf |
88 | %{_datadir}/metainfo/network-manager-pptp.metainfo.xml |