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