%define tarball openchrome %define moduledir %(pkg-config xorg-server --variable=moduledir ) %define driverdir %{moduledir}/drivers %define cvsdate xxxxxxx %define with_xvmc 1 Summary: Xorg X11 via video driver Name: xorg-x11-drv-via Version: 0.2.1.svn201 Release: 1 URL: http://www.openchrome.org License: MIT/X11 Group: User Interface/X Hardware Support BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{tarball}-%{version}.tar.bz2 Source1: via.xinf.vt3344 ExclusiveArch: %{ix86} x86_64 BuildRequires: pkgconfig BuildRequires: automake BuildRequires: libtool BuildRequires: xorg-x11-server-sdk BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: mesa-libGL-devel %if %{with_xvmc} BuildRequires: libXvMC-devel %endif BuildRequires: libdrm-devel >= 2.0-1 Requires: xorg-x11-server-Xorg %description X.Org X11 via video driver. %if %{with_xvmc} %package devel Summary: Xorg X11 via video driver XvMC development package Group: Development/System Requires: %{name} = %{version}-%{release} %description devel X.Org X11 via video driver XvMC development package. %endif %prep %setup -q -c %{tarball}-%{version} %build ./autogen.sh %configure --disable-static make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_datadir}/hwdata/videoaliases install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/hwdata/videoaliases/via.xinf # FIXME: Remove all libtool archives (*.la) from modules directory. This # should be fixed in upstream Makefile.am or whatever. find $RPM_BUILD_ROOT -regex ".*\.la$" | xargs rm -f -- %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %dir %{moduledir} %dir %{driverdir} %{driverdir}/via_drv.so %{_datadir}/hwdata/videoaliases/via.xinf %if %{with_xvmc} %{_libdir}/libviaXvMC.so.1 %{_libdir}/libviaXvMC.so.1.0.0 %{_libdir}/libviaXvMCPro.so.1 %{_libdir}/libviaXvMCPro.so.1.0.0 %endif #%dir %{_mandir}/man4x %{_mandir}/man4/via.4* %if %{with_xvmc} %files devel %defattr(-,root,root,-) %{_libdir}/libviaXvMC.so %{_libdir}/libviaXvMCPro.so %endif %changelog * Tue Aug 03 2006 Xavier Bachelot 0.2.1.svn201-1 - Updated to openchrome revision #201 - Added BR: automake and BR: libtool * Tue Jun 20 2006 Xavier Bachelot 0.2.1.svn189-1 - Updated to openchrome revision #189 - Sync'ed with upstream FC5 spec - Added a modified via.xinf, with vt3344 pci id uncommented * Thu May 11 2006 Xavier Bachelot 0.2.1.svn186-1 - Updated to openchrome revision #186 * Fri Apr 28 2006 Xavier Bachelot 0.1.33.1.svn181-1 - Updated to openchrome revision #181 * Thu Mar 23 2006 Xavier Bachelot 0.1.33.1.svn175-1 - Updated to openchrome revision #175 * Thu Feb 23 2006 Xavier Bachelot 0.1.33.1.svn163 - Updated to openchrome revision #163 - Added missing BR: libX11-devel libXext-devel mesa-libGL-devel * Tue Dec 20 2005 Mike A. Harris 0.1.33.1-1 - Updated xorg-x11-drv-via to version 0.1.33.1 from X11R7 RC4 - Removed 'x' suffix from manpage dirs to match RC4 upstream. - Re-enabled the XvMC libs, etc. - Updated libdrm dependency to >= 2.0-1 * Wed Nov 16 2005 Mike A. Harris 0.1.32-1 - Updated xorg-x11-drv-via to version 0.1.32 from X11R7 RC2 - Add rpm macro with_xvmc, and disable it by default, as upstream does not build the via XvMC modules in RC2. * Fri Nov 4 2005 Mike A. Harris 0.1.31.1-1 - Updated xorg-x11-drv-via to version 0.1.31.1 from X11R7 RC1 - Fix *.la file removal. - Added "BuildRequires: libXvMC-devel" dependency. - Added "BuildRequires: libdrm-devel >= 1.0.5-1" dependency as it is required to build this version of the via driver aparently. - Added xorg-x11-drv-via-0.1.31.1-buildfix-CVSHEAD.patch to fix the driver to actually build. - Added 'devel' subpackage for XvMC .so * Tue Oct 4 2005 Mike A. Harris 0.1.31-1 - Update BuildRoot to use Fedora Packaging Guidelines. - Deglob file manifest. - Limit "ExclusiveArch" to x86, x86_64 * Fri Sep 2 2005 Mike A. Harris 0.1.31-0 - Initial spec file for via video driver generated automatically by my xorg-driverspecgen script.