ivtv-utils-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Summary: Utility tools for ivtv driver.
  2. Name: ivtv-utils
  3. Version: 1.3.0
  4. Release: 1%{?_dist_release}
  5. License: distributable
  6. Group: Applications/Multimedia
  7. URL: http://www.paken.org/linuxwiki/index.php?CX23416GYC-STVLP%A4%CE%B2%F2%C0%CF
  8. Source0: http://dl.ivtvdriver.org/ivtv/archive/1.3.x/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  10. Requires: perl-Config-IniFiles, perl-Tk, perl-Video-Capture-V4l
  11. Requires: perl-Video-Frequencies
  12. Requires: perl-Video-ivtv = 0.13
  13. Requires: ivtv-firmware
  14. %description
  15. This package contains utilities for hardware ivtv based driver.
  16. %prep
  17. %setup -q
  18. perl -pi -e's,/sbin/depmod,:,g' driver/Makefile
  19. grep -rl '#include <linux/config.h>' . | xargs perl -pi -e's,#include <linux/config.h>,/* #include <linux/config.h> */,'
  20. perl -pi -e's@CFLAGS = -D_GNU_SOURCE .*@CFLAGS = -D_GNU_SOURCE -D__user= %{optflags}@' utils/Makefile
  21. perl -pi -e's,#include "videodev2.h",#include <linux/videodev2.h>,' ./utils/v4l2-dbg.cpp
  22. grep -l '#include <linux/ivtv.h>' utils/*.c utils/*.cc |\
  23. xargs -r perl -pi -e's,#include <linux/ivtv.h>,#include "linux/ivtv.h",'
  24. %build
  25. make -C utils
  26. %install
  27. rm -rf %{buildroot}
  28. mkdir -p %{buildroot}%{_bindir}
  29. mkdir -p %{buildroot}%{_datadir}/ivtv/
  30. make -C utils \
  31. DESTDIR=%{buildroot} BINDIR=%{_bindir} install
  32. install -p utils/*.pl %{buildroot}%{_datadir}/ivtv/
  33. ln -s ivtv-radio %{buildroot}%{_bindir}/radio-ivtv
  34. rm -f %{buildroot}%{_includedir}/linux/ivtv.h
  35. rm -f %{buildroot}%{_includedir}/linux/ivtvfb.h
  36. %clean
  37. rm -rf %{buildroot}
  38. %files
  39. %defattr(-,root,root,-)
  40. %doc doc/*
  41. #doc utils/README*
  42. %{_bindir}/*
  43. %{_datadir}/ivtv
  44. %changelog
  45. * Tue Jan 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.3.0-1
  46. - update source to 1.3.0
  47. - apply new versioning policy
  48. - added Requires: ivtv-firmware
  49. * Wed May 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6_svn3288-paken060508-0vl2
  50. - rebuild with new environment/toolchain
  51. * Tue May 16 2006 Takahiro Adachi <tadachi@tadachi-net.com> 0.6_svn3288-paken060508-0vl1
  52. - change source (0.6 SVN3288)
  53. * Fri Mar 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.9.GPIO.k26.20040820.1-0vl1
  54. - initial build for Vine Linux.