fuse_b25-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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: 1%{?_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. Group: Applications/System
  9. License: GPLv3
  10. Group: System Environment/Base
  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. %build
  29. %configure
  30. %__make %{?_smp_mflags}
  31. %install
  32. %__rm -rf $RPM_BUILD_ROOT
  33. %__make install DESTDIR=$RPM_BUILD_ROOT
  34. %__rm $RPM_BUILD_ROOT%{_bindir}/fuse_b25.org
  35. %__rm $RPM_BUILD_ROOT%{_sbindir}/rendvr0
  36. %__install -d $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
  37. %__install -p -m 0644 helper/pam.d/%{devtool} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/
  38. %__install -d $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps
  39. %__install -p -m 0644 helper/console.apps/%{devtool} $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/
  40. %__ln_s /usr/bin/consolehelper $RPM_BUILD_ROOT%{_bindir}/%{devtool}
  41. %clean
  42. %__rm -rf $RPM_BUILD_ROOT
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc AUTHORS COPYING ChangeLog NEWS README
  46. %doc helper/80-dvr-b25.rules helper/rendvr0 src/fuse_b25.org
  47. %{_bindir}/%{name}
  48. %{_bindir}/%{devtool}
  49. %{_sbindir}/%{devtool}
  50. %config %{_sysconfdir}/security/console.apps/%{devtool}
  51. %config %{_sysconfdir}/pam.d/%{devtool}
  52. %changelog
  53. * Sun Feb 06 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.0-1
  54. - initial build
  55. * Mon Dec 6 2010 0p1pp1 - 0.2.1-1
  56. - updated to ver. 0.2.1
  57. * Fri Sep 17 2010 0p1pp1 - 0.2-1
  58. - updated to ver.0.2
  59. * Fri Dec 11 2009 0p1pp1 - 0.1
  60. - initial release