]> git.pld-linux.org Git - packages/spice-vdagent.git/blame - spice-vdagent.spec
- up to 0.14.0
[packages/spice-vdagent.git] / spice-vdagent.spec
CommitLineData
bb5c0587
JB
1#
2# Conditional build:
3%bcond_with systemd # use systemd instead of ConsoleKit for session tracking
4#
d7945e59
JB
5Summary: Linux guest agent for SPICE
6Summary(pl.UTF-8): Agent gościa linuksowego dla SPICE
7Name: spice-vdagent
d1b6401b 8Version: 0.14.0
d7945e59
JB
9Release: 0.1
10License: GPL v3+
11Group: X11/Applications
12Source0: http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
d1b6401b 13# Source0-md5: da6575e1de5562ef853443eaba5bd1dc
d7945e59 14URL: http://spice-space.org/
d1b6401b
JB
15%{!?with_systemd:BuildRequires: dbus-devel}
16BuildRequires: glib2-devel >= 1:2.12
95b73a23 17BuildRequires: pkgconfig
d7945e59 18BuildRequires: rpmbuild(macros) >= 1.228
d1b6401b 19BuildRequires: spice-protocol >= 0.12.5
bb5c0587
JB
20%{?with_systemd:BuildRequires: systemd-devel >= 42}
21BuildRequires: xorg-lib-libX11-devel
d7945e59 22BuildRequires: xorg-lib-libXfixes-devel
bb5c0587 23BuildRequires: xorg-lib-libXinerama-devel
d330f051 24BuildRequires: xorg-lib-libXrandr-devel >= 1.3
bb5c0587 25BuildRequires: xorg-lib-libpciaccess-devel >= 0.10
d330f051 26Requires: xorg-lib-libXrandr >= 1.3
bb5c0587 27Requires: xorg-lib-libpciaccess >= 0.10
d7945e59
JB
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31The SPICE agent for Linux consists of 2 parts, a daemon spice-vdagentd
32and a per X-session process spice-vdagent. The daemon gets
33automatically started in Spice guests through a udev rule. The per
34X-session gets automatically started in desktop environments which
35honor /etc/xdg/autostart, and under gdm.
36
37%description -l pl.UTF-8
38Agent SPICE dla Linuksa składa się z 2 części: demona spice-vdagentd
39oraz procesu dla sesji X spice-vdagent. Demon uruchamia się
40automatycznie na gościach Spice poprzez regułę udeva. Proces dla sesji
41X jest uruchamiany automatycznie w środowiskach graficznych
42honorują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
55rm -rf $RPM_BUILD_ROOT
56
57%{__make} install \
58 DESTDIR=$RPM_BUILD_ROOT
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%post
64/sbin/chkconfig --add %{name}
65%service %{name} restart
66
67%preun
68if [ "$1" = "0" ]; then
69 %service -q %{name} stop
70 /sbin/chkconfig --del %{name}
71fi
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/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
d7945e59 87#%{_datadir}/gdm/autostart/LoginWindow/spice-vdagent.desktop
d1b6401b
JB
88%{_mandir}/man1/spice-vdagent.1*
89%{_mandir}/man1/spice-vdagentd.1*
This page took 0.106201 seconds and 4 git commands to generate.