v4l-utils-vl.spec 8.8 KB

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