]>
Commit | Line | Data |
---|---|---|
bb5c0587 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with systemd # use systemd instead of ConsoleKit for session tracking | |
4 | # | |
d7945e59 JB |
5 | Summary: Linux guest agent for SPICE |
6 | Summary(pl.UTF-8): Agent gościa linuksowego dla SPICE | |
7 | Name: spice-vdagent | |
97210f81 | 8 | Version: 0.15.0 |
d7945e59 JB |
9 | Release: 0.1 |
10 | License: GPL v3+ | |
11 | Group: X11/Applications | |
12 | Source0: http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2 | |
97210f81 | 13 | # Source0-md5: 2919ac7a4195b0b4b2588fae90a9241c |
d7945e59 | 14 | URL: http://spice-space.org/ |
d1b6401b JB |
15 | %{!?with_systemd:BuildRequires: dbus-devel} |
16 | BuildRequires: glib2-devel >= 1:2.12 | |
95b73a23 | 17 | BuildRequires: pkgconfig |
d7945e59 | 18 | BuildRequires: rpmbuild(macros) >= 1.228 |
d1b6401b | 19 | BuildRequires: spice-protocol >= 0.12.5 |
bb5c0587 JB |
20 | %{?with_systemd:BuildRequires: systemd-devel >= 42} |
21 | BuildRequires: xorg-lib-libX11-devel | |
d7945e59 | 22 | BuildRequires: xorg-lib-libXfixes-devel |
bb5c0587 | 23 | BuildRequires: xorg-lib-libXinerama-devel |
d330f051 | 24 | BuildRequires: xorg-lib-libXrandr-devel >= 1.3 |
bb5c0587 | 25 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10 |
d330f051 | 26 | Requires: xorg-lib-libXrandr >= 1.3 |
bb5c0587 | 27 | Requires: xorg-lib-libpciaccess >= 0.10 |
d7945e59 JB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | The SPICE agent for Linux consists of 2 parts, a daemon spice-vdagentd | |
32 | and a per X-session process spice-vdagent. The daemon gets | |
33 | automatically started in Spice guests through a udev rule. The per | |
34 | X-session gets automatically started in desktop environments which | |
35 | honor /etc/xdg/autostart, and under gdm. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Agent SPICE dla Linuksa składa się z 2 części: demona spice-vdagentd | |
39 | oraz procesu dla sesji X spice-vdagent. Demon uruchamia się | |
40 | automatycznie na gościach Spice poprzez regułę udeva. Proces dla sesji | |
41 | X jest uruchamiany automatycznie w środowiskach graficznych | |
42 | honorujących /etc/xdg/autostart oraz pod GDM-em. | |
43 | ||
44 | %prep | |
45 | %setup -q | |
46 | ||
47 | %build | |
48 | %configure \ | |
bb5c0587 | 49 | --disable-silent-rules \ |
95b73a23 | 50 | --with-init-script=systemd+redhat \ |
bb5c0587 | 51 | --with-session-info=%{?with_systemd:systemd}%{!?with_systemd:console-kit} |
d7945e59 JB |
52 | %{__make} |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %{__make} install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %post | |
64 | /sbin/chkconfig --add %{name} | |
65 | %service %{name} restart | |
66 | ||
67 | %preun | |
68 | if [ "$1" = "0" ]; then | |
69 | %service -q %{name} stop | |
70 | /sbin/chkconfig --del %{name} | |
71 | fi | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %doc ChangeLog README TODO | |
76 | %attr(755,root,root) %{_bindir}/spice-vdagent | |
77 | %attr(755,root,root) %{_sbindir}/spice-vdagentd | |
78 | # TODO: PLDify | |
79 | %attr(754,root,root) /etc/rc.d/init.d/spice-vdagentd | |
d7945e59 | 80 | /etc/xdg/autostart/spice-vdagent.desktop |
95b73a23 JB |
81 | #/etc/rsyslog.d/spice-vdagent.conf |
82 | /lib/systemd/system/spice-vdagentd.service | |
83 | /lib/systemd/system/spice-vdagentd.target | |
84 | /lib/udev/rules.d/70-spice-vdagentd.rules | |
85 | /usr/lib/tmpfiles.d/spice-vdagentd.conf | |
d7945e59 | 86 | #%{_datadir}/gdm/autostart/LoginWindow/spice-vdagent.desktop |
d1b6401b JB |
87 | %{_mandir}/man1/spice-vdagent.1* |
88 | %{_mandir}/man1/spice-vdagentd.1* |