fuse_b25-vl.spec 3.8 KB

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