summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/xf86-video-vesa.spec48
-rw-r--r--packaging/xf86-video-vesa_DefaultRefresh.diff22
2 files changed, 70 insertions, 0 deletions
diff --git a/packaging/xf86-video-vesa.spec b/packaging/xf86-video-vesa.spec
new file mode 100644
index 0000000..322c287
--- /dev/null
+++ b/packaging/xf86-video-vesa.spec
@@ -0,0 +1,48 @@
+Name: xf86-video-vesa
+Version: 2.3.2
+Release: 0
+License: MIT
+Summary: Generic VESA video driver for the Xorg X server
+Url: http://xorg.freedesktop.org/
+Group: System/X11/Servers/XF86_4
+Source0: http://xorg.freedesktop.org/releases/individual/driver/%{name}-%{version}.tar.bz2
+Patch0: xf86-video-vesa_DefaultRefresh.diff
+BuildRequires: pkg-config
+BuildRequires: pkgconfig(fontsproto)
+BuildRequires: pkgconfig(pciaccess) >= 0.10
+BuildRequires: pkgconfig(randrproto)
+BuildRequires: pkgconfig(renderproto)
+BuildRequires: pkgconfig(resourceproto)
+BuildRequires: pkgconfig(xextproto)
+BuildRequires: pkgconfig(xorg-macros) >= 1.3
+BuildRequires: pkgconfig(xorg-server) >= 1.0.99.901
+BuildRequires: pkgconfig(xproto)
+Supplements: xorg-server
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+vesa is an Xorg driver for Generic VESA video cards.
+
+It can drive most VESA-compatible video cards, but only makes use of the
+basic standard VESA core that is common to these cards. The driver
+supports depths 8, 15 16 and 24.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%files
+%defattr(-,root,root)
+%doc COPYING
+%dir %{_libdir}/xorg/modules/drivers
+%{_libdir}/xorg/modules/drivers/vesa_drv.so
+%{_mandir}/man4/vesa.4%{?ext_man}
+
+%changelog
diff --git a/packaging/xf86-video-vesa_DefaultRefresh.diff b/packaging/xf86-video-vesa_DefaultRefresh.diff
new file mode 100644
index 0000000..b7475bc
--- /dev/null
+++ b/packaging/xf86-video-vesa_DefaultRefresh.diff
@@ -0,0 +1,22 @@
+Index: xf86-video-vesa-2.2.1/src/vesa.c
+===================================================================
+--- xf86-video-vesa-2.2.1.orig/src/vesa.c
++++ xf86-video-vesa-2.2.1/src/vesa.c
+@@ -783,9 +783,16 @@ VESAPreInit(ScrnInfoPtr pScrn, int flags
+ /* Use shadow by default */
+ if (xf86ReturnOptValBool(pVesa->Options, OPTION_SHADOW_FB, TRUE))
+ pVesa->shadowFB = TRUE;
++ else
++ pVesa->shadowFB = FALSE;
+
+- if (xf86ReturnOptValBool(pVesa->Options, OPTION_DFLT_REFRESH, FALSE))
++ /* Use DefaultRefresh by default due to VBE 3.0 often wrongly
++ * implemented.
++ */
++ if (xf86ReturnOptValBool(pVesa->Options, OPTION_DFLT_REFRESH, TRUE))
+ pVesa->defaultRefresh = TRUE;
++ else
++ pVesa->defaultRefresh = FALSE;
+
+ pVesa->ModeSetClearScreen = FALSE;
+ if (xf86ReturnOptValBool(pVesa->Options, OPTION_MODESET_CLEAR_SCREEN,