1 | %define hg_src a910b49dfbee |
---|
2 | %define b25_hg_src ec7c87854f2f |
---|
3 | |
---|
4 | Summary: Digital terrestrial television recording tool for linux |
---|
5 | Summary(ja): 地上波デジタルテレビ放送の Linux 用録画ツール |
---|
6 | Name: recfriio |
---|
7 | Version: r5 |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | # #recfriio r4 + arib25 0.2.1 |
---|
10 | # Source0: http://2sen.dip.jp/cgi-bin/friioup/source/up0777.zip |
---|
11 | #recfriio r5 + arib25 0.2.5 |
---|
12 | Source0: http://2sen.dip.jp/cgi-bin/friioup/source/up1210.zip |
---|
13 | #recfriio r4 for HDUS |
---|
14 | Source1: http://2sen.dip.jp/cgi-bin/hdusup/source/up0127.zip |
---|
15 | Source2: http://2sen.dip.jp/cgi-bin/hdusup/source/up0257.zip |
---|
16 | # Download URL: http://hg.honeyplanet.jp/pt1/archive/%{hg_src}.tar.bz2 |
---|
17 | Source3: pt1-%{hg_src}.tar.bz2 |
---|
18 | Source4: pt1-%{b25_hg_src}.tar.bz2 |
---|
19 | Patch0: recfriior5-fix-compile-vine.patch |
---|
20 | Patch1: b25-0.2.4-Makefile.patch |
---|
21 | Patch2: recfriior5-fix-recfriior4-newhdus-patch.patch |
---|
22 | License: distributable/BSD (see README files for detail) |
---|
23 | Group: Applications/Multimedia |
---|
24 | #URL: |
---|
25 | |
---|
26 | #Requires: |
---|
27 | BuildRequires: libboost-devel, libboost-thread, libboost-filesystem |
---|
28 | BuildRequires: pcsc-lite-devel |
---|
29 | BuildRequires: unzip |
---|
30 | BuildRequires: glib2-devel, libusb-devel |
---|
31 | |
---|
32 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
33 | |
---|
34 | Packager: kazutaka |
---|
35 | |
---|
36 | |
---|
37 | %description |
---|
38 | Set of command line tools to record digital terrestrial television |
---|
39 | for linux. |
---|
40 | It supports friio (digital terrestrial television and BS/CS) and |
---|
41 | MonsterTV HDUS series (*Not suppot all models). |
---|
42 | |
---|
43 | For HDUS uses, you should copy the firmware(SKNET_AS11Loader.sys) |
---|
44 | to %{_libdir}/hdus and then udev automatically load it when device |
---|
45 | is found. |
---|
46 | |
---|
47 | %description -l ja |
---|
48 | 地上波デジタルテレビ放送を録画する為の、Linux 用のコマンドライン |
---|
49 | ツールです。 |
---|
50 | friio (地上波デジタル用及びBS/CS用)と MonsterTV HDUS シリーズ |
---|
51 | (*一部の対応機種のみ)に対応しています。 |
---|
52 | |
---|
53 | 尚、HDUS で利用する場合はファームウェア(SKNET_AS11Loader.sys) |
---|
54 | を %{_libdir}/hdus に置いておくと、udev 経由で自動的に読み込まれ |
---|
55 | ます。 |
---|
56 | |
---|
57 | #------------------------------------------------------------------------------ |
---|
58 | |
---|
59 | %package -n b25 |
---|
60 | Summary: Digital terrestrial television stream decryption tool |
---|
61 | Summary(ja): 地上波デジタルテレビ放送の複合用ツール |
---|
62 | |
---|
63 | License: distributable |
---|
64 | Group: Applications/Multimedia |
---|
65 | URL: http://hg.honeyplanet.jp/pt1 |
---|
66 | Conflicts: recfriio <= r4-2%{?_dist_release} |
---|
67 | |
---|
68 | %description -n b25 |
---|
69 | b25 is a command line tool for linux to decrypt MPEG2-TS stream |
---|
70 | recorded by digital terrestrial television recorder, such as |
---|
71 | friio, pt1 and HDUS. |
---|
72 | |
---|
73 | %description -n b25 -l ja |
---|
74 | friio や pt1、HDUS 等の、PC 用の地上波デジタルテレビ放送の |
---|
75 | 受信機で録画した、暗号化されているMPEG2-TS ストリームを復号化 |
---|
76 | する為の、Linux 用のコマンドラインツールです。 |
---|
77 | |
---|
78 | #------------------------------------------------------------------------------ |
---|
79 | |
---|
80 | %package -n b25-devel |
---|
81 | Summary: Development file for b25 |
---|
82 | Summary(ja): b25 用の開発ファイル |
---|
83 | Group: Development/Libraries |
---|
84 | Requires: b25 = %{version}-%{release} |
---|
85 | |
---|
86 | %description -n b25-devel |
---|
87 | This package contains the libraries and header files for b25. |
---|
88 | |
---|
89 | %description -n b25-devel -l ja |
---|
90 | このパッケージには b25 を操作するためのライブラリとヘッダが |
---|
91 | 含まれています。 |
---|
92 | |
---|
93 | #------------------------------------------------------------------------------ |
---|
94 | |
---|
95 | %prep |
---|
96 | [ -n "%{_builddir}/%{name}%{version}" -a "%{_builddir}/%{name}%{version}" != / ] && %__rm -rf %{_builddir}/%{name}%{version} |
---|
97 | %setup -q -n %{name}%{version} -a 1 -a 2 -a 3 -a 4 |
---|
98 | |
---|
99 | %patch2 -p1 -b .recfriior5 |
---|
100 | |
---|
101 | pushd recfriior5 |
---|
102 | patch -p1 < ../hdus-recfriior4/recfriior4.diff || exit 1 |
---|
103 | patch -p1 < ../recfriio-newpatch/recfriior4-newhdus.patch || exit 1 |
---|
104 | |
---|
105 | # apply patch to fix recfriio compilation error on Vine Linux |
---|
106 | %patch0 -p2 |
---|
107 | popd |
---|
108 | |
---|
109 | pushd pt1-%{b25_hg_src} |
---|
110 | %patch1 -p1 -b . |
---|
111 | popd |
---|
112 | |
---|
113 | # remove old b25 directory and create sym link to point newer one |
---|
114 | %{__rm} -rf arib25v025/arib25 |
---|
115 | pushd arib25v025 |
---|
116 | %{__ln_s} ../pt1-%{b25_hg_src}/arib25 arib25 || exit 1 |
---|
117 | popd |
---|
118 | |
---|
119 | %build |
---|
120 | pushd pt1-%{b25_hg_src}/arib25 |
---|
121 | %{__make} |
---|
122 | popd |
---|
123 | |
---|
124 | pushd recfriior5 |
---|
125 | %{__make} |
---|
126 | popd |
---|
127 | |
---|
128 | pushd hdus-recfriior4/as11loader/ |
---|
129 | %{__make} |
---|
130 | popd |
---|
131 | |
---|
132 | |
---|
133 | %install |
---|
134 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
135 | %{__install} -D -m 755 recfriior5/%{name} ${RPM_BUILD_ROOT}/%{_bindir}/%{name} |
---|
136 | %{__install} -D -m 755 hdus-recfriior4/as11loader/as11loader ${RPM_BUILD_ROOT}/%{_libdir}/hdus/as11loader |
---|
137 | |
---|
138 | # install b25 and libarib25.so |
---|
139 | pushd pt1-%{b25_hg_src}/arib25 |
---|
140 | %{__make} install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir} |
---|
141 | popd |
---|
142 | |
---|
143 | # setup udev rule for permission and hdus firmware |
---|
144 | %{__install} -d ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/rules.d/ |
---|
145 | |
---|
146 | %{__cat} << EOF > ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/rules.d/99-recfriio.rules |
---|
147 | # set permission and group: friio |
---|
148 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \ |
---|
149 | ATTRS{idVendor}=="7a69", ATTRS{idProduct}=="0001", \ |
---|
150 | MODE="0664", GROUP="video" |
---|
151 | |
---|
152 | # set permission and group: HDUS |
---|
153 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \ |
---|
154 | ATTRS{idVendor}=="3275", ATTRS{idProduct}=="6051", \ |
---|
155 | MODE="0664", GROUP="video" |
---|
156 | |
---|
157 | # load the firmware of HDUS |
---|
158 | SUBSYSTEM=="usb", ACTION=="add", \ |
---|
159 | ATTRS{idVendor}=="1738", ATTRS{idProduct}=="5211", \ |
---|
160 | RUN+="/bin/sh -c 'cd %{_libdir}/hdus; ./as11loader'" |
---|
161 | EOF |
---|
162 | |
---|
163 | # add documents |
---|
164 | %{__install} -d ${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name}-%{version} |
---|
165 | %{__cp} -p recfriior5/readme.txt ${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name}-%{version}/README_up1210.zip.recfriior5 || exit 1 |
---|
166 | %{__cp} -p recfriior5/91-permissions.rules ${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name}-%{version}/ || exit 1 |
---|
167 | %{__cp} -p hdus-recfriior4/README.txt ${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name}-%{version}/README_up0127.zip.hdus-recfriior4 || exit 1 |
---|
168 | %{__cp} -p recfriio-newpatch/README.txt ${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name}-%{version}/README_up0257.zip.recfriio-newpatch || exit 1 |
---|
169 | |
---|
170 | %{__install} -d ${RPM_BUILD_ROOT}/%{_defaultdocdir}/b25 |
---|
171 | %{__cp} -p pt1-%{b25_hg_src}/arib25/readme.txt ${RPM_BUILD_ROOT}/%{_defaultdocdir}/b25/README.b25 || exit 1 |
---|
172 | %{__cp} -p pt1-%{b25_hg_src}/b25_docs/readme.txt ${RPM_BUILD_ROOT}/%{_defaultdocdir}/b25/README.b25-for-linux || exit 1 |
---|
173 | %{__cp} -p pt1-%{b25_hg_src}/b25_docs/libccid_Info.plist ${RPM_BUILD_ROOT}/%{_defaultdocdir}/b25 || exit 1 |
---|
174 | %{__cp} -p pt1-%{b25_hg_src}/b25_docs/smartcard_list.txt ${RPM_BUILD_ROOT}/%{_defaultdocdir}/b25 || exit 1 |
---|
175 | |
---|
176 | |
---|
177 | %clean |
---|
178 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
179 | |
---|
180 | |
---|
181 | %files |
---|
182 | %defattr(-,root,root) |
---|
183 | %doc %{_defaultdocdir}/%{name}-%{version} |
---|
184 | %{_bindir}/%{name} |
---|
185 | %{_libdir}/hdus/as11loader |
---|
186 | %{_sysconfdir}/udev/rules.d/99-recfriio.rules |
---|
187 | |
---|
188 | %files -n b25 |
---|
189 | %defattr(-,root,root) |
---|
190 | %doc %{_defaultdocdir}/b25 |
---|
191 | %{_bindir}/b25 |
---|
192 | %{_libdir}/libarib25.so.* |
---|
193 | |
---|
194 | %files -n b25-devel |
---|
195 | %defattr(-,root,root) |
---|
196 | %{_includedir}/arib25/*.h |
---|
197 | %{_libdir}/libarib25.so |
---|
198 | |
---|
199 | |
---|
200 | %changelog |
---|
201 | * Tue Feb 21 2012 Munehiro Yamamoto <munepi@vinelinux.org> r5-1 |
---|
202 | - updated to r5 |
---|
203 | - updated arib25 to 0.2.5 |
---|
204 | - added some comments |
---|
205 | - added Source4: pt1-ec7c87854f2f.tar.bz2 |
---|
206 | - updated Patch0: recfriior4-fix-compile.patch |
---|
207 | as recfriior5-fix-compile-vine.patch |
---|
208 | |
---|
209 | * Sat Jan 09 2010 Kazutaka HARADA <kazutaka@vinelinux.org> r4-4 |
---|
210 | - modify b25-0.2.4-Makefile.patch for x86_64 |
---|
211 | |
---|
212 | * Wed Dec 30 2009 Kazutaka HARADA <kazutaka@vinelinux.org> r4-3 |
---|
213 | - add Source3 for updated/modified b25 sources from pt1 project |
---|
214 | - add Patch1 to build rpm packages for newer b25 |
---|
215 | - add b25, b25-devel subpackage whth libarib25.so* libraries |
---|
216 | |
---|
217 | * Wed Dec 23 2009 Kazutaka HARADA <kazutaka@vinelinux.org> r4-2 |
---|
218 | - add BuildRequires: glib2-devel, libusb-devel |
---|
219 | |
---|
220 | * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> r4-1 |
---|
221 | - initial build for Vine Linux |
---|
222 | |
---|