Name: libcec Epoch: 1 Version: 6.0.2 Release: 2mamba Summary: USB CEC Adaptor communication Library Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://libcec.pulse-eight.com/ Source: https://github.com/Pulse-Eight/libcec/archive/libcec-%{version}.tar.gz #Source: https://github.com/Pulse-Eight/libcec.git/libcec-%{version}/libcec-%{version}.tar.bz2 Patch0: libcec-3.0.1-buildfix-upstream.patch Patch1: libcec-6.0.2-pythonlib.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libX11-devel BuildRequires: libXrandr-devel BuildRequires: libcec-p8-platform-devel BuildRequires: libgcc BuildRequires: libncurses-devel BuildRequires: libpython3-devel BuildRequires: libstdc++6-devel BuildRequires: libudev-devel ## AUTOBUILDREQ-END BuildRequires: autoconf BuildRequires: libtool BuildRequires: liblockdev-devel %ifarch arm aarch64 BuildRequires: libraspberrypi-devel %endif %description libCEC allows you in combination with the right hardware to control your device with your TV remote control. %package devel Group: Development/Libraries Summary: Development files for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: pkg-config %description devel This package contains libraries and header files for developing applications that use %{name}. %package tools Group: System/Tools Summary: Tools provided with %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description tools This package contains libraries and header files for developing applications that use %{name}. %package -n python-%{name} Group: System/Tools Summary: A Python 3 interface to libcec Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n python-%{name} This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q -n libcec-libcec-%{version} #-D -T #:<< _EOF #%patch0 -p1 %patch1 -p1 %build #:<< _EOF %cmake -d build \ -DPYTHON_INCLUDE_DIR=%{python3_inc} \ -DPYTHON_LIBRARY=%{_libdir}/libpython%{python3_version}.so \ %ifarch arm aarch64 -DRPI_INCLUDE_DIR=/opt/vc/include \ -DRPI_LIB_DIR=/opt/vc/lib \ %endif %ifarch aarch64 \ --DHAVE_AOCEC_API=1 %endif %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libcec.so.* %doc AUTHORS COPYING %files devel %defattr(-,root,root) %{_includedir}/libcec %{_libdir}/libcec.so %{_libdir}/pkgconfig/libcec.pc #%doc ChangeLog %files tools %defattr(-,root,root) %{_bindir}/cec-client %{_bindir}/cec-client-%{version} %{_bindir}/cecc-client %{_bindir}/cecc-client-%{version} %files -n python-libcec %{_bindir}/pyCecClient %dir %{python3_sitearch}/cec %{python3_sitearch}/cec/_cec.so %{python3_sitearch}/cec/cec.py %changelog * Tue Apr 20 2021 Silvan Calarco 6.0.2-2mamba - unconditionally build with raspberrypi support on arm and aarch64 * Thu Jul 16 2020 Automatic Build System 6.0.2-1mamba - automatic version update by autodist * Sat May 02 2020 Automatic Build System 5.0.0-1mamba - automatic version update by autodist * Sat Nov 09 2019 Automatic Build System 4.0.4-1mamba - automatic version update by autodist * Mon Nov 04 2019 Silvan Calarco 4.0.3-1mamba - update to 4.0.3 * Wed Sep 23 2015 Silvan Calarco 3.0.1-1mamba - update to 3.0.1 * Sun Mar 03 2013 Davide Madrisan 20130217git-4mamba - fix the summary of the devel package * Mon Feb 25 2013 openmamba WebBuild System 20130217git-3mamba - simplify the conditional statements by using a syntax that autospec can understand * Sun Feb 24 2013 Davide Madrisan 20130217git-2mamba - make raspberrypi a conditional build target * Sun Feb 17 2013 Davide Madrisan 20130217git-1mamba - package created by autospec