[gtk-vnc] Allow gtk2 build to be disabled
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Allow gtk2 build to be disabled
- Date: Wed, 1 Aug 2018 15:50:45 +0000 (UTC)
commit be2ff4e58ec4e3d07c2e77e25183a917f299ec88
Author: Daniel P. Berrangé <berrange redhat com>
Date: Mon Jul 23 18:27:39 2018 +0100
Allow gtk2 build to be disabled
Signed-off-by: Daniel P. Berrangé <berrange redhat com>
gtk-vnc.spec.in | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/gtk-vnc.spec.in b/gtk-vnc.spec.in
index 25635dc..ea2d329 100644
--- a/gtk-vnc.spec.in
+++ b/gtk-vnc.spec.in
@@ -8,6 +8,11 @@
%global with_gir 1
%endif
+%global with_gtk2 1
+%if 0%{?rhel} >= 8
+%global with_gtk2 0
+%endif
+
%global with_gtk3 0
%if 0%{?fedora} || 0%{?rhel} >= 7
%global with_gtk3 1
@@ -51,6 +56,7 @@ BuildRequires: /usr/bin/pod2man
gtk-vnc is a VNC viewer widget for GTK2. It is built using coroutines
allowing it to be completely asynchronous while remaining single threaded.
+%if %{with_gtk2}
%package devel
Summary: Development files to build GTK2 applications with gtk-vnc
Requires: %{name} = %{version}-%{release}
@@ -62,6 +68,7 @@ gtk-vnc is a VNC viewer widget for GTK2. It is built using coroutines
allowing it to be completely asynchronous while remaining single threaded.
Libraries, includes, etc. to compile with the gtk-vnc library
+%endif
%package -n gvnc
Summary: A GObject for VNC connections
@@ -148,12 +155,14 @@ cp -a gtk-vnc-%{version} gtk-vnc2-%{version}
%define gir_arg --enable-introspection=no
%endif
+%if %{with_gtk2}
cd gtk-vnc-%{version}
%configure --with-gtk=2.0 %{gir_arg} \
--with-tls-priority=%{tls_priority}
%__make %{?_smp_mflags} V=1
chmod -x examples/*.pl examples/*.js examples/*.py
cd ..
+%endif
%if %{with_gtk3}
cd gtk-vnc2-%{version}
@@ -167,9 +176,11 @@ cd ..
%install
rm -fr %{buildroot}
+%if %{with_gtk2}
cd gtk-vnc-%{version}
%__make install DESTDIR=%{buildroot}
cd ..
+%endif
%if %{with_gtk3}
cd gtk-vnc2-%{version}
@@ -200,6 +211,7 @@ rm -f %{buildroot}%{_libdir}/*.la
%postun -n gtk-vnc2 -p /sbin/ldconfig
%endif
+%if %{with_gtk2}
%files
%defattr(-, root, root)
%{_libdir}/libgtk-vnc-1.0.so.*
@@ -217,6 +229,7 @@ rm -f %{buildroot}%{_libdir}/*.la
%if %{with_gir}
%{_datadir}/gir-1.0/GtkVnc-1.0.gir
%endif
+%endif
%files -n gvnc -f %{name}.lang
%defattr(-, root, root)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]