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