libv4l-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Summary: Collection of video4linux support libraries
  2. Summary(ja): video4linux サポートライブラリ集
  3. Name: libv4l
  4. Version: 0.4.2
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: LGPLv2+
  8. URL: http://hansdegoede.livejournal.com/3636.html
  9. Source0: http://people.atrpms.net/~hdegoede/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: kernel-headers
  12. %description
  13. libv4l is a collection of libraries which adds a thin abstraction layer on
  14. top of video4linux2 devices. The purpose of this (thin) layer is to make it
  15. easy for application writers to support a wide variety of devices without
  16. having to write separate code for different devices in the same class. libv4l
  17. consists of 3 different libraries: libv4lconvert, libv4l1 and libv4l2.
  18. libv4lconvert offers functions to convert from any (known) pixelformat
  19. to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420.
  20. libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent
  21. of the drivers for those devices supporting v4l1 compatibility (which many
  22. v4l2 drivers do not).
  23. libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the
  24. application transparent libv4lconvert conversion where necessary.
  25. %package devel
  26. Summary: Development files for %{name}
  27. Summary(ja): %{name} の開発ファイル
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}, pkgconfig
  30. %description devel
  31. The %{name}-devel package contains libraries and header files for
  32. developing applications that use %{name}.
  33. %prep
  34. %setup -q
  35. %build
  36. make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
  37. PREFIX=%{_prefix} LIBDIR=%{_libdir}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. make install PREFIX=%{_prefix} LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %post -p /sbin/ldconfig
  44. %postun -p /sbin/ldconfig
  45. %files
  46. %defattr(-,root,root,-)
  47. %doc COPYING.LIB ChangeLog README TODO
  48. %{_libdir}/libv4l*.so.*
  49. %{_libdir}/libv4l
  50. %files devel
  51. %defattr(-,root,root,-)
  52. %doc README.multi-threading
  53. %{_includedir}/libv4l*.h
  54. %{_libdir}/libv4l*.so
  55. %{_libdir}/pkgconfig/libv4l*.pc
  56. %changelog
  57. * Mon Sep 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.2-1
  58. - initial build for Vine Linux
  59. * Fri Aug 29 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.2-1
  60. - New upstream release 0.4.2
  61. * Tue Aug 26 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.1-1
  62. - New upstream release 0.4.1
  63. * Sun Aug 3 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.0-1
  64. - New upstream release 0.4.0
  65. * Tue Jul 30 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.3.8-1
  66. - New upstream release 0.3.8
  67. * Sat Jul 26 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.3.7-1
  68. - Initial Fedora package