legacy package [release 3.10.0.20130731git-2mamba;Sun Jan 31 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 04:03:15 +01:00
parent bea94f3019
commit 0d36bda620
3 changed files with 146 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# libcrystalhd3
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.

14
crystal_hd-LICENSE Normal file
View File

@ -0,0 +1,14 @@
Legal Disclaimer
The Crystal HD video decoder open source software is provided under the GNU Lesser General Public License, version 2.1, as published by the Free Software Foundation ("LGPL"). This software is distributed in the hope that it will be useful, but WITHOUT ANY SUPPORT OR WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LGPL for more details. A copy of the LGPL is available at http://www.broadcom.com/licenses/LGPLv2.1.php or by writing to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
The BCM70015 and BCM70012 device firmware (binary files bcm70015fw.bin and bcm70012fw.bin) is distributed under the following terms:
Copyright 2007-2010 Broadcom Corporation.
Redistribution and use in binary forms of this software, without modification, are permitted provided that the following conditions are met:
* Redistributions must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of Broadcom nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

130
libcrystalhd3.spec Normal file
View File

@ -0,0 +1,130 @@
%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