|
|
647200 |
Name: spice-streaming-agent
|
|
|
647200 |
Version: 0.2
|
|
|
ece5fe |
Release: 4%{?dist}
|
|
|
647200 |
Summary: SPICE streaming agent
|
|
|
647200 |
Group: Applications/System
|
|
|
647200 |
License: ASL 2.0
|
|
|
647200 |
URL: https://www.redhat.com
|
|
|
647200 |
Source0: %{name}-%{version}.tar.xz
|
|
|
647200 |
|
|
|
647200 |
Patch1: 0001-start-streaming-check-num_codecs.patch
|
|
|
647200 |
Patch2: 0002-LoadPlugin-call-dlclose-upon-failure.patch
|
|
|
647200 |
Patch3: 0003-main-better-cleanup-when-XOpenDisplay-or-XFixesQuery.patch
|
|
|
647200 |
Patch4: 0004-jpeg-Do-not-use-next_output_byte-buf_empty_output_bu.patch
|
|
|
647200 |
|
|
|
647200 |
BuildRequires: spice-protocol >= 0.12.14
|
|
|
647200 |
BuildRequires: libX11-devel libXfixes-devel
|
|
|
647200 |
BuildRequires: libjpeg-turbo-devel
|
|
|
647200 |
BuildRequires: catch-devel
|
|
|
647200 |
BuildRequires: pkgconfig(udev)
|
|
|
647200 |
# we need /usr/sbin/semanage program which is available on different
|
|
|
647200 |
# packages depending on distribution
|
|
|
ece5fe |
Requires(posttrans): /usr/sbin/semanage
|
|
|
647200 |
Requires(postun): /usr/sbin/semanage
|
|
|
647200 |
|
|
|
647200 |
ExclusiveArch: x86_64
|
|
|
647200 |
|
|
|
647200 |
%description
|
|
|
647200 |
An agent, running on a guest, sending video streams of the X display to a
|
|
|
647200 |
remote client (over SPICE).
|
|
|
647200 |
|
|
|
647200 |
%package devel
|
|
|
647200 |
Requires: spice-protocol >= 0.12.14
|
|
|
647200 |
Requires: pkgconfig
|
|
|
647200 |
Summary: SPICE streaming agent development files
|
|
|
647200 |
|
|
|
647200 |
%description devel
|
|
|
647200 |
This package contains necessary header files to build SPICE streaming
|
|
|
647200 |
agent plugins.
|
|
|
647200 |
|
|
|
647200 |
%prep
|
|
|
647200 |
%setup -q
|
|
|
647200 |
%patch1 -p1
|
|
|
647200 |
%patch2 -p1
|
|
|
647200 |
%patch3 -p1
|
|
|
647200 |
%patch4 -p1
|
|
|
647200 |
|
|
|
647200 |
%build
|
|
|
647200 |
%configure --enable-tests --with-udevrulesdir=%{_udevrulesdir}
|
|
|
647200 |
make %{?_smp_mflags} V=1
|
|
|
647200 |
|
|
|
647200 |
%check
|
|
|
647200 |
make check
|
|
|
647200 |
|
|
|
647200 |
%install
|
|
|
647200 |
make install DESTDIR=%{buildroot} V=1
|
|
|
647200 |
if test -d "%{buildroot}/%{_libdir}/%{name}/plugins"; then
|
|
|
647200 |
find %{buildroot}/%{_libdir}/%{name}/plugins -name '*.la' -delete
|
|
|
647200 |
fi
|
|
|
647200 |
|
|
|
ece5fe |
# See rhbz#1647789 - call semanage in posttrans, not in post.
|
|
|
ece5fe |
# https://fedoraproject.org/wiki/Packaging:Scriptlets
|
|
|
ece5fe |
%posttrans
|
|
|
647200 |
semanage fcontext -a -t xserver_exec_t %{_bindir}/spice-streaming-agent 2>/dev/null || :
|
|
|
647200 |
restorecon %{_bindir}/spice-streaming-agent || :
|
|
|
647200 |
|
|
|
647200 |
%postun
|
|
|
647200 |
if [ $1 -eq 0 ] ; then # final removal
|
|
|
647200 |
semanage fcontext -d -t xserver_exec_t %{_bindir}/spice-streaming-agent 2>/dev/null || :
|
|
|
647200 |
fi
|
|
|
647200 |
|
|
|
647200 |
|
|
|
647200 |
%files
|
|
|
647200 |
%doc COPYING NEWS README
|
|
|
647200 |
%{_udevrulesdir}/90-spice-guest-streaming.rules
|
|
|
647200 |
%{_bindir}/spice-streaming-agent
|
|
|
647200 |
%{_sysconfdir}/xdg/autostart/spice-streaming.desktop
|
|
|
647200 |
%{_datadir}/gdm/greeter/autostart/spice-streaming.desktop
|
|
|
647200 |
|
|
|
647200 |
%files devel
|
|
|
647200 |
%defattr(-,root,root,-)
|
|
|
647200 |
%{_includedir}
|
|
|
647200 |
%{_libdir}/pkgconfig
|
|
|
647200 |
|
|
|
647200 |
%changelog
|
|
|
ece5fe |
* Wed Apr 10 2019 Uri Lublin <uril@redhat.com> - 0.2-4
|
|
|
ece5fe |
- Call semanage in posttrans, not in post
|
|
|
ece5fe |
Resolves: rhbz#1647789
|
|
|
ece5fe |
|
|
|
647200 |
* Wed Aug 1 2018 Uri Lublin <uril@redhat.com> - 0.2-3
|
|
|
647200 |
- Fix coverity issue
|
|
|
647200 |
Related: rhbz#1479294
|
|
|
647200 |
|
|
|
647200 |
* Wed Aug 1 2018 Uri Lublin <uril@redhat.com> - 0.2-2
|
|
|
647200 |
- Fix coverity issues
|
|
|
647200 |
- Fix mjpeg encoder
|
|
|
647200 |
Related: rhbz#1479294
|
|
|
647200 |
|
|
|
647200 |
* Thu May 31 2018 Uri Lublin <uril@redhat.com> - 0.2-1
|
|
|
647200 |
- First release
|
|
|
647200 |
Related: rhbz#1479294
|
|
|
647200 |
|
|
|
647200 |
* Wed Aug 16 2017 Frediano Ziglio <fziglio@redhat.com> - 0.1-1
|
|
|
647200 |
- Initial package (pre-release)
|