131 lines
4.4 KiB
RPMSpec
131 lines
4.4 KiB
RPMSpec
%define pkgver %(echo %version | cut -d. -f4)
|
|
%define pkgverrev 07032010
|
|
Name: libcrystalhd3
|
|
Version: 3.10.0.20130731git
|
|
Release: 2mamba
|
|
Summary: Broadcom Crystal HD device interface library
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.broadcom.com/support/crystal_hd/
|
|
Source: git://linuxtv.org/jarod/crystalhd.git/master/crystalhd-%{version}.tar.bz2
|
|
#Source0: http://www.broadcom.com/docs/support/crystalhd/crystalhd_linux_%{pkgver}.zip
|
|
# from openSUSE generated from http://git.wilsonet.com/crystalhd.git/
|
|
Source1: crystal_hd-LICENSE
|
|
License: LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: ldconfig
|
|
BuildRequires: libgcc
|
|
BuildRequires: libstdc++6-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
The libcrystalhd library provides userspace access to Broadcom Crystal HD video decoder devices. The device supports hardware decoding of MPEG-2, h.264 and VC1 video codecs, up to 1080p at 40fps for the first-generation bcm970012 hardware, and up to 1080p at 60fps for the second-generation bcm970015 hardware.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Static libraries and headers for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
Broadcom Crystal HD device interface library.
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
%package -n crystalhd-firmware
|
|
Group: System/Kernel and Hardware
|
|
Summary: Firmware for the Broadcom Crystal HD video decoder
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n crystalhd-firmware
|
|
Broadcom Crystal HD device interface library.
|
|
|
|
This package contains firmwares for the Broadcom Crystal HD (bcm970012 and bcm970015) video decoders.
|
|
|
|
%package -n gstreamer-plugin-crystalhd
|
|
Group: System/Multimedia
|
|
Summary: Gstreamer crystalhd decoder plugin
|
|
BuildRequires: libgst-plugins-base-devel
|
|
BuildRequires: libgstreamer-devel
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n gstreamer-plugin-crystalhd
|
|
Broadcom Crystal HD device interface library.
|
|
This package contains Gstreamer crystalhd decoder plugin.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -n crystalhd-%{version}
|
|
cp %{SOURCE1} LICENSE
|
|
|
|
%build
|
|
%make -C linux_lib/libcrystalhd
|
|
#cd filters/gst/gst-plugin/
|
|
#./autogen.sh
|
|
#% configure
|
|
#% make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall LIBDIR=%{_libdir} DESTDIR=%{buildroot} -C linux_lib/libcrystalhd
|
|
#% makeinstall DESTDIR=%{buildroot} -C filters/gst/gst-plugin
|
|
|
|
rm -f %{buildroot}%{_libdir}/gstreamer-0.10/libgstbcmdec.{a,la}
|
|
mkdir -p %{buildroot}/lib/firmware
|
|
install -pm 755 firmware/fwbin/70012/bcm70012fw.bin %{buildroot}/lib/firmware/
|
|
install -pm 755 firmware/fwbin/70012/bcmFilePlayFw.bin %{buildroot}/lib/firmware/
|
|
install -pm 755 firmware/fwbin/70015/bcm70015fw.bin %{buildroot}/lib/firmware/
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libcrystalhd.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/libcrystalhd
|
|
%{_includedir}/libcrystalhd/*.h
|
|
%{_libdir}/libcrystalhd.so
|
|
|
|
%files -n crystalhd-firmware
|
|
%defattr(-,root,root)
|
|
/lib/firmware/bcmFilePlayFw.bin
|
|
/lib/firmware/bcm70012fw.bin
|
|
/lib/firmware/bcm70015fw.bin
|
|
%doc LICENSE
|
|
|
|
#%files -n gstreamer-plugin-crystalhd
|
|
#%defattr(-,root,root)
|
|
#%{_libdir}/gstreamer-*.*/libgstbcmdec.so
|
|
#%doc filters/gst/gst-plugin/COPYING
|
|
|
|
%changelog
|
|
* Sun Jan 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.10.0.20130731git-2mamba
|
|
- legacy package
|
|
|
|
* Wed Jul 31 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.10.0.20130731git-1mamba
|
|
- update to 3.10.0.20130731git
|
|
|
|
* Mon Oct 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.9.20100703-2mamba
|
|
- fixed built with gcc 4.7
|
|
|
|
* Fri Mar 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.9.20100703-1mamba
|
|
- update to 3.6.9.20100307
|
|
- added patch from http://expresskeys.ruivo.org/cgi-bin/gitweb.cgi?p=crystalhd.git to fix build with ffmpeg 0.8.10
|
|
|
|
* Fri Jan 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.1-2mamba
|
|
- rebuilt in devel
|
|
|
|
* Mon Mar 07 2011 gil <puntogil@libero.it> 3.5.1-1mamba
|
|
- package created by autospec
|