v4l-utils-vl.spec 8.5 KB

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