]> git.pld-linux.org Git - packages/spice-vdagent.git/blob - spice-vdagent.spec
- up to 0.14.0
[packages/spice-vdagent.git] / spice-vdagent.spec
1 #
2 # Conditional build:
3 %bcond_with     systemd # use systemd instead of ConsoleKit for session tracking
4 #
5 Summary:        Linux guest agent for SPICE
6 Summary(pl.UTF-8):      Agent gościa linuksowego dla SPICE
7 Name:           spice-vdagent
8 Version:        0.14.0
9 Release:        0.1
10 License:        GPL v3+
11 Group:          X11/Applications
12 Source0:        http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
13 # Source0-md5:  da6575e1de5562ef853443eaba5bd1dc
14 URL:            http://spice-space.org/
15 %{!?with_systemd:BuildRequires: dbus-devel}
16 BuildRequires:  glib2-devel >= 1:2.12
17 BuildRequires:  pkgconfig
18 BuildRequires:  rpmbuild(macros) >= 1.228
19 BuildRequires:  spice-protocol >= 0.12.5
20 %{?with_systemd:BuildRequires:  systemd-devel >= 42}
21 BuildRequires:  xorg-lib-libX11-devel
22 BuildRequires:  xorg-lib-libXfixes-devel
23 BuildRequires:  xorg-lib-libXinerama-devel
24 BuildRequires:  xorg-lib-libXrandr-devel >= 1.3
25 BuildRequires:  xorg-lib-libpciaccess-devel >= 0.10
26 Requires:       xorg-lib-libXrandr >= 1.3
27 Requires:       xorg-lib-libpciaccess >= 0.10
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 \
49         --disable-silent-rules \
50         --with-init-script=systemd+redhat \
51         --with-session-info=%{?with_systemd:systemd}%{!?with_systemd:console-kit}
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
80 /etc/xdg/autostart/spice-vdagent.desktop
81 #/etc/modules-load.d/spice-vdagentd.conf
82 #/etc/rsyslog.d/spice-vdagent.conf
83 /lib/systemd/system/spice-vdagentd.service
84 /lib/systemd/system/spice-vdagentd.target
85 /lib/udev/rules.d/70-spice-vdagentd.rules
86 /usr/lib/tmpfiles.d/spice-vdagentd.conf
87 #%{_datadir}/gdm/autostart/LoginWindow/spice-vdagent.desktop
88 %{_mandir}/man1/spice-vdagent.1*
89 %{_mandir}/man1/spice-vdagentd.1*
This page took 0.100979 seconds and 3 git commands to generate.