perl-Video-Frequencies-vl.spec 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. %define perlversion %(rpm -q perl --qf "%%{epoch}:%%{version}")
  2. %define pkgname Video-Frequencies
  3. Summary: A perl module for the Video4linux tuner frequencies.
  4. Name: perl-%{pkgname}
  5. Version: 0.03
  6. Release: 1%{?_dist_release}
  7. Group: Development/Libraries
  8. License: distributable
  9. URL: http://ivtv.sf.net/
  10. Source0: %{pkgname}-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. Requires: perl = %{perlversion}
  14. %description
  15. Video::Frequencies provides a table of hashes that represent all the current
  16. frequency mappings that are used by Video4Linux programs.
  17. %prep
  18. %setup -q -n %{pkgname}-%{version}
  19. %build
  20. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor
  21. make
  22. make test
  23. %install
  24. rm -rf $RPM_BUILD_ROOT
  25. make install
  26. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  27. find $RPM_BUILD_ROOT%{_prefix} -type f -print | \
  28. sed "s@^$RPM_BUILD_ROOT@@g" | \
  29. grep -v perllocal.pod | \
  30. grep -v "\.packlist" > %{pkgname}-%{version}-filelist
  31. if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then
  32. echo "ERROR: EMPTY FILE LIST"
  33. exit -1
  34. fi
  35. %clean
  36. rm -rf $RPM_BUILD_ROOT
  37. %files -f %{pkgname}-%{version}-filelist
  38. %defattr(-,root,root)
  39. %doc README MANIFEST
  40. %changelog
  41. * Tue Jan 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.03-1
  42. - apply new versioning policy
  43. - rebuild with perl v5.10.0
  44. * Thu Nov 29 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.03-0vl3
  45. - add Require: perl = %%{perlversion}
  46. * Wed May 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.03-0vl2
  47. - rebuild with new environment
  48. * Sun Oct 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.03-0vl1
  49. - initial build for Vine Linux