1 | %global majorminor 1.0 |
---|
2 | %global date 20120405 |
---|
3 | |
---|
4 | Name: libcrystalhd |
---|
5 | Version: 3.10.0 |
---|
6 | Release: 2%{?_dist_release} |
---|
7 | Summary: Broadcom Crystal HD device interface library |
---|
8 | Summary(ja): Broadcom Crystal HD デバイスのインターフェースライブラリ |
---|
9 | |
---|
10 | License: LGPLv2 |
---|
11 | Group: System Environment/Libraries |
---|
12 | URL: http://www.broadcom.com/support/crystal_hd/ |
---|
13 | |
---|
14 | #Source: http://www.broadcom.com/docs/support/crystalhd/crystalhd_linux_20100703.zip |
---|
15 | # This tarball and README are inside the above zip file... |
---|
16 | # Patch generated from http://git.linuxtv.org/jarod/crystalhd.git |
---|
17 | Source0: libcrystalhd-%{date}.tar.bz2 |
---|
18 | Source1: README_07032010 |
---|
19 | # We're going to use even newer firmware for now |
---|
20 | Source2: bcm70012fw.bin |
---|
21 | Source3: bcm70015fw.bin |
---|
22 | # LICENSE file is copy-n-pasted from http://www.broadcom.com/support/crystal_hd/ |
---|
23 | Source4: LICENSE |
---|
24 | Source5: libcrystalhd-snapshot.sh |
---|
25 | Patch0: libcrystalhd-nosse2.patch |
---|
26 | # https://patchwork2.kernel.org/patch/2247431/ |
---|
27 | Patch1: crystalhd-gst-Port-to-GStreamer-1.0-API.patch |
---|
28 | |
---|
29 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
30 | BuildRequires: autoconf automake libtool |
---|
31 | BuildRequires: gstreamer1-devel >= %{majorminor} |
---|
32 | BuildRequires: gstreamer1-plugins-base-devel >= %{majorminor} |
---|
33 | Requires: crystalhd-firmware |
---|
34 | |
---|
35 | %description |
---|
36 | The libcrystalhd library provides userspace access to Broadcom Crystal HD |
---|
37 | video decoder devices. The device supports hardware decoding of MPEG-2, |
---|
38 | h.264 and VC1 video codecs, up to 1080p at 40fps for the first-generation |
---|
39 | bcm970012 hardware, and up to 1080p at 60fps for the second-generation |
---|
40 | bcm970015 hardware. |
---|
41 | |
---|
42 | %package devel |
---|
43 | Summary: Development libs for libcrystalhd |
---|
44 | Summary(ja): libcrystalhd の開発用ファイル |
---|
45 | Group: Development/Libraries |
---|
46 | Requires: %{name} = %{version}-%{release} |
---|
47 | |
---|
48 | %description devel |
---|
49 | Development libraries needed to build applications against libcrystalhd. |
---|
50 | |
---|
51 | %package -n crystalhd-firmware |
---|
52 | Summary: Firmware for the Broadcom Crystal HD video decoder |
---|
53 | Summary(ja): Broadcom Crystal HD ビデオデコーダ用ファームウェア |
---|
54 | License: Redistributable, no modification permitted |
---|
55 | Group: System Environment/Kernel |
---|
56 | BuildArch: noarch |
---|
57 | Requires: %{name} = %{version}-%{release} |
---|
58 | |
---|
59 | %description -n crystalhd-firmware |
---|
60 | Firmwares for the Broadcom Crystal HD (bcm970012 and bcm970015) |
---|
61 | video decoders. |
---|
62 | |
---|
63 | %package -n gstreamer-plugin-crystalhd |
---|
64 | Summary: Gstreamer crystalhd decoder plugin |
---|
65 | Summary(ja): Gstreamer crystalhd デコーダプラグイン |
---|
66 | Group: System Environment/Libraries |
---|
67 | Requires: %{name} = %{version}-%{release} |
---|
68 | Requires: gstreamer1-plugins-base |
---|
69 | |
---|
70 | %description -n gstreamer-plugin-crystalhd |
---|
71 | Gstreamer crystalhd decoder plugin |
---|
72 | |
---|
73 | %prep |
---|
74 | %setup -q -n libcrystalhd-%{date} |
---|
75 | cp %{SOURCE1} %{SOURCE4} . |
---|
76 | %ifnarch %{ix86} ia64 x86_64 |
---|
77 | %patch0 -p1 -b .nosse2 |
---|
78 | sed -i -e 's|-msse2||' linux_lib/libcrystalhd/Makefile |
---|
79 | %endif |
---|
80 | %patch1 -p1 -b .gst1 |
---|
81 | |
---|
82 | %build |
---|
83 | pushd linux_lib/libcrystalhd/ > /dev/null 2>&1 |
---|
84 | # FIXME: this doesn't work just yet... |
---|
85 | #make CPPFLAGS="%{optflags}" %{?_smp_mflags} |
---|
86 | make %{?_smp_mflags} |
---|
87 | popd > /dev/null 2>&1 |
---|
88 | |
---|
89 | pushd filters/gst/gst-plugin/ > /dev/null 2>&1 |
---|
90 | sh autogen.sh || : |
---|
91 | |
---|
92 | %configure |
---|
93 | make %{?_smp_mflags} \ |
---|
94 | CFLAGS="-I%{_builddir}/%{buildsubdir}/include -I%{_builddir}/%{buildsubdir}/linux_lib/libcrystalhd" \ |
---|
95 | BCMDEC_LDFLAGS="-L%{_builddir}/%{buildsubdir}/linux_lib/libcrystalhd -lcrystalhd" |
---|
96 | popd > /dev/null 2>&1 |
---|
97 | |
---|
98 | %install |
---|
99 | rm -rf $RPM_BUILD_ROOT |
---|
100 | pushd linux_lib/libcrystalhd/ > /dev/null 2>&1 |
---|
101 | make install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT |
---|
102 | popd > /dev/null 2>&1 |
---|
103 | pushd filters/gst/gst-plugin/ > /dev/null 2>&1 |
---|
104 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
105 | rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgstbcmdec.{a,la} |
---|
106 | popd > /dev/null 2>&1 |
---|
107 | |
---|
108 | #rm -rf $RPM_BUILD_ROOT/lib/firmware/ |
---|
109 | mkdir -p $RPM_BUILD_ROOT/lib/firmware/ |
---|
110 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/lib/firmware/ |
---|
111 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/lib/firmware/ |
---|
112 | |
---|
113 | # Install udev rule |
---|
114 | mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d |
---|
115 | install -pm 0644 driver/linux/20-crystalhd.rules \ |
---|
116 | $RPM_BUILD_ROOT/lib/udev/rules.d |
---|
117 | |
---|
118 | %clean |
---|
119 | rm -rf $RPM_BUILD_ROOT |
---|
120 | |
---|
121 | %post -p /sbin/ldconfig |
---|
122 | |
---|
123 | %postun -p /sbin/ldconfig |
---|
124 | |
---|
125 | %files |
---|
126 | %defattr(-,root,root,0755) |
---|
127 | %doc README_07032010 LICENSE |
---|
128 | %{_libdir}/libcrystalhd.so.* |
---|
129 | |
---|
130 | %files devel |
---|
131 | %defattr(-,root,root,0755) |
---|
132 | %dir %{_includedir}/libcrystalhd |
---|
133 | %{_includedir}/libcrystalhd/* |
---|
134 | %{_libdir}/libcrystalhd.so |
---|
135 | |
---|
136 | %files -n crystalhd-firmware |
---|
137 | %defattr(-,root,root,0755) |
---|
138 | %doc LICENSE |
---|
139 | /lib/udev/rules.d/20-crystalhd.rules |
---|
140 | /lib/firmware/bcm70012fw.bin |
---|
141 | /lib/firmware/bcm70015fw.bin |
---|
142 | |
---|
143 | %files -n gstreamer-plugin-crystalhd |
---|
144 | %defattr(-,root,root,0755) |
---|
145 | %{_libdir}/gstreamer-%{majorminor}/*.so |
---|
146 | |
---|
147 | |
---|
148 | %changelog |
---|
149 | * Sun Jul 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.0-2 |
---|
150 | - rebuild with gcc-5.4.0 |
---|
151 | |
---|
152 | * Tue Mar 17 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.10.0-1 |
---|
153 | - updated to 3.10.0 based on Fedora 3.10.0-8 |
---|
154 | - changed gstreamer-plugin-crystalhd to System Environment/Libraries Group |
---|
155 | |
---|
156 | * Wed Jan 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.5.1-3 |
---|
157 | - applied libcrystalhd-3.5.1-define-first.patch |
---|
158 | |
---|
159 | * Sun May 08 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.1-2 |
---|
160 | - add Patch1 for ppc (libcrystalhd-ppc.patch) |
---|
161 | |
---|
162 | * Sun Feb 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 3.5.1-1 |
---|
163 | - initial build based on Fedora rawhide |
---|
164 | |
---|
165 | * Sat Aug 28 2010 Jarod Wilson <jarod@redhat.com> - 3.5.1-1 |
---|
166 | - Update to v3.5.1, now with nv12 support |
---|
167 | |
---|
168 | * Sun Jul 25 2010 Jarod Wilson <jarod@redhat.com> - 3.5.0-2 |
---|
169 | - Tarball had object files in it, clean them out before building |
---|
170 | |
---|
171 | * Sat Jul 24 2010 Jarod Wilson <jarod@redhat.com> - 3.5.0-1 |
---|
172 | - Rebase to 07032010 crystalhd sources |
---|
173 | - Large version-bump as driver and lib are now essentially 100% |
---|
174 | in sync with the Windows driver and lib |
---|
175 | - Ship firmware, now that Broadcom has posted a redistribution, |
---|
176 | no modification license to cover it |
---|
177 | - Build the gstreamer decoder plugin (will be moved to its own |
---|
178 | package sooner or later) |
---|
179 | |
---|
180 | * Sun Apr 04 2010 Jarod Wilson <jarod@redhat.com> - 0.9.25-4 |
---|
181 | - Fix segfault on firmware upload |
---|
182 | |
---|
183 | * Fri Mar 26 2010 Jarod Wilson <jarod@redhat.com> - 0.9.25-3 |
---|
184 | - Update to pre-0.9.26 libcrystalhd, which contains support |
---|
185 | for the new Broadcom BCM970015 Crystal HD decoder card |
---|
186 | |
---|
187 | * Thu Mar 11 2010 Jarod Wilson <jarod@redhat.com> - 0.9.25-2 |
---|
188 | - Minor fixups to the as-yet-not-enabled firmware sub-package |
---|
189 | |
---|
190 | * Wed Jan 06 2010 Jarod Wilson <jarod@redhat.com> - 0.9.25-1 |
---|
191 | - Initial package |
---|