fuse_b25-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. %define devtool b25dvr
  2. Name: fuse_b25
  3. Version: 0.3.0
  4. Summary: FUSE filesystem to descramble streams from ISDB-T/S DVB devices
  5. Release: 2%{?_dist_release}
  6. Source0: http://2sen.dip.jp/cgi-bin/dtvup/source/up0543.zip
  7. Source1: http://2sen.dip.jp/cgi-bin/dtvup/source/up0548.zip
  8. Patch0: fuse_b25-0.3.0-b25dvr-console_apps.patch
  9. Group: System Environment/Base
  10. License: GPLv3
  11. BuildRequires: unzip
  12. BuildRequires: fuse-devel >= 2.8, pcsc-lite-devel
  13. Requires: fuse >= 2.8, pcsc-lite
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. Packager: munepi
  16. %description
  17. Fuse filesystems which mounts on a backed-up /dev/dvb/adapterN/dvr0 and
  18. relays output streams from the real device to standard DVB applications,
  19. as well as descrambling MULTI2 with pcscd.
  20. This package includes a helper script to backup/restore the real dvr0 device.
  21. %prep
  22. [ -d %{name}-%{version} ] && %__rm -rf %{name}-%{version}
  23. %__unzip -o %{SOURCE0}
  24. %__unzip -o %{SOURCE1}
  25. %__tar zxf %{name}-%{version}/%{name}-%{version}.tar.gz
  26. %setup -D -T %{name}-%{version}
  27. %__patch -p1 -b < ../add-crc.diff
  28. %patch0 -p1 -b .vine
  29. %build
  30. %configure
  31. %__make %{?_smp_mflags}
  32. %install
  33. %__rm -rf $RPM_BUILD_ROOT
  34. %__make install DESTDIR=$RPM_BUILD_ROOT
  35. %__rm $RPM_BUILD_ROOT%{_bindir}/fuse_b25.org
  36. %__rm $RPM_BUILD_ROOT%{_sbindir}/rendvr0
  37. %__install -d $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
  38. %__install -p -m 0644 helper/pam.d/%{devtool} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/
  39. %__install -d $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps
  40. %__install -p -m 0644 helper/console.apps/%{devtool} $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/
  41. %__ln_s /usr/bin/consolehelper $RPM_BUILD_ROOT%{_bindir}/%{devtool}
  42. %clean
  43. %__rm -rf $RPM_BUILD_ROOT
  44. %files
  45. %defattr(-,root,root,-)
  46. %doc AUTHORS COPYING ChangeLog NEWS README
  47. %doc helper/80-dvr-b25.rules helper/rendvr0 src/fuse_b25.org
  48. %{_bindir}/%{name}
  49. %{_bindir}/%{devtool}
  50. %{_sbindir}/%{devtool}
  51. %config %{_sysconfdir}/security/console.apps/%{devtool}
  52. %config %{_sysconfdir}/pam.d/%{devtool}
  53. %changelog
  54. * Mon Feb 07 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.0-2
  55. - fixed PROGRAM and added GUI=no in console.apps/b25dvr
  56. * Sun Feb 06 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.0-1
  57. - initial build
  58. * Mon Dec 6 2010 0p1pp1 - 0.2.1-1
  59. - updated to ver. 0.2.1
  60. * Fri Sep 17 2010 0p1pp1 - 0.2-1
  61. - updated to ver.0.2
  62. * Fri Dec 11 2009 0p1pp1 - 0.1
  63. - initial release