|
@@ -1,31 +1,36 @@
|
|
|
-Summary: Broadcom Crystal HD device interface library
|
|
|
+%global majorminor 1.0
|
|
|
+%global date 20120405
|
|
|
+
|
|
|
Name: libcrystalhd
|
|
|
-Version: 3.5.1
|
|
|
-Release: 3%{?_dist_release}
|
|
|
+Version: 3.10.0
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Summary: Broadcom Crystal HD device interface library
|
|
|
+Summary(ja): Broadcom Crystal HD デバイスのインターフェースライブラリ
|
|
|
+
|
|
|
License: LGPLv2
|
|
|
Group: System Environment/Libraries
|
|
|
+URL: http://www.broadcom.com/support/crystal_hd/
|
|
|
+
|
|
|
#Source: http://www.broadcom.com/docs/support/crystalhd/crystalhd_linux_20100703.zip
|
|
|
# This tarball and README are inside the above zip file...
|
|
|
-Source0: crystalhd_07032010.tbz2
|
|
|
+# Patch generated from http://git.linuxtv.org/jarod/crystalhd.git
|
|
|
+Source0: libcrystalhd-%{date}.tar.bz2
|
|
|
Source1: README_07032010
|
|
|
# We're going to use even newer firmware for now
|
|
|
Source2: bcm70012fw.bin
|
|
|
Source3: bcm70015fw.bin
|
|
|
# LICENSE file is copy-n-pasted from http://www.broadcom.com/support/crystal_hd/
|
|
|
Source4: LICENSE
|
|
|
+Source5: libcrystalhd-snapshot.sh
|
|
|
+Patch0: libcrystalhd-nosse2.patch
|
|
|
+# https://patchwork2.kernel.org/patch/2247431/
|
|
|
+Patch1: crystalhd-gst-Port-to-GStreamer-1.0-API.patch
|
|
|
+
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+BuildRequires: autoconf automake libtool
|
|
|
+BuildRequires: gstreamer1-devel >= %{majorminor}
|
|
|
+BuildRequires: gstreamer1-plugins-base-devel >= %{majorminor}
|
|
|
Requires: crystalhd-firmware
|
|
|
-URL: http://www.broadcom.com/support/crystal_hd/
|
|
|
-# Patch generated from http://git.wilsonet.com/crystalhd.git/
|
|
|
-Patch0: libcrystalhd-updates.patch
|
|
|
-# patch for ppc
|
|
|
-Patch1: libcrystalhd-ppc.patch
|
|
|
-# patch for gcc4.6 based on
|
|
|
-# http://git.wilsonet.com/?p=crystalhd.git;a=patch;h=dd4f01a0f9861425406c9ead7e326324d525d19a
|
|
|
-Patch10: libcrystalhd-3.5.1-gcc46.patch
|
|
|
-# fix building failures
|
|
|
-Patch11: libcrystalhd-3.5.1-define-first.patch
|
|
|
-ExcludeArch: s390 s390x
|
|
|
-BuildRequires: autoconf automake
|
|
|
|
|
|
%description
|
|
|
The libcrystalhd library provides userspace access to Broadcom Crystal HD
|
|
@@ -36,6 +41,7 @@ bcm970015 hardware.
|
|
|
|
|
|
%package devel
|
|
|
Summary: Development libs for libcrystalhd
|
|
|
+Summary(ja): libcrystalhd の開発用ファイル
|
|
|
Group: Development/Libraries
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
@@ -44,41 +50,34 @@ Development libraries needed to build applications against libcrystalhd.
|
|
|
|
|
|
%package -n crystalhd-firmware
|
|
|
Summary: Firmware for the Broadcom Crystal HD video decoder
|
|
|
+Summary(ja): Broadcom Crystal HD ビデオデコーダ用ファームウェア
|
|
|
License: Redistributable, no modification permitted
|
|
|
-BuildArch: noarch
|
|
|
Group: System Environment/Kernel
|
|
|
+BuildArch: noarch
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description -n crystalhd-firmware
|
|
|
Firmwares for the Broadcom Crystal HD (bcm970012 and bcm970015)
|
|
|
video decoders.
|
|
|
|
|
|
-%define majorminor 0.10
|
|
|
-%define _gst 0.10.30
|
|
|
-%define _gstpb 0.10.30
|
|
|
-
|
|
|
%package -n gstreamer-plugin-crystalhd
|
|
|
Summary: Gstreamer crystalhd decoder plugin
|
|
|
-Group: Applications/Multimedia
|
|
|
+Summary(ja): Gstreamer crystalhd デコーダプラグイン
|
|
|
+Group: System Environment/Libraries
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
-Requires: gstreamer-plugins-base
|
|
|
-BuildRequires: gstreamer-devel >= %{_gst}
|
|
|
-BuildRequires: gstreamer-plugins-base-devel >= %{_gstpb}
|
|
|
+Requires: gstreamer1-plugins-base
|
|
|
|
|
|
%description -n gstreamer-plugin-crystalhd
|
|
|
Gstreamer crystalhd decoder plugin
|
|
|
|
|
|
%prep
|
|
|
-%setup -q -n 07032010
|
|
|
-%patch0 -p1 -b .git
|
|
|
-%ifarch ppc
|
|
|
-%patch1 -p1 -b .ppc
|
|
|
-%endif
|
|
|
-
|
|
|
-%patch10 -p1 -b .gcc46
|
|
|
-%patch11 -p1 -b .boolian
|
|
|
-
|
|
|
+%setup -q -n libcrystalhd-%{date}
|
|
|
cp %{SOURCE1} %{SOURCE4} .
|
|
|
+%ifnarch %{ix86} ia64 x86_64
|
|
|
+%patch0 -p1 -b .nosse2
|
|
|
+sed -i -e 's|-msse2||' linux_lib/libcrystalhd/Makefile
|
|
|
+%endif
|
|
|
+%patch1 -p1 -b .gst1
|
|
|
|
|
|
%build
|
|
|
pushd linux_lib/libcrystalhd/ > /dev/null 2>&1
|
|
@@ -86,9 +85,14 @@ pushd linux_lib/libcrystalhd/ > /dev/null 2>&1
|
|
|
#make CPPFLAGS="%{optflags}" %{?_smp_mflags}
|
|
|
make %{?_smp_mflags}
|
|
|
popd > /dev/null 2>&1
|
|
|
+
|
|
|
pushd filters/gst/gst-plugin/ > /dev/null 2>&1
|
|
|
+sh autogen.sh || :
|
|
|
+
|
|
|
%configure
|
|
|
-make %{?_smp_mflags}
|
|
|
+make %{?_smp_mflags} \
|
|
|
+ CFLAGS="-I%{_builddir}/%{buildsubdir}/include -I%{_builddir}/%{buildsubdir}/linux_lib/libcrystalhd" \
|
|
|
+ BCMDEC_LDFLAGS="-L%{_builddir}/%{buildsubdir}/linux_lib/libcrystalhd -lcrystalhd"
|
|
|
popd > /dev/null 2>&1
|
|
|
|
|
|
%install
|
|
@@ -98,11 +102,19 @@ make install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
|
|
popd > /dev/null 2>&1
|
|
|
pushd filters/gst/gst-plugin/ > /dev/null 2>&1
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-0.10/libgstbcmdec.{a,la}
|
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgstbcmdec.{a,la}
|
|
|
popd > /dev/null 2>&1
|
|
|
+
|
|
|
+#rm -rf $RPM_BUILD_ROOT/lib/firmware/
|
|
|
+mkdir -p $RPM_BUILD_ROOT/lib/firmware/
|
|
|
cp -p %{SOURCE2} $RPM_BUILD_ROOT/lib/firmware/
|
|
|
cp -p %{SOURCE3} $RPM_BUILD_ROOT/lib/firmware/
|
|
|
|
|
|
+# Install udev rule
|
|
|
+mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d
|
|
|
+install -pm 0644 driver/linux/20-crystalhd.rules \
|
|
|
+ $RPM_BUILD_ROOT/lib/udev/rules.d
|
|
|
+
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
@@ -124,6 +136,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%files -n crystalhd-firmware
|
|
|
%defattr(-,root,root,0755)
|
|
|
%doc LICENSE
|
|
|
+/lib/udev/rules.d/20-crystalhd.rules
|
|
|
/lib/firmware/bcm70012fw.bin
|
|
|
/lib/firmware/bcm70015fw.bin
|
|
|
|
|
@@ -133,6 +146,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Mar 17 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.10.0-1
|
|
|
+- updated to 3.10.0 based on Fedora 3.10.0-8
|
|
|
+- changed gstreamer-plugin-crystalhd to System Environment/Libraries Group
|
|
|
+
|
|
|
* Wed Jan 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.5.1-3
|
|
|
- applied libcrystalhd-3.5.1-define-first.patch
|
|
|
|