libv4l-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Summary: Collection of video4linux support libraries
  2. Summary(ja): video4linux サポートライブラリ集
  3. Name: libv4l
  4. Version: 0.4.2
  5. Release: 2%{?_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. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.2-2
  58. - rebuild with rpm-4.8.1 for pkg-config file
  59. * Mon Sep 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.2-1
  60. - initial build for Vine Linux
  61. * Fri Aug 29 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.2-1
  62. - New upstream release 0.4.2
  63. * Tue Aug 26 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.1-1
  64. - New upstream release 0.4.1
  65. * Sun Aug 3 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.0-1
  66. - New upstream release 0.4.0
  67. * Tue Jul 30 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.3.8-1
  68. - New upstream release 0.3.8
  69. * Sat Jul 26 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.3.7-1
  70. - Initial Fedora package