fuse_b25-vl.spec 3.5 KB

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