v4l-utils-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. Name: v4l-utils
  2. Version: 1.0.0
  3. Release: 1%{?_dist_release}
  4. Summary: Utilities for video4linux and DVB devices
  5. Group: Applications/System
  6. # ir-keytable and v4l2-sysfs-path are GPLv2 only
  7. License: GPLv2+ and GPLv2
  8. URL: http://www.linuxtv.org/downloads/v4l-utils/
  9. Source0: http://linuxtv.org/downloads/v4l-utils/v4l-utils-%{version}.tar.bz2
  10. BuildRequires: libjpeg-devel qt4-devel kernel-headers desktop-file-utils
  11. # For /lib/udev/rules.d ownership
  12. Requires: eudev
  13. Requires: libv4l = %{version}-%{release}
  14. %description
  15. v4l-utils is a collection of various video4linux (V4L) and DVB utilities. The
  16. main v4l-utils package contains cx18-ctl, ir-keytable, ivtv-ctl, v4l2-ctl and
  17. v4l2-sysfs-path.
  18. %package devel-tools
  19. Summary: Utilities for v4l2 / DVB driver development and debugging
  20. # decode_tm6000 is GPLv2 only
  21. License: GPLv2+ and GPLv2
  22. Requires: libv4l = %{version}-%{release}
  23. %description devel-tools
  24. Utilities for v4l2 / DVB driver authors: decode_tm6000, v4l2-compliance and
  25. v4l2-dbg.
  26. %package -n qv4l2
  27. Summary: QT v4l2 test control and streaming test application
  28. License: GPLv2+
  29. Requires: libv4l = %{version}-%{release}
  30. %description -n qv4l2
  31. QT v4l2 test control and streaming test application.
  32. %package -n libv4l
  33. Summary: Collection of video4linux support libraries
  34. Group: System Environment/Libraries
  35. # Some of the decompression helpers are GPLv2, the rest is LGPLv2+
  36. License: LGPLv2+ and GPLv2
  37. URL: http://hansdegoede.livejournal.com/3636.html
  38. %description -n libv4l
  39. libv4l is a collection of libraries which adds a thin abstraction layer on
  40. top of video4linux2 devices. The purpose of this (thin) layer is to make it
  41. easy for application writers to support a wide variety of devices without
  42. having to write separate code for different devices in the same class. libv4l
  43. consists of 3 different libraries: libv4lconvert, libv4l1 and libv4l2.
  44. libv4lconvert offers functions to convert from any (known) pixel-format
  45. to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420.
  46. libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent
  47. of the drivers for those devices supporting v4l1 compatibility (which many
  48. v4l2 drivers do not).
  49. libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the
  50. application transparent libv4lconvert conversion where necessary.
  51. %package -n libv4l-devel
  52. Summary: Development files for libv4l
  53. Group: Development/Libraries
  54. License: LGPLv2+
  55. URL: http://hansdegoede.livejournal.com/3636.html
  56. Requires: libv4l = %{version}-%{release}
  57. %description -n libv4l-devel
  58. The libv4l-devel package contains libraries and header files for
  59. developing applications that use libv4l.
  60. %prep
  61. %setup -q
  62. %build
  63. %configure --disable-static
  64. # Don't use rpath!
  65. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  66. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  67. make %{?_smp_mflags}
  68. %install
  69. %make_install
  70. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  71. rm $RPM_BUILD_ROOT%{_libdir}/{v4l1compat.so,v4l2convert.so}
  72. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/qv4l2.desktop
  73. %post -n libv4l -p /sbin/ldconfig
  74. %postun -n libv4l -p /sbin/ldconfig
  75. %post -n qv4l2
  76. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  77. %postun -n qv4l2
  78. if [ $1 -eq 0 ] ; then
  79. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  80. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  81. fi
  82. %posttrans -n qv4l2
  83. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  84. %files
  85. %doc README
  86. %dir %{_sysconfdir}/rc_keymaps
  87. %config(noreplace) %{_sysconfdir}/rc_maps.cfg
  88. /lib/udev/rules.d/70-infrared.rules
  89. /lib/udev/rc_keymaps/*
  90. %{_bindir}/cx18-ctl
  91. %{_bindir}/dvb*
  92. %{_bindir}/ir-keytable
  93. %{_bindir}/ivtv-ctl
  94. %{_bindir}/rds-ctl
  95. %{_bindir}/v4l2-ctl
  96. %{_bindir}/v4l2-sysfs-path
  97. %{_mandir}/man1/ir-keytable.1*
  98. %files devel-tools
  99. %doc README
  100. %{_bindir}/decode_tm6000
  101. %{_bindir}/v4l2-compliance
  102. %{_sbindir}/v4l2-dbg
  103. %files -n qv4l2
  104. %doc README
  105. %{_bindir}/qv4l2
  106. %{_datadir}/applications/qv4l2.desktop
  107. %{_datadir}/icons/hicolor/*/apps/qv4l2.*
  108. %files -n libv4l
  109. %doc COPYING.libv4l COPYING ChangeLog README.libv4l TODO
  110. %{_libdir}/libv4l
  111. %{_libdir}/libv4l*.so.*
  112. %files -n libv4l-devel
  113. %doc README.lib-multi-threading
  114. %{_includedir}/libv4l*.h
  115. %{_libdir}/libv4l*.so
  116. %{_libdir}/pkgconfig/libv4l*.pc
  117. %changelog
  118. * Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.0-1
  119. - initial build for Vine Linux
  120. * Sat Aug 3 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.0-1
  121. - New upstream release 1.0.0 final
  122. - Drop libdvb5 (made private upstream for now)
  123. * Fri Jun 14 2013 Hans de Goede <hdegoede@redhat.com> - 0.9.5-2
  124. - Add a few libv4l2rds patches from upstream, which bring libv4l2rds to its
  125. final API / ABI, so that apps build against it won't need a rebuild in the
  126. future
  127. * Sun Jun 9 2013 Hans de Goede <hdegoede@redhat.com> - 0.9.5-1
  128. - New upstream release 0.9.5 (rhbz#970412)
  129. - Modernize specfile a bit
  130. * Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-6
  131. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  132. * Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 0.8.8-5
  133. - rebuild due to "jpeg8-ABI" feature drop
  134. * Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.8.8-4
  135. - rebuild against new libjpeg
  136. * Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-3
  137. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  138. * Mon Jul 9 2012 Hans de Goede <hdegoede@redhat.com> - 0.8.8-2
  139. - Cherry-pick 2 patches from upstream git fixing an exotic crash (rhbz#838279)
  140. * Tue May 22 2012 Hans de Goede <hdegoede@redhat.com> - 0.8.8-1
  141. - New upstream release 0.8.8
  142. - Add patches from upstream git to improve Pixart JPEG decoding
  143. - Add patch from upstream git to fix building with latest kernels (rhbz#823863)
  144. * Mon Apr 9 2012 Hans de Goede <hdegoede@redhat.com> - 0.8.7-1
  145. - New upstream release 0.8.7
  146. - Fixes rhbz#807656
  147. * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-2
  148. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  149. * Sun Jul 17 2011 Hans de Goede <hdegoede@redhat.com> 0.8.5-1
  150. - New upstream release 0.8.5
  151. - Fixes rhbz#711492
  152. * Wed Jun 1 2011 Hans de Goede <hdegoede@redhat.com> 0.8.4-1
  153. - New upstream release 0.8.4
  154. * Sat Mar 12 2011 Hans de Goede <hdegoede@redhat.com> 0.8.3-2
  155. - Add a .desktop file for qv4l2
  156. - Add fully versioned Requires on libv4l to other (sub)packages
  157. * Thu Feb 10 2011 Hans de Goede <hdegoede@redhat.com> 0.8.3-1
  158. - New upstream release 0.8.3
  159. * Wed Jan 26 2011 Hans de Goede <hdegoede@redhat.com> 0.8.2-3
  160. - Add missing BuildRequires: kernel-headers
  161. * Mon Jan 24 2011 Hans de Goede <hdegoede@redhat.com> 0.8.2-2
  162. - Change tarbal to official upstream 0.8.2 release
  163. - This fixes multiple Makefile issues pointed out in the review (#671883)
  164. - Add ir-keytable config files
  165. - Explicitly specify CXXFLAGS so that qv4l2 gets build with rpm_opt_flags too
  166. * Sat Jan 22 2011 Hans de Goede <hdegoede@redhat.com> 0.8.2-1
  167. - Initial Fedora package