aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meson.build15
-rw-r--r--vconsole.spec9
2 files changed, 8 insertions, 16 deletions
diff --git a/meson.build b/meson.build
index 5b5edda..bdc03fc 100644
--- a/meson.build
+++ b/meson.build
@@ -16,8 +16,8 @@ gtk3_dep = dependency('gtk+-3.0')
vte_dep = dependency('vte-2.91')
libvirt_dep = dependency('libvirt')
libxml_dep = dependency('libxml-2.0')
-avahi_client_dep = dependency('avahi-client')
-avahi_glib_dep = dependency('avahi-glib')
+avahi_client_dep = dependency('avahi-client', required : false)
+avahi_glib_dep = dependency('avahi-glib', required : false)
# finish & write configuration
configure_file(output : 'config.h', configuration : config)
@@ -47,8 +47,9 @@ install_man('vconsole.1')
install_data('vconsole.desktop',
install_dir : 'share/applications')
-
-executable('vpublish',
- sources : vpublish_srcs,
- dependencies : vpublish_deps,
- install : true)
+if avahi_glib_dep.found()
+ executable('vpublish',
+ sources : vpublish_srcs,
+ dependencies : vpublish_deps,
+ install : true)
+endif
diff --git a/vconsole.spec b/vconsole.spec
index f4eacbe..8538220 100644
--- a/vconsole.spec
+++ b/vconsole.spec
@@ -18,11 +18,6 @@ BuildRequires: pkgconfig(vte-2.91)
%description
Virtual machine serial console manager
-%package -n vpublish
-Summary: Virtual machine gfx console publisher
-%description -n vpublish
-Publish virtual machine gfx console (vnc) via avahi.
-
%prep
%setup -q
@@ -40,10 +35,6 @@ ninja-build -C build-rpm install
%{_mandir}/man1/vconsole.1*
/usr/share/applications/vconsole.desktop
-%files -n vpublish
-%{_bindir}/vpublish
-%{_unitdir}/vpublish.service
-
%changelog
* Thu Jun 01 2017 Gerd Hoffmann <kraxel@redhat.com> 0.8-1
- new package built with tito