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