v4l-utils-vl.spec 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. Name: v4l-utils
  2. Version: 1.16.7
  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: https://linuxtv.org/downloads/v4l-utils/
  9. Source0: https://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. %{_bindir}/qvidcap
  141. %{_datadir}/applications/qv4l2.desktop
  142. %{_datadir}/applications/qvidcap.desktop
  143. %{_datadir}/icons/hicolor/*/apps/qv4l2.*
  144. %{_datadir}/icons/hicolor/*/apps/qvidcap.*
  145. %{_mandir}/man1/qv4l2.1*
  146. %files -n libv4l
  147. %doc ChangeLog README.libv4l TODO
  148. %license COPYING.libv4l COPYING
  149. %{_libdir}/libv4l
  150. %{_libdir}/libv4l*.so.*
  151. %files -n libv4l-devel
  152. %doc README.lib-multi-threading
  153. %{_includedir}/libv4l*.h
  154. %{_libdir}/libv4l*.so
  155. %{_libdir}/pkgconfig/libv4l*.pc
  156. %files -n libdvbv5 -f libdvbv5.lang
  157. %doc ChangeLog lib/libdvbv5/README
  158. %license COPYING
  159. %{_libdir}/libdvbv5*.so.*
  160. %files -n libdvbv5-devel
  161. %{_includedir}/libdvbv5/*.h
  162. %{_libdir}/libdvbv5*.so
  163. %{_libdir}/pkgconfig/libdvbv5*.pc
  164. %{_mandir}/man3/*.3*
  165. %changelog
  166. * Thu Sep 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.16.7-1
  167. - new upstream release.
  168. * Wed Feb 21 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.14.2-1
  169. - new upstream release.
  170. * Thu Jun 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.10.1-1
  171. - new upstream release.
  172. * Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.0-1
  173. - initial build for Vine Linux
  174. * Sat Aug 3 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.0-1
  175. - New upstream release 1.0.0 final
  176. - Drop libdvb5 (made private upstream for now)
  177. * Fri Jun 14 2013 Hans de Goede <hdegoede@redhat.com> - 0.9.5-2
  178. - Add a few libv4l2rds patches from upstream, which bring libv4l2rds to its
  179. final API / ABI, so that apps build against it won't need a rebuild in the
  180. future
  181. * Sun Jun 9 2013 Hans de Goede <hdegoede@redhat.com> - 0.9.5-1
  182. - New upstream release 0.9.5 (rhbz#970412)
  183. - Modernize specfile a bit
  184. * Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-6
  185. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  186. * Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 0.8.8-5
  187. - rebuild due to "jpeg8-ABI" feature drop
  188. * Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.8.8-4
  189. - rebuild against new libjpeg
  190. * Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-3
  191. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  192. * Mon Jul 9 2012 Hans de Goede <hdegoede@redhat.com> - 0.8.8-2
  193. - Cherry-pick 2 patches from upstream git fixing an exotic crash (rhbz#838279)
  194. * Tue May 22 2012 Hans de Goede <hdegoede@redhat.com> - 0.8.8-1
  195. - New upstream release 0.8.8
  196. - Add patches from upstream git to improve Pixart JPEG decoding
  197. - Add patch from upstream git to fix building with latest kernels (rhbz#823863)
  198. * Mon Apr 9 2012 Hans de Goede <hdegoede@redhat.com> - 0.8.7-1
  199. - New upstream release 0.8.7
  200. - Fixes rhbz#807656
  201. * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-2
  202. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  203. * Sun Jul 17 2011 Hans de Goede <hdegoede@redhat.com> 0.8.5-1
  204. - New upstream release 0.8.5
  205. - Fixes rhbz#711492
  206. * Wed Jun 1 2011 Hans de Goede <hdegoede@redhat.com> 0.8.4-1
  207. - New upstream release 0.8.4
  208. * Sat Mar 12 2011 Hans de Goede <hdegoede@redhat.com> 0.8.3-2
  209. - Add a .desktop file for qv4l2
  210. - Add fully versioned Requires on libv4l to other (sub)packages
  211. * Thu Feb 10 2011 Hans de Goede <hdegoede@redhat.com> 0.8.3-1
  212. - New upstream release 0.8.3
  213. * Wed Jan 26 2011 Hans de Goede <hdegoede@redhat.com> 0.8.2-3
  214. - Add missing BuildRequires: kernel-headers
  215. * Mon Jan 24 2011 Hans de Goede <hdegoede@redhat.com> 0.8.2-2
  216. - Change tarbal to official upstream 0.8.2 release
  217. - This fixes multiple Makefile issues pointed out in the review (#671883)
  218. - Add ir-keytable config files
  219. - Explicitly specify CXXFLAGS so that qv4l2 gets build with rpm_opt_flags too
  220. * Sat Jan 22 2011 Hans de Goede <hdegoede@redhat.com> 0.8.2-1
  221. - Initial Fedora package