# Update to the sis driver provided by clevo. It's based on release 0.9.1 fd.o # release, but it does not have a version of itself. The tarball is the fd.o # 0.9.1 release itself. The following date macro is the date when the patch # from the provided driver and the release was generated. # # The last driver provided by SiS is from 14/05/09 # This tarball was generated with the commands: # (old: % unrar x sis_drv_src_140509_viaSIS.rar) # (old: % cd sis_drv_src_140509/2d-driver) # (source from 20091203) # % unrar x Linux-driver.rar # % cd 2d-driver # % make distclean # % rm -f src/*.bak # % rm -fr src/xvmc/.deps # % rm -fr src/xvmc/Makefile # % for f in `find . -name \*.c -o -name \*.h`; do dos2unix -U $f; done # % cd .. # % mkdir xf86-video-sis-0.9.1 # % mv 2d-driver/* xf86-video-sis-0.9.1 # % chmod +x configure # % tar jcvf xf86-video-sis-0.9.1.tar.bz2 xf86-video-sis-0.9.1 %define _disable_ld_no_undefined 1 %define date 20091203 Summary: Video driver for SiS 670 / 671 cards Name: x11-driver-video-sisimedia Version: 0.9.1 Release: 2.%{date}.20 Group: System/X11 License: MIT Url: http://www.linuxconsulting.ro/xorg-drivers/ Source0: http://xorg.freedesktop.org/releases/individual/driver/xf86-video-sis-%{version}.tar.bz2 # SiS patch from 20102701 # B[ILwhL (chris_ke) # ... I just upgrade SiS source based on ver. 090109 ... Patch1: xf86-video-sis-0.9.1-20102701.patch Patch2: 0002-Remove-XFree86-Misc-PassMessage-support.patch Patch3: 0003-Fix-build-with-Werror-format-security.patch Patch4: 0005-Fix-backlight-off-on-SiS30x.-video-bridges.patch Patch5: 0006-Add-IgnoreHotkeyFlag-driver-option.patch Patch6: xf86-video-sis-0.9.1-dump-regs-after-video-init.patch Patch7: 0007-Remove-useless-loader-symbol-lists.patch Patch8: 0008-update-to-xextproto-7-1-support.patch Patch9: 0009-update-for-rac-removal.patch Patch10: 0010-change-to-use-abi-version-check.patch Patch11: 0011-more-rac-removal.patch Patch12: 0012-remove-mibank-h-reference.patch Patch13: 0013-Update-to-new-CreateNewResourceType-API.patch Patch14: xf86-video-sis-0.9.1-automake-1.13.patch # Patches from Arch Patch15: 0001-Remove-xorgconfig-xorgcfg-from-See-Also-list-in-man-.patch Patch16: 0004-Make-sisRegs3D4-big-enough-to-hold-all-values-writte.patch Patch17: 0005-Correct-bounds-check-of-blitClip-array-access.patch Patch18: xserver112.patch Patch19: pciTag-removal-workaround.patch Patch20: Untangle-XF86DRI.patch Patch21: swap-func-rename.patch Patch22: xf86MapDomainMemory-pci_device_map_legacy.patch Patch23: sync-with-freedesktop.patch Patch24: fix-xv-crash.patch Patch25: sisimedia-no-xaa.patch Patch26: sisimedia-xorg-1.13.patch Patch27: deprecated-sym2.patch Patch28: disable-UploadToScreen-DownloadFromScreen.patch Patch29: remove_mibstore.h.patch Patch30: sisimedia-1.17.diff BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(xorg-macros) BuildRequires: pkgconfig(xorg-server) BuildRequires: pkgconfig(xproto) Requires: x11-server-common %(xserver-sdk-abi-requires videodrv) %description x11-driver-video-sisimedia is the video driver for SiS 670 / 671 cards. These are not supported by the X.org 'sis' driver. This code is very different, so the two cannot be easily merged. %prep %setup -q -n xf86-video-sis-%{version} %apply_patches # rename driver sisimedia so it can co-exist with x.org sis driver # - AdamW 2008/08 sed -i -e 's,sis_drv,sisimedia_drv,g' src/Makefile.am sed -i -e 's,\"sis\",\"sisimedia\",g' src/sis.h sed -i -e 's,sisModuleData,sisimediaModuleData,g' src/sis_driver.c autoreconf -ifs %build export CC=gcc %configure --disable-static %make %install %makeinstall_std # it's just a copy of the x.org driver manpage and so not really any # use - AdamW 2008/08 rm -f %{buildroot}%{_mandir}/man4/sis.* %files %{_libdir}/xorg/modules/drivers/sisimedia_drv.so