diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-01-17 14:16:40 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-01-17 14:16:40 +0100 |
commit | 6a42ed6aae69067dfd4c09aa5139499d64bcdf47 (patch) | |
tree | de8924664d49645082eea3bf87851aa981875233 | |
parent | 8aaa26cf50574707abd682cd3bc0a95461d50640 (diff) | |
download | vconsole-6a42ed6aae69067dfd4c09aa5139499d64bcdf47.tar.gz |
avahi conditional build, specfile update
-rw-r--r-- | meson.build | 15 | ||||
-rw-r--r-- | vconsole.spec | 9 |
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 |