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

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