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