-
Notifications
You must be signed in to change notification settings - Fork 0
/
mingw-spice-vdagent.spec.in
115 lines (94 loc) · 3.34 KB
/
mingw-spice-vdagent.spec.in
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
%{?mingw_package_header}
#define _version_suffix -e198
%if "%{_build_arch}" == "x86_64" && 0%{?fedora}
%define can_do_check_x64 1
%define can_do_check_x86 1
%else
%if "%{_build_arch}" == "x86_64" && (0%{?epel} && 0%{?epel} >= 7)
%define can_do_check_x64 1
%define can_do_check_x86 0
%else
%define can_do_check_x64 0
%define can_do_check_x86 0
%endif
%endif
Name: mingw-spice-vdagent
Version: @RPM_VERSION@
Release: 1%{?dist}%{?extra_release}
Summary: MinGW Windows SPICE guest agent
License: GPLv2+
URL: https://www.spice-space.org/
Source0: vdagent-win-@VERSION@%{?_version_suffix}.tar.xz
BuildRequires: mingw32-filesystem >= 23
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw32-gcc-c++
BuildRequires: mingw64-gcc-c++
BuildRequires: mingw32-libpng-static
BuildRequires: mingw64-libpng-static
BuildRequires: mingw32-zlib-static
BuildRequires: mingw64-zlib-static
BuildRequires: mingw32-winpthreads-static
BuildRequires: mingw64-winpthreads-static
BuildRequires: pkgconfig
%if 0%{can_do_check_x64}
BuildRequires: ImageMagick wine-core(x86-64)
%endif
%if 0%{can_do_check_x86}
BuildRequires: ImageMagick wine-core(x86-32)
%endif
BuildArch: noarch
%package -n mingw32-spice-vdagent
Summary: MinGW Windows SPICE guest agent
%package -n mingw64-spice-vdagent
Summary: MinGW Windows SPICE guest agent
%description
Spice agent for Windows guests offering the following features:
Features:
* Client mouse mode (no need to grab mouse by client, no mouse lag)
this is handled by the daemon by feeding mouse events into the kernel
via uinput.
* Automatic adjustment of the Windows desktop resolution to the client resolution
* Support of copy and paste (text and images) between the active Windows
session and the client
%description -n mingw32-spice-vdagent
Spice agent for Windows guests offering the following features:
Features:
* Client mouse mode (no need to grab mouse by client, no mouse lag)
this is handled by the daemon by feeding mouse events into the kernel
via uinput.
* Automatic adjustment of the Windows desktop resolution to the client resolution
* Support of copy and paste (text and images) between the active Windows
session and the client
%description -n mingw64-spice-vdagent
Spice agent for Windows guests offering the following features:
Features:
* Client mouse mode (no need to grab mouse by client, no mouse lag)
this is handled by the daemon by feeding mouse events into the kernel
via uinput.
* Automatic adjustment of the Windows desktop resolution to the client resolution
* Support of copy and paste (text and images) between the active Windows
session and the client
%prep
%setup -q -n vdagent-win-@VERSION@%{?_version_suffix}
%{mingw_debug_package}
%build
%mingw_configure --enable-debug
%mingw_make %{?_smp_mflags} V=1
%if 0%{can_do_check_x86} || 0%{can_do_check_x64}
%check
%define mingw_build_win32 %{can_do_check_x86}
%define mingw_build_win64 %{can_do_check_x64}
%mingw_make check
%define mingw_build_win32 1
%define mingw_build_win64 1
%endif
%install
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
%files -n mingw32-spice-vdagent
%defattr(-,root,root)
%{mingw32_bindir}/vdagent.exe
%{mingw32_bindir}/vdservice.exe
%files -n mingw64-spice-vdagent
%defattr(-,root,root)
%{mingw64_bindir}/vdagent.exe
%{mingw64_bindir}/vdservice.exe