|
|
e22b63 |
Name: spice-streaming-agent
|
|
|
880dbd |
Version: 0.3
|
|
|
880dbd |
Release: 2%{?dist}
|
|
|
e22b63 |
Summary: SPICE streaming agent
|
|
|
e22b63 |
Group: Applications/System
|
|
|
e22b63 |
License: ASL 2.0
|
|
|
e22b63 |
URL: https://www.redhat.com
|
|
|
e22b63 |
Source0: %{name}-%{version}.tar.xz
|
|
|
880dbd |
BuildRequires: spice-protocol >= 0.12.16
|
|
|
e22b63 |
BuildRequires: libX11-devel libXfixes-devel
|
|
|
e22b63 |
BuildRequires: libjpeg-turbo-devel
|
|
|
e22b63 |
BuildRequires: catch-devel
|
|
|
e22b63 |
BuildRequires: pkgconfig(udev)
|
|
|
880dbd |
BuildRequires: libdrm-devel
|
|
|
880dbd |
BuildRequires: libXrandr-devel
|
|
|
880dbd |
BuildRequires: gcc-c++
|
|
|
880dbd |
BuildRequires: diffutils
|
|
|
880dbd |
BuildRequires: gstreamer1-devel gstreamer1-plugins-base-devel
|
|
|
e22b63 |
# we need /usr/sbin/semanage program which is available on different
|
|
|
e22b63 |
# packages depending on distribution
|
|
|
e22b63 |
Requires(post): /usr/sbin/semanage
|
|
|
e22b63 |
Requires(postun): /usr/sbin/semanage
|
|
|
e22b63 |
|
|
|
2c51a5 |
ExclusiveArch: x86_64 %{arm}
|
|
|
880dbd |
|
|
|
880dbd |
# Downstream: remove H264 and set VP8 as the default codec
|
|
|
880dbd |
Patch0100: 0100-gst-plugin-make-VP8-the-default-codec-downstream.patch
|
|
|
880dbd |
Patch0101: 0101-gst-plugin-remove-H264-and-H265-downstream.patch
|
|
|
e22b63 |
|
|
|
e22b63 |
%description
|
|
|
e22b63 |
An agent, running on a guest, sending video streams of the X display to a
|
|
|
e22b63 |
remote client (over SPICE).
|
|
|
e22b63 |
|
|
|
e22b63 |
%package devel
|
|
|
880dbd |
Requires: spice-protocol >= 0.12.16
|
|
|
e22b63 |
Requires: pkgconfig
|
|
|
880dbd |
Requires: libX11-devel
|
|
|
e22b63 |
Summary: SPICE streaming agent development files
|
|
|
e22b63 |
|
|
|
e22b63 |
%description devel
|
|
|
e22b63 |
This package contains necessary header files to build SPICE streaming
|
|
|
e22b63 |
agent plugins.
|
|
|
e22b63 |
|
|
|
e22b63 |
%prep
|
|
|
e22b63 |
%setup -q
|
|
|
880dbd |
%patch100 -p1
|
|
|
880dbd |
%patch101 -p1
|
|
|
e22b63 |
|
|
|
e22b63 |
%build
|
|
|
880dbd |
%configure --enable-tests --with-udevrulesdir=%{_udevrulesdir} --enable-gst-plugin=yes
|
|
|
e22b63 |
make %{?_smp_mflags} V=1
|
|
|
e22b63 |
|
|
|
e22b63 |
%check
|
|
|
e22b63 |
make check
|
|
|
e22b63 |
|
|
|
e22b63 |
%install
|
|
|
e22b63 |
make install DESTDIR=%{buildroot} V=1
|
|
|
e22b63 |
if test -d "%{buildroot}/%{_libdir}/%{name}/plugins"; then
|
|
|
e22b63 |
find %{buildroot}/%{_libdir}/%{name}/plugins -name '*.la' -delete
|
|
|
e22b63 |
fi
|
|
|
e22b63 |
|
|
|
e22b63 |
%post
|
|
|
e22b63 |
semanage fcontext -a -t xserver_exec_t %{_bindir}/spice-streaming-agent 2>/dev/null || :
|
|
|
e22b63 |
restorecon %{_bindir}/spice-streaming-agent || :
|
|
|
e22b63 |
|
|
|
e22b63 |
%postun
|
|
|
e22b63 |
if [ $1 -eq 0 ] ; then # final removal
|
|
|
e22b63 |
semanage fcontext -d -t xserver_exec_t %{_bindir}/spice-streaming-agent 2>/dev/null || :
|
|
|
e22b63 |
fi
|
|
|
e22b63 |
|
|
|
e22b63 |
|
|
|
e22b63 |
%files
|
|
|
e22b63 |
%doc COPYING NEWS README
|
|
|
e22b63 |
%{_udevrulesdir}/90-spice-guest-streaming.rules
|
|
|
e22b63 |
%{_bindir}/spice-streaming-agent
|
|
|
e22b63 |
%{_sysconfdir}/xdg/autostart/spice-streaming.desktop
|
|
|
e22b63 |
%{_datadir}/gdm/greeter/autostart/spice-streaming.desktop
|
|
|
880dbd |
%{_mandir}/man1/spice-streaming-agent.1.gz
|
|
|
880dbd |
%{_libdir}/%{name}/plugins/*.so
|
|
|
880dbd |
|
|
|
e22b63 |
|
|
|
e22b63 |
%files devel
|
|
|
e22b63 |
%defattr(-,root,root,-)
|
|
|
e22b63 |
%{_includedir}
|
|
|
e22b63 |
%{_libdir}/pkgconfig
|
|
|
e22b63 |
|
|
|
e22b63 |
%changelog
|
|
|
880dbd |
* Thu Dec 12 2019 Uri Lublin <uril@redhat.com> - 0.3-2
|
|
|
880dbd |
- Update to 0.3 release
|
|
|
880dbd |
- Resolves: rhbz#1774123
|
|
|
880dbd |
- Resolves: rhbz#1774129
|
|
|
880dbd |
|
|
|
e22b63 |
* Wed Aug 1 2018 Uri Lublin <uril@redhat.com> - 0.2-3
|
|
|
e22b63 |
- Rebuild for rhel-8
|
|
|
e22b63 |
Related: rhbz#1614485
|
|
|
e22b63 |
|
|
|
e22b63 |
* Wed Aug 16 2017 Frediano Ziglio <fziglio@redhat.com> - 0.1-1
|
|
|
e22b63 |
- Initial package (pre-release)
|