-
Notifications
You must be signed in to change notification settings - Fork 0
/
h264Vdsm.spec
55 lines (41 loc) · 1.28 KB
/
h264Vdsm.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
48
49
50
51
52
53
54
55
Name: h264-spice
Version: 0.1
Release: 1%{?dist}
Summary: Support h264 to spice
Group: Applications/System
License: GPL
URL: http://www.baidu.com
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: vdsm
%description
h264 for spice
%prep
%setup -q -n %{name}-%{version}
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/share/vdsm/virt/vmdevices
cp -f graphics.py $RPM_BUILD_ROOT/usr/share/vdsm/virt/vmdevices/
cp -f core.py $RPM_BUILD_ROOT/usr/share/vdsm/virt/vmdevices/
cp -f graphics.pyo $RPM_BUILD_ROOT/usr/share/vdsm/virt/vmdevices/
cp -f core.pyo $RPM_BUILD_ROOT/usr/share/vdsm/virt/vmdevices/
cp -f graphics.pyc $RPM_BUILD_ROOT/usr/share/vdsm/virt/vmdevices/
cp -f core.pyc $RPM_BUILD_ROOT/usr/share/vdsm/virt/vmdevices/
%clean
rm -rf %{buildroot}
%post
systemctl restart vdsmd.service
%files
%defattr(-,root,root,-)
/usr/share/vdsm/virt/vmdevices/graphics.py
/usr/share/vdsm/virt/vmdevices/core.py
/usr/share/vdsm/virt/vmdevices/graphics.pyc
/usr/share/vdsm/virt/vmdevices/core.pyc
/usr/share/vdsm/virt/vmdevices/graphics.pyo
/usr/share/vdsm/virt/vmdevices/core.pyo
%changelog
* Tue May 23 2017 lijiejun <[email protected]> 0.1-1
- Initial package