1 | %define devtool b25dir |
---|
2 | |
---|
3 | Name: fuse_b25 |
---|
4 | Version: 0.4.6 |
---|
5 | Summary: FUSE filesystem to descramble streams from ISDB-T/S DVB devices |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | ## 0.4.1 |
---|
8 | Source0: http://2sen.dip.jp/cgi-bin/dtvup/source/up0596.zip |
---|
9 | ## 0.4.1 -> 0.4.2 |
---|
10 | Source1: http://2sen.dip.jp/cgi-bin/dtvup/source/up0600.zip |
---|
11 | ## 0.4.2 -> 0.4.3 |
---|
12 | Source2: http://2sen.dip.jp/cgi-bin/dtvup/source/up0606.zip |
---|
13 | ## 0.4.3 -> 0.4.4 |
---|
14 | Source3: http://2sen.dip.jp/cgi-bin/dtvup/source/up0607.zip |
---|
15 | ## 0.4.4 -> 0.4.5 |
---|
16 | Source4: http://2sen.dip.jp/cgi-bin/dtvup/source/up0623.zip |
---|
17 | ## 0.4.5 -> 0.4.6 |
---|
18 | Source5: http://2sen.dip.jp/cgi-bin/dtvup/source/up0631.zip |
---|
19 | |
---|
20 | Patch0: fuse_b25-0.4.0-stream-iconv_open-utf16be.patch |
---|
21 | |
---|
22 | ## Vine |
---|
23 | Patch10: fuse_b25-0.4.0-b25dir-console_apps.patch |
---|
24 | |
---|
25 | Group: System Environment/Base |
---|
26 | License: GPLv3 |
---|
27 | |
---|
28 | BuildRequires: unzip |
---|
29 | BuildRequires: fuse-devel >= 2.8, pcsc-lite-devel |
---|
30 | Requires: fuse >= 2.8, pcsc-lite |
---|
31 | |
---|
32 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
33 | |
---|
34 | Packager: munepi |
---|
35 | |
---|
36 | |
---|
37 | %description |
---|
38 | Fuse filesystems which mounts on a backed-up /dev/dvb/adapterN/dvr0 and |
---|
39 | relays output streams from the real device to standard DVB applications, |
---|
40 | as well as descrambling MULTI2 with pcscd. |
---|
41 | |
---|
42 | This package includes a helper script to backup/restore the real dvr0 device. |
---|
43 | |
---|
44 | %prep |
---|
45 | [ -d %{name}-%{version} ] && %__rm -rf %{name}-%{version} |
---|
46 | |
---|
47 | %__unzip -o %{SOURCE0} |
---|
48 | %__unzip -o %{SOURCE1} |
---|
49 | %__unzip -o %{SOURCE2} |
---|
50 | %__unzip -o %{SOURCE3} |
---|
51 | %__unzip -o %{SOURCE4} |
---|
52 | %__unzip -o %{SOURCE5} |
---|
53 | |
---|
54 | #%__tar zxf %{name}-%{version}/%{name}-%{version}.tar.gz |
---|
55 | %__tar zxf %{name}-0.4.1/%{name}-0.4.1.tar.gz |
---|
56 | |
---|
57 | #% setup -D -T %{name}-%{version} |
---|
58 | %setup -D -T -n %{name}-0.4.1 |
---|
59 | |
---|
60 | ## 0.4.1 -> 0.4.2 |
---|
61 | patch -p1 < ../fuse_b25-0.41to0.42/0003-convert-text-to-UTF16BE.patch || exit 1 |
---|
62 | patch -p1 < ../fuse_b25-0.41to0.42/0004-convert-genre-info.patch || exit 1 |
---|
63 | ## 0.4.2 -> 0.4.3 |
---|
64 | patch -p1 < ../0005-nonblock-read.patch || exit 1 |
---|
65 | ## 0.4.3 -> 0.4.4 |
---|
66 | patch -p1 < ../0006-mutex-demuxer.patch || exit 1 |
---|
67 | ## 0.4.4 -> 0.4.5 |
---|
68 | patch -p1 < ../fuse_b25-0.4.5/0007-fix-memory-corruption.patch || exit 1 |
---|
69 | ## 0.4.5 -> 0.4.6 |
---|
70 | patch -p1 < ../fuse_b25-0.4.6/0008-fix-memory-corrupution2.patch || exit 1 |
---|
71 | %__cp -a ../fuse_b25-%{version}/README . || exit 1 |
---|
72 | |
---|
73 | %patch0 -p0 -b .utf16be |
---|
74 | |
---|
75 | %patch10 -p1 -b .vine |
---|
76 | |
---|
77 | %build |
---|
78 | %configure |
---|
79 | %__make %{?_smp_mflags} |
---|
80 | |
---|
81 | |
---|
82 | %install |
---|
83 | %__rm -rf $RPM_BUILD_ROOT |
---|
84 | %__make install DESTDIR=$RPM_BUILD_ROOT |
---|
85 | %__install -d $RPM_BUILD_ROOT%{_sysconfdir}/pam.d |
---|
86 | %__install -p -m 0644 helper/pam.d/%{devtool} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/ |
---|
87 | %__install -d $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps |
---|
88 | %__install -p -m 0644 helper/console.apps/%{devtool} $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/ |
---|
89 | %__ln_s /usr/bin/consolehelper $RPM_BUILD_ROOT%{_bindir}/%{devtool} |
---|
90 | |
---|
91 | %clean |
---|
92 | %__rm -rf $RPM_BUILD_ROOT |
---|
93 | |
---|
94 | |
---|
95 | %files |
---|
96 | %defattr(-,root,root,-) |
---|
97 | %doc AUTHORS COPYING ChangeLog NEWS README README.old |
---|
98 | %doc helper/80-fuse_b25.rules |
---|
99 | %{_bindir}/%{name} |
---|
100 | %{_bindir}/%{devtool} |
---|
101 | %{_sbindir}/%{devtool} |
---|
102 | %config %{_sysconfdir}/security/console.apps/%{devtool} |
---|
103 | %config %{_sysconfdir}/pam.d/%{devtool} |
---|
104 | |
---|
105 | |
---|
106 | %changelog |
---|
107 | * Wed May 04 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.6-1 |
---|
108 | - new upstream release |
---|
109 | |
---|
110 | * Fri Apr 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-1 |
---|
111 | - new upstream release |
---|
112 | |
---|
113 | * Sun Mar 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.4-1 |
---|
114 | - new upstream release |
---|
115 | - applied fuse_b25-0.4.0-stream-iconv_open-utf16be.patch |
---|
116 | - applied fuse_b25-0.4.0-b25dir-console_apps.patch |
---|
117 | |
---|
118 | * Fri Mar 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1 |
---|
119 | - new upstream release |
---|
120 | - dropped rendvr0, fuse_b25.org |
---|
121 | |
---|
122 | * Mon Feb 07 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.0-2 |
---|
123 | - fixed PROGRAM and added GUI=no in console.apps/b25dvr |
---|
124 | |
---|
125 | * Sun Feb 06 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.0-1 |
---|
126 | - initial build |
---|
127 | |
---|
128 | * Mon Dec 6 2010 0p1pp1 - 0.2.1-1 |
---|
129 | - updated to ver. 0.2.1 |
---|
130 | |
---|
131 | * Fri Sep 17 2010 0p1pp1 - 0.2-1 |
---|
132 | - updated to ver.0.2 |
---|
133 | |
---|
134 | * Fri Dec 11 2009 0p1pp1 - 0.1 |
---|
135 | - initial release |
---|