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

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