/
x11-driver-video-vmware.spec
47 lines (39 loc) · 1.21 KB
/
x11-driver-video-vmware.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
%define _disable_ld_no_undefined 1
%define git %nil
Summary: X.org driver for VMWare(tm)
Name: x11-driver-video-vmware
Version: 13.3.0
Release: 3
Source0: http://xorg.freedesktop.org/releases/individual/driver/xf86-video-vmware-%{version}.tar.bz2
Group: System/X11
License: MIT
Url: http://xorg.freedesktop.org
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(xatracker)
BuildRequires: pkgconfig(xorg-macros)
BuildRequires: pkgconfig(xorg-server) >= 1.18
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(libudev)
Requires: %{_lib}dri-drivers-vmwgfx
Requires: x11-server-common %(xserver-sdk-abi-requires videodrv)
%description
x11-driver-video-vmware is the X.org driver for VMWare(tm).
%prep
%setup -qn xf86-video-vmware-%{version}
%autopatch -p1
%build
export CC=gcc
%configure --enable-vmwarectrl-client
%make
%install
%makeinstall_std
# XXX: this should ultimately rather be handled by ie. XFdrake
install -d %{buildroot}%{_sysconfdir}/modprobe.d
tee > %{buildroot}%{_sysconfdir}/modprobe.d/vmwgfx.conf << EOF
options vmwgfx enable_fbdev=1
EOF
%files
%config(noreplace) %{_sysconfdir}/modprobe.d/vmwgfx.conf
%{_bindir}/vmwarectrl
%{_libdir}/xorg/modules/drivers/vmware_drv.so
%{_mandir}/man4/vmware.*