2024-01-06 03:58:39 +01:00
|
|
|
# note: build for raspberrypi
|
|
|
|
# autospec --define _with_raspberrypi=1 -u -a5 libcec.spec
|
|
|
|
# -or-
|
|
|
|
# rpmbuild --with raspberrypi libcec.spec
|
|
|
|
|
|
|
|
%if "%{?_with_raspberrypi}"
|
|
|
|
%define pckname %{name}-rpi
|
|
|
|
%else
|
|
|
|
%define pckname %name
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: libcec
|
2024-01-06 03:58:39 +01:00
|
|
|
Epoch: 1
|
|
|
|
Version: 3.0.1
|
|
|
|
Release: 1mamba
|
2024-01-06 03:58:39 +01:00
|
|
|
Summary: USB CEC Adaptor communication Library
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
|
|
|
URL: http://libcec.pulse-eight.com/
|
|
|
|
## GITSOURCE git://github.com/Pulse-Eight/libcec.git
|
2024-01-06 03:58:39 +01:00
|
|
|
Source: git://github.com/Pulse-Eight/libcec.git/libcec-%{version}/libcec-%{version}.tar.bz2
|
|
|
|
Patch0: libcec-3.0.1-buildfix-upstream.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: libgcc
|
2024-01-06 03:58:39 +01:00
|
|
|
BuildRequires: libncurses-devel
|
|
|
|
BuildRequires: libplatform-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
|
|
|
|
%if "%{?_with_raspberrypi}"
|
|
|
|
BuildRequires: libraspberrypi-devel
|
|
|
|
Provides: libcec = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%endif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
libCEC allows you in combination with the right hardware to control your device with your TV remote control.
|
|
|
|
|
|
|
|
%if "%{?_with_raspberrypi}"
|
|
|
|
%package -n %{name}-rpi
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Summary: USB CEC Adaptor communication Library
|
|
|
|
|
|
|
|
%description -n %{name}-rpi
|
|
|
|
libCEC allows you in combination with the right hardware to control your device with your TV remote control.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package -n %{pckname}-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{pckname}
|
|
|
|
Requires: %{pckname} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%if "%{?_with_raspberrypi}"
|
|
|
|
Provides: libcec-devel = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%endif
|
|
|
|
Requires: pkg-config
|
|
|
|
|
|
|
|
%description -n %{pckname}-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{pckname}.
|
|
|
|
|
2024-01-06 03:58:39 +01:00
|
|
|
%debug_package
|
2024-01-06 03:58:39 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#-D -T
|
2024-01-06 03:58:39 +01:00
|
|
|
%patch0 -p1
|
2024-01-06 03:58:39 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
#: << CBLOCK
|
2024-01-06 03:58:39 +01:00
|
|
|
%cmake -d build \
|
|
|
|
\
|
2024-01-06 03:58:39 +01:00
|
|
|
%if "%{?_with_raspberrypi}"
|
2024-01-06 03:58:39 +01:00
|
|
|
-DRPI_INCLUDE_DIR=/opt/vc/include \
|
|
|
|
-DRPI_LIB_DIR=/opt/vc/lib
|
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}"
|
|
|
|
|
|
|
|
%post -n %{pckname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{pckname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{pckname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/cec-client
|
2024-01-06 03:58:39 +01:00
|
|
|
%{_bindir}/cec-client-3.0.1
|
|
|
|
%{_bindir}/cecc-client
|
|
|
|
%{_bindir}/cecc-client-3.0.1
|
|
|
|
%{_bindir}/pyCecClient.py
|
|
|
|
%{_prefix}/lib/python*/dist-packages/cec/__init__.py
|
|
|
|
%{_prefix}/lib/python*/dist-packages/cec/_cec.so
|
2024-01-06 03:58:39 +01:00
|
|
|
%{_libdir}/libcec.so.*
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%files -n %{pckname}-devel
|
|
|
|
%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
|
|
|
|
|
|
|
%changelog
|
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
|