ruby-v4l-vl.spec 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. %define buildrequires_ge() %(LC_ALL="C" rpm -q --queryformat 'BuildRequires:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  2. %define name ruby-v4l
  3. %define version 0.1.2
  4. %define release 0vl1
  5. Name: %{name}
  6. Summary: ruby/V4L is simple wapper of v4l(Video for Linux).
  7. Version: %{version}
  8. Release: %{release}
  9. Source: http://ruby.ad-hoc.org/v4l/%{name}-%{version}.tar.bz2
  10. URL: http://rubyforge.org/projects/ruby-v4l/
  11. Group: Development/Libraries
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. License: LGPL
  14. %buildrequires_ge ruby-devel
  15. %description
  16. ruby/V4L is simple wapper of v4l(Video for Linux).
  17. In other words this library will only run on Linux machines which support a
  18. video4linux-device.
  19. %prep
  20. rm -rf $RPM_BUILD_ROOT
  21. %setup -q
  22. %build
  23. ruby extconf.rb
  24. make
  25. %install
  26. rm -rf $RPM_BUILD_ROOT
  27. make install sitearchdir=$RPM_BUILD_ROOT%{rarchdir}
  28. %clean
  29. rm -rf $RPM_BUILD_ROOT
  30. %files
  31. %defattr(-,root,root,0755)
  32. %{rarchdir}/*.so
  33. %doc tests/*.rb
  34. %changelog
  35. * Tue Dec 20 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.2-0vl1
  36. - new upstream release
  37. - rebuilt with ruby-1.8
  38. - changed Group:
  39. - s/Copyright/License/
  40. * Thu Nov 22 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> 0.0.2-0vl2
  41. - fix %%files section
  42. * Tue Nov 20 2000 Kazuhisa TAKEI <takei@vinelinux.org> 0.0.2-0vl1
  43. - initial package