xorg-x11-drv-openchrome-vl.spec 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. %define tarball xf86-video-openchrome
  2. %define moduledir %(pkg-config xorg-server --variable=moduledir )
  3. %define driverdir %{moduledir}/drivers
  4. %define cvsdate xxxxxxx
  5. %define with_xvmc 1
  6. Summary: Xorg X11 openchrome video driver
  7. Summary(ja): Xorg X11 openchrome ビデオドライバ
  8. Name: xorg-x11-drv-openchrome
  9. Version: 0.6.0
  10. Release: 1%{?_dist_release}
  11. URL: http://www.freedesktop.org/wiki/Openchrome/
  12. License: MIT
  13. Group: User Interface/X Hardware Support
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. Source0: http://xorg.freedesktop.org/archive/individual/driver/%{tarball}-%{version}.tar.bz2
  16. Source1: openchrome.xinf
  17. # Patches from Fedora :
  18. Patch13: openchrome-0.2.904-fix_tvout_flickering.patch
  19. ExclusiveArch: %{ix86} x86_64
  20. BuildRequires: pkgconfig
  21. BuildRequires: xorg-x11-server-sdk
  22. BuildRequires: automake
  23. BuildRequires: libtool
  24. BuildRequires: libX11-devel
  25. BuildRequires: libXext-devel
  26. BuildRequires: mesa-libGL-devel
  27. %if %{with_xvmc}
  28. BuildRequires: libXvMC-devel
  29. %endif
  30. BuildRequires: libdrm-devel >= 2.0-1
  31. BuildRequires: eudev-libudev-devel
  32. Requires: xorg-x11-server-Xorg
  33. Obsoletes: XOrg-drv-via <= 0.2.2-4
  34. Provides: xorg-x11-drv-via = 0.2.2-5
  35. Vendor: Project Vine
  36. Distribution: Vine Linux
  37. %description
  38. X.Org X11 openchrome video driver.
  39. %if %{with_xvmc}
  40. %package devel
  41. Summary: Xorg X11 openchrome video driver XvMC development package
  42. Summary(ja): Xorg X11 openchrome ビデオドライバ XvMC 開発パッケージ
  43. Group: Development/System
  44. Requires: %{name} = %{version}-%{release}
  45. Obsoletes: XOrg-drv-via-devel <= 0.2.2-4
  46. Provides: xorg-x11-drv-via-devel = 0.2.2-5
  47. %description devel
  48. X.Org X11 openchrome video driver XvMC development package.
  49. %endif
  50. %prep
  51. %setup -q -n %{tarball}-%{version}
  52. #%patch0 -p0
  53. %patch13 -p0
  54. %build
  55. %configure --disable-static --enable-dri
  56. make
  57. %install
  58. rm -rf $RPM_BUILD_ROOT
  59. make install DESTDIR=$RPM_BUILD_ROOT
  60. mkdir -p $RPM_BUILD_ROOT%{_datadir}/hwdata/videoaliases
  61. install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/hwdata/videoaliases/openchrome.xinf
  62. # FIXME: Remove all libtool archives (*.la) from modules directory. This
  63. # should be fixed in upstream Makefile.am or whatever.
  64. find $RPM_BUILD_ROOT -regex ".*\.la$" | xargs rm -f --
  65. %clean
  66. rm -rf $RPM_BUILD_ROOT
  67. %post
  68. if [ -e /etc/X11/xorg.conf ]; then
  69. sed -i "/Driver/s/via/openchrome/" /etc/X11/xorg.conf || :
  70. fi
  71. %files
  72. %defattr(-,root,root,-)
  73. %doc COPYING NEWS README
  74. %{driverdir}/openchrome_drv.so
  75. %{_datadir}/hwdata/videoaliases/openchrome.xinf
  76. %if %{with_xvmc}
  77. %{_libdir}/libchromeXvMC.so.1
  78. %{_libdir}/libchromeXvMC.so.1.0.0
  79. %{_libdir}/libchromeXvMCPro.so.1
  80. %{_libdir}/libchromeXvMCPro.so.1.0.0
  81. %endif
  82. %{_mandir}/man4/openchrome.4.gz
  83. %if %{with_xvmc}
  84. %files devel
  85. %defattr(-,root,root,-)
  86. %{_libdir}/libchromeXvMC.so
  87. %{_libdir}/libchromeXvMCPro.so
  88. %endif
  89. %changelog
  90. * Fri Feb 16 2018 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.6.0-1
  91. - new upstream release
  92. - build with xserver-1.19.6
  93. * Fri Jul 22 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5.0-1
  94. - new upstream release
  95. * Thu May 05 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.0-1
  96. - new upstream release
  97. * Sun Oct 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.3-6
  98. - rebuild with xserver-1.17.2
  99. * Sat Nov 22 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.3-5
  100. - rebuild with xserver-1.16.2
  101. * Thu Jul 10 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.3-4
  102. - rebuild with xserver-1.15.2
  103. * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.3-3
  104. - change BuildRequires: eudev-libudev-devel instead of libudev-devel
  105. * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.3-2
  106. - rebuild with VineSeed environment
  107. * Sun Jun 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.3-1
  108. - new upstream release
  109. (including security fix for CVE-2013-1994)
  110. * Sun May 05 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.2-1
  111. - new upstream release
  112. * Sun Aug 05 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.0-1
  113. - new upstream release
  114. - add BuildRequires: libudev-devel
  115. * Wed May 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.906-1
  116. - new upstream release
  117. - remove Patch1
  118. * Sun Mar 25 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.905-1
  119. - new upstream release
  120. - remove Patch20 (openchrome-0.2.904-I420_Xv_surface_for_CME.patch)
  121. - add Patch1 (openchrome-0.2.905-xv_support_for_vx900.patch) from fedora
  122. * Wed Nov 02 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.904-8
  123. - rebuild with xserver-1.11.1.902
  124. * Thu May 12 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.904-7
  125. - rebuild (missing to replace patch).
  126. * Wed May 11 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.904-6
  127. - update to svn trunk (r925)
  128. - delete Patch1
  129. * Mon Feb 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.904-5
  130. - rebuild with xserver-1.10.0
  131. * Sun Nov 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.904-4
  132. - rebuild with xserver-1.9.2
  133. * Tue Oct 12 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.904-3
  134. - update to svn trunk (r854)
  135. - add patch13,20 from fedora
  136. * Sun Mar 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.904-2
  137. - rebuild with xserver-1.8rc
  138. * Thu Nov 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.904-1
  139. - new upstream release
  140. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.903-2
  141. - rebuild with X server 1.6.0
  142. * Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.903-1
  143. - new upstream release
  144. * Sat May 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.902-1
  145. - initial build for Vine Linux
  146. * Thu Apr 17 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.902-3
  147. - Strip leading /trunk/ from patch #2 and #3.
  148. * Sun Apr 13 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.902-2
  149. - Add patch to properly report driver version in the libpciaccess code path.
  150. - Add patch to properly report chipset revision in the libpciaccess code path.
  151. * Wed Apr 09 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.902-1
  152. - New upstream release.
  153. - Re-enable AGPDMA for K8M800 and VM800, as the drm bug is fixed in kernel
  154. >= 2.6.25rc7 (Patch #1).
  155. * Mon Mar 17 2008 Jesse Keating <jkeating@redhat.com> - 0.2.901-16
  156. - Remove dangerous unversioned obsoletes/provides.
  157. * Sun Mar 16 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-15
  158. - Update to latest svn snapshot (Rev. 553).
  159. * Sun Mar 09 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-14
  160. - Revert to last good version of the libpciaccess patch.
  161. * Sun Mar 09 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-13
  162. - Temporarily revert to old memory detection method. We need something that
  163. works out of the box for F9 Beta.
  164. * Sat Mar 08 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-12
  165. - Yet another revision of the libpciaccess patch.
  166. * Fri Mar 07 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-11
  167. - Fix a typo in libpciaccess patch.
  168. * Fri Mar 07 2008 Adam Jackson <ajax@redhat.com> 0.2.901-10
  169. - Fix -devel subpackage to obsolete via-devel properly.
  170. * Thu Mar 06 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-9
  171. - Fix libpciaccess patch.
  172. * Thu Mar 06 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-8
  173. - Add patch to fix XV on LCD for VM800.
  174. - Improved libpciaccess patch.
  175. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2.901-7
  176. - Autorebuild for GCC 4.3
  177. * Wed Jan 23 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-6
  178. - Add patch to properly set fifo on P4M900.
  179. * Sat Jan 19 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-5
  180. - Add patch to replace xf86memcpy by plain memcpy.
  181. * Thu Jan 10 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-4
  182. - Another try at fixing the libpciaccess patch.
  183. * Mon Jan 07 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-3
  184. - And now fix patch filename...
  185. * Mon Jan 07 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-2
  186. - Fix broken libpciaccess patch.
  187. * Wed Jan 02 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-1
  188. - Update to 0.2.901.
  189. - Remove obsoleted patches.
  190. - Update libpciaccess patch.
  191. * Sat Dec 08 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-9
  192. - Add patch for preliminary libpciaccess support.
  193. * Wed Nov 28 2007 Adam Jackson <ajax@redhat.com> 0.2.900-8
  194. - Obsolete xorg-x11-drv-via. The king is dead, long live the king.
  195. - Munge xorg.conf in %%post to change from via to openchrome.
  196. - Drive-by spec cleanups.
  197. * Fri Nov 02 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-7
  198. - Replace broken VT1625 NTSC patch.
  199. - Add patch to announce as release not as development build.
  200. - First official Fedora build.
  201. * Thu Oct 18 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-6
  202. - Update to official 0.2.900
  203. * Wed Oct 10 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-5
  204. - Update to release_0_3_0 branch rev. 410
  205. - Add VT1625 patch for 720x576 PAL
  206. * Mon Sep 10 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-4
  207. - Update to release_0_3_0 branch rev. 384 plus all changes from experimental
  208. merged back
  209. - Remove upstream patch #2
  210. * Wed Aug 01 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-3
  211. - Update to release_0_3_0 branch rev. 380 (fix a bug with XvMC acceleration)
  212. - Add a patch to allow proper detection of DDR667 (patch #2)
  213. * Mon Jul 16 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-2
  214. - Update to release_0_3_0 branch rev. 373
  215. - Add release notes to %%doc
  216. * Thu Jul 05 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-1
  217. - Initial build (release_0_3_0 branch rev. 365)
  218. - Add some NTSC modes for the VT1625 (patch #1)