source: projects/specs/trunk/x/xorg-x11-drv-openchrome/xorg-x11-drv-openchrome-vl.spec @ 2203

Revision 2203, 7.7 KB checked in by Takemikaduchi, 14 years ago (diff)

update Xorg libraries and xserver, and rebuild driver

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