perl-Video-Capture-V4l-vl.spec 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. %define pkgname Video-Capture-V4l
  2. Summary: A perl module for the Video4linux framegrabber interface.
  3. Name: perl-%{pkgname}
  4. Version: 0.901
  5. Release: 1%{?_dist_release}
  6. Group: Development/Libraries
  7. License: distributable
  8. URL: http://search.cpan.org/dist/Video-Capture-V4l
  9. Source0: %{pkgname}-%{version}.tar.gz
  10. Patch0: perl-Video-Capture-V4l-0.901-buildfix.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. Requires: perl-Video-Frequencies
  13. %description
  14. Video::Capture::V4l is a perl interface to the Video4linux framegrabber
  15. interface.
  16. %prep
  17. %setup -q -n %{pkgname}-%{version}
  18. %patch -p1 -b .buildfix
  19. %build
  20. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor
  21. make %{?_smp_mflags}
  22. make test
  23. %install
  24. rm -rf $RPM_BUILD_ROOT
  25. make install
  26. # remove old Vine::Frequencies module.
  27. find $RPM_BUILD_ROOT%{_prefix} -name "*Frequencies*" -exec rm -f {} \;
  28. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  29. find $RPM_BUILD_ROOT%{_prefix} -type f -print | \
  30. sed "s@^$RPM_BUILD_ROOT@@g" | \
  31. grep -v perllocal.pod | \
  32. grep -v "\.packlist" > %{pkgname}-%{version}-filelist
  33. if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then
  34. echo "ERROR: EMPTY FILE LIST"
  35. exit -1
  36. fi
  37. %clean
  38. rm -rf $RPM_BUILD_ROOT
  39. %files -f %{pkgname}-%{version}-filelist
  40. %defattr(-,root,root)
  41. %doc README MANIFEST
  42. %changelog
  43. * Tue Jan 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.901-1
  44. - apply new versioning policy
  45. - rebuild with perl v5.10.0
  46. * Wed May 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.901-0vl1
  47. - new upstream release
  48. * Sun Oct 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.224-0vl1
  49. - initial build for Vine Linux