]>
Commit | Line | Data |
---|---|---|
483d9bf7 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without xspice # xspice driver | |
4 | # | |
997146d9 JB |
5 | Summary: X.org video driver for QXL virtual GPU |
6 | Summary(pl.UTF-8): Sterownik obrazu X.org dla wirtualnych procesorów graficznych QXL | |
7 | Name: xorg-driver-video-qxl | |
04e891f1 | 8 | Version: 0.1.1 |
b05fe442 | 9 | Release: 3 |
997146d9 JB |
10 | License: MIT |
11 | Group: X11/Applications | |
12 | Source0: http://xorg.freedesktop.org/releases/individual/driver/xf86-video-qxl-%{version}.tar.bz2 | |
04e891f1 JB |
13 | # Source0-md5: 39f0721e83bc3bb2aba5c0379616ddbc |
14 | Patch0: %{name}-cast.patch | |
997146d9 JB |
15 | URL: http://xorg.freedesktop.org/ |
16 | BuildRequires: autoconf >= 2.60 | |
17 | BuildRequires: automake | |
04e891f1 | 18 | BuildRequires: libdrm-devel >= 2.4.46 |
997146d9 JB |
19 | BuildRequires: libtool |
20 | BuildRequires: pkgconfig >= 1:0.19 | |
21 | BuildRequires: rpmbuild(macros) >= 1.389 | |
0f1f4e07 | 22 | BuildRequires: spice-protocol >= 0.12.0 |
483d9bf7 | 23 | %{?with_xspice:BuildRequires: spice-server-devel >= 0.6.3} |
04e891f1 | 24 | BuildRequires: udev-devel |
997146d9 JB |
25 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10.0 |
26 | BuildRequires: xorg-proto-fontsproto-devel | |
27 | BuildRequires: xorg-proto-randrproto-devel | |
28 | BuildRequires: xorg-proto-renderproto-devel | |
29 | BuildRequires: xorg-proto-videoproto-devel | |
30 | BuildRequires: xorg-proto-xf86dgaproto-devel | |
31 | BuildRequires: xorg-util-util-macros >= 1.4 | |
32 | BuildRequires: xorg-xserver-server-devel >= 1.0.99.901 | |
33 | %{?requires_xorg_xserver_videodrv} | |
34 | Requires: xorg-lib-libpciaccess >= 0.10.0 | |
35 | Requires: xorg-xserver-server >= 1.0.99.901 | |
c43bac10 | 36 | Provides: xorg-driver-video |
997146d9 JB |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | X.org video driver for QXL virtual GPU, which can be found in the | |
41 | RedHat Enterprise Virtualisation system, and also in the spice | |
42 | project. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Sterownik obrazu X.org dla wirtualnych procesorów graficznych QXL, | |
c43bac10 ER |
46 | które można znaleźć w systemie RedHat Enterprise Virtualisation oraz w |
47 | projekcie spice. | |
997146d9 | 48 | |
483d9bf7 JB |
49 | %package -n spice-xserver |
50 | Summary: Xspice - X server and Spice server in one | |
51 | Summary(pl.UTF-8): Xspice - serwer X oraz serwer Spice w jednym | |
52 | Group: X11/Applications | |
483d9bf7 | 53 | Requires: spice-server-libs >= 0.6.3 |
c43bac10 | 54 | Requires: xorg-xserver-server >= 1.0.99.901 |
483d9bf7 JB |
55 | |
56 | %description -n spice-xserver | |
57 | Xspice is an X server and Spice server in one. It consists of a | |
58 | wrapper script for executing Xorg with the right parameters and | |
59 | environment variables, a module named spiceqxl_drv.so implementing | |
60 | three drivers: a video mostly code identical to the guest qxl X | |
61 | driver, and keyboard and mouse reading from the spice inputs channel. | |
62 | ||
63 | Xspice allows regular X connections, while a spice client provides the | |
64 | keyboard and mouse and video output. | |
65 | ||
66 | %description -n spice-xserver -l pl.UTF-8 | |
67 | Xspice to serwer X i serwer Spice w jednym. Składa się ze skryptu | |
68 | wywołującego Xorg z właściwymi parametrami i zmiennymi środowiskowymi, | |
69 | oraz modułu o nazwie spiceqxl_drv.so implementującego trzy sterowniki: | |
70 | graficzny oparty na kodzie prawie identycznym ze sterownikiem X gościa | |
71 | qxl, oraz klawiatury i myszy szytające z kanału wejćiowego spice. | |
72 | ||
73 | Xspice pozwala na normalne połączenia X, podczas gdy klient spice | |
74 | udostępnia wejście klawiatury i myszy oraz wyjście obrazu. | |
75 | ||
997146d9 JB |
76 | %prep |
77 | %setup -q -n xf86-video-qxl-%{version} | |
04e891f1 | 78 | %patch0 -p1 |
997146d9 JB |
79 | |
80 | %build | |
81 | %{__libtoolize} | |
82 | %{__aclocal} | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
483d9bf7 JB |
86 | %configure \ |
87 | %{?with_xspice:--enable-xspice} | |
997146d9 JB |
88 | |
89 | %{__make} | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
97 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/*/*.la | |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
104 | %doc COPYING ChangeLog README TODO | |
105 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/qxl_drv.so | |
483d9bf7 JB |
106 | |
107 | %if %{with xspice} | |
108 | %files -n spice-xserver | |
109 | %defattr(644,root,root,755) | |
110 | %doc README.xspice examples/spiceqxl.xorg.conf.example | |
b221d1da | 111 | %attr(755,root,root) %{_bindir}/Xspice |
483d9bf7 JB |
112 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/spiceqxl_drv.so |
113 | %endif |