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