From f4a1d57c1ee07d6dfa95fe33419ae5748a537e3e2798630da121c6d13414b67e Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 30 Nov 2019 10:00:25 +0000 Subject: [PATCH] Accepting request 750016 from home:StefanBruens:branches:openSUSE:Factory - Use python3-base BuildRequires instead of full python3 - Drop doxygen BuildRequires, the api-docs are bundled in the source tarball and not regenerated, and are not even packaged. - Move the portaudio based IR receiver driver behind a bcond - the alsa based driver does the same, uses less resources, and does not need an extra library. OBS-URL: https://build.opensuse.org/request/show/750016 OBS-URL: https://build.opensuse.org/package/show/vdr/lirc?expand=0&rev=98 --- lirc.changes | 10 ++++++++++ lirc.spec | 11 ++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/lirc.changes b/lirc.changes index 5d5d086..175da6a 100644 --- a/lirc.changes +++ b/lirc.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Nov 20 22:22:04 UTC 2019 - Stefan BrĂ¼ns + +- Use python3-base BuildRequires instead of full python3 +- Drop doxygen BuildRequires, the api-docs are bundled in the + source tarball and not regenerated, and are not even packaged. +- Move the portaudio based IR receiver driver behind a bcond - the + alsa based driver does the same, uses less resources, and does + not need an extra library. + ------------------------------------------------------------------- Sun Nov 18 04:44:21 UTC 2018 - Bernhard Wiedemann diff --git a/lirc.spec b/lirc.spec index 074575a..d3505b1 100644 --- a/lirc.spec +++ b/lirc.spec @@ -1,7 +1,7 @@ # # spec file for package lirc # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,8 @@ # +%bcond_with portaudio_drv + %define _udevdir %(pkg-config --variable udevdir udev) %if ! %{defined _rundir} %define _rundir %{_localstatedir}/run @@ -30,15 +32,14 @@ URL: http://www.lirc.org/ Source0: https://downloads.sourceforge.net/project/lirc/LIRC/%{version}/lirc-%{version}.tar.bz2 Source1: baselibs.conf Patch0: reproducible.patch -BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: kmod-compat BuildRequires: libxslt-tools # for hw_atilibusb driver BuildRequires: pkgconfig -BuildRequires: python3 BuildRequires: python3-PyYAML +BuildRequires: python3-base BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: pkgconfig(alsa) @@ -46,7 +47,9 @@ BuildRequires: pkgconfig(libftdi1) BuildRequires: pkgconfig(libirman) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libusb) +%if %{with portaudio_drv} BuildRequires: pkgconfig(portaudio-2.0) +%endif BuildRequires: pkgconfig(sm) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(udev) @@ -319,9 +322,11 @@ usermod -a -G input lirc &> /dev/null || : %{_libdir}/pkgconfig/lirc-driver.pc %{_libdir}/pkgconfig/lirc.pc +%if %{with portaudio_drv} %files drv-portaudio %{_libdir}/lirc/plugins/audio.so %{_datadir}/lirc/configs/audio.conf +%endif %files drv-ftdi %{_libdir}/lirc/plugins/ftdi.so