f9b8bc0
%define tarball xf86-video-openchrome
f9b8bc0
%define moduledir %(pkg-config xorg-server --variable=moduledir )
f9b8bc0
%define driverdir	%{moduledir}/drivers
f9b8bc0
f9b8bc0
%define cvsdate xxxxxxx
f9b8bc0
f9b8bc0
%define with_xvmc 1
f9b8bc0
f9b8bc0
Summary:	Xorg X11 openchrome video driver
f9b8bc0
Name:		xorg-x11-drv-openchrome
f628c7e
Version:	0.2.903
f628c7e
Release:	1%{?dist}
f9b8bc0
URL:		http://www.openchrome.org
f9b8bc0
License:	MIT
f9b8bc0
Group:		User Interface/X Hardware Support
f9b8bc0
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f9b8bc0
f9b8bc0
Source0:	http://www.openchrome.org/releases/%{tarball}-%{version}.tar.bz2
f9b8bc0
Source1:	openchrome.xinf
4447053
f628c7e
# Patches from upstream trunk :
f628c7e
Patch1:         openchrome-0.2.903-sync_pciids.patch
f628c7e
# Fedora specific patches :
f628c7e
Patch100:       openchrome-0.2.903-re_enable_AGPDMA.patch
f9b8bc0
f9b8bc0
ExclusiveArch:	%{ix86} x86_64
f9b8bc0
f9b8bc0
BuildRequires:	pkgconfig
f9b8bc0
BuildRequires:	xorg-x11-server-sdk
f9b8bc0
BuildRequires:	automake
f9b8bc0
BuildRequires:	libtool
f9b8bc0
BuildRequires:	libX11-devel
f9b8bc0
BuildRequires:	libXext-devel
f9b8bc0
BuildRequires:	mesa-libGL-devel
f9b8bc0
%if %{with_xvmc}
f9b8bc0
BuildRequires:	libXvMC-devel
f9b8bc0
%endif
f9b8bc0
BuildRequires:	libdrm-devel >= 2.0-1
f9b8bc0
Requires:	xorg-x11-server-Xorg
f9b8bc0
f9b8bc0
%description 
f9b8bc0
X.Org X11 openchrome video driver.
f9b8bc0
f9b8bc0
%if %{with_xvmc}
f9b8bc0
%package devel
f9b8bc0
Summary:	Xorg X11 openchrome video driver XvMC development package
f9b8bc0
Group:		Development/System
f9b8bc0
Requires:	%{name} = %{version}-%{release}
f9b8bc0
f9b8bc0
%description devel
f9b8bc0
X.Org X11 openchrome video driver XvMC development package.
f9b8bc0
%endif
f9b8bc0
f9b8bc0
%prep
f9b8bc0
%setup -q -n %{tarball}-%{version}
f628c7e
%patch1 -p0 -b .pciids
f628c7e
%patch100 -p0 -b .agpdma
f9b8bc0
f9b8bc0
%build
a0a9d3e
%configure --disable-static --enable-dri
f9b8bc0
make
f9b8bc0
f9b8bc0
%install
f9b8bc0
rm -rf $RPM_BUILD_ROOT
f9b8bc0
f9b8bc0
make install DESTDIR=$RPM_BUILD_ROOT
f9b8bc0
f9b8bc0
mkdir -p $RPM_BUILD_ROOT%{_datadir}/hwdata/videoaliases
f9b8bc0
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/hwdata/videoaliases/openchrome.xinf
f9b8bc0
f9b8bc0
# FIXME: Remove all libtool archives (*.la) from modules directory.  This
f9b8bc0
# should be fixed in upstream Makefile.am or whatever.
f9b8bc0
find $RPM_BUILD_ROOT -regex ".*\.la$" | xargs rm -f --
f9b8bc0
f9b8bc0
%clean
f9b8bc0
rm -rf $RPM_BUILD_ROOT
f9b8bc0
f9b8bc0
%files
f9b8bc0
%defattr(-,root,root,-)
a0a9d3e
%doc COPYING NEWS README
f9b8bc0
%{driverdir}/openchrome_drv.so
f9b8bc0
%{_datadir}/hwdata/videoaliases/openchrome.xinf
f9b8bc0
%if %{with_xvmc}
f9b8bc0
%{_libdir}/libchromeXvMC.so.1
f9b8bc0
%{_libdir}/libchromeXvMC.so.1.0.0
f9b8bc0
%{_libdir}/libchromeXvMCPro.so.1
f9b8bc0
%{_libdir}/libchromeXvMCPro.so.1.0.0
f9b8bc0
%endif
f9b8bc0
%{_mandir}/man4/openchrome.4.gz
f9b8bc0
f9b8bc0
%if %{with_xvmc}
f9b8bc0
%files devel
f9b8bc0
%defattr(-,root,root,-)
f9b8bc0
%{_libdir}/libchromeXvMC.so
f9b8bc0
%{_libdir}/libchromeXvMCPro.so
f9b8bc0
%endif
f9b8bc0
f9b8bc0
f9b8bc0
%changelog
f628c7e
* Wed Aug 20 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.903-1
f628c7e
- Update to 0.2.903.
f628c7e
4447053
* Sat Jun 07 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.902-3
4447053
- Re-enable AGPDMA for K8M800 and VM800, as the drm bug is fixed in kernel
4447053
  >= 2.6.25rc7 (Patch #1).
4447053
- Fix Xv on LCD for K8M890.
4447053
0ee95cf
* Sun Jun 01 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.902-2
0ee95cf
- Add patch to fix Xv on LCD for CX700.
0ee95cf
- Unbreak ActiveDevice option.
0ee95cf
- Disable XvDMA for K8M890 and P4M890 (RHBZ #391621).
0ee95cf
- Sync pci ids with upstream.
0ee95cf
a0a9d3e
* Wed Apr 09 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.902-1
a0a9d3e
- Update to 0.2.902.
a0a9d3e
- Sync with devel.
a0a9d3e
7bdcbda
* Sun Jan 27 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-2
7bdcbda
- Add patch to properly set fifo on P4M900.
7bdcbda
c0c094a
* Wed Jan 02 2008 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.901-1
c0c094a
- Update to 0.2.901.
c0c094a
- Remove obsoleted patches.
c0c094a
f9b8bc0
* Fri Nov 02 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-7
f9b8bc0
- Replace broken VT1625 NTSC patch.
f9b8bc0
- Add patch to announce as release not as development build.
f9b8bc0
- First official Fedora build.
f9b8bc0
f9b8bc0
* Thu Oct 18 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-6
f9b8bc0
- Update to official 0.2.900
f9b8bc0
f9b8bc0
* Wed Oct 10 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-5
f9b8bc0
- Update to release_0_3_0 branch rev. 410
f9b8bc0
- Add VT1625 patch for 720x576 PAL
f9b8bc0
f9b8bc0
* Mon Sep 10 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-4
f9b8bc0
- Update to release_0_3_0 branch rev. 384 plus all changes from experimental
f9b8bc0
  merged back
f9b8bc0
- Remove upstream patch #2
f9b8bc0
f9b8bc0
* Wed Aug 01 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-3
f9b8bc0
- Update to release_0_3_0 branch rev. 380 (fix a bug with XvMC acceleration)
f9b8bc0
- Add a patch to allow proper detection of DDR667 (patch #2)
f9b8bc0
f9b8bc0
* Mon Jul 16 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-2
f9b8bc0
- Update to release_0_3_0 branch rev. 373
f9b8bc0
- Add release notes to %%doc
f9b8bc0
f9b8bc0
* Thu Jul 05 2007 Xavier Bachelot <xavier AT bachelot DOT org> - 0.2.900-1
f9b8bc0
- Initial build (release_0_3_0 branch rev. 365)
f9b8bc0
- Add some NTSC modes for the VT1625 (patch #1)