# This package provides H.264 and VP8 support for Xpra. # # While libvpx is available in Fedora, xpra needs libswscale from ffmpeg "for # converting BGRA pixels from the X11 server into a YCbCr 420 planar", so vpx # support must be shipped in RPMFusion still. :-( # Remove private provides from .so files in the python_sitearch directory %global __provides_exclude_from ^%{python_sitearch}/.*\\.so$ Name: xpra-codecs-freeworld Version: 0.10.6 Release: 1%{?dist} Summary: Additional codecs for xpra License: GPLv2+ URL: http://www.xpra.org/ Source0: http://xpra.org/src/xpra-%{version}.tar.xz BuildRequires: python2-devel pygobject2-devel pygtk2-devel BuildRequires: libXtst-devel BuildRequires: Cython BuildRequires: x264-devel BuildRequires: ffmpeg-devel BuildRequires: libvpx-devel Requires: xpra >= %{version} Requires: gstreamer-plugins-ugly %description Provides support for H.264 AVC and VP8 in xpra. %prep %setup -q -n xpra-%{version} %build CFLAGS="%{optflags}" %{__python} setup.py build %install mkdir destdir %{__python} setup.py install --skip-build --root destdir mkdir -p %{buildroot}%{python_sitearch}/xpra/codecs/ pushd destdir%{python_sitearch}/xpra/codecs/ cp -pr csc_swscale dec_avcodec enc_x264 vpx \ %{buildroot}%{python_sitearch}/xpra/codecs/ popd #drop shebangs from python_sitearch find %{buildroot}%{python_sitearch}/xpra -name '*.py' \ -exec sed -i '1{\@^#!/usr/bin/env python@d}' {} \; #fix permissions on shared objects find %{buildroot}%{python_sitearch}/xpra -name '*.so' \ -exec chmod 0755 {} \; %files %{python_sitearch}/xpra/codecs/* %doc COPYING %changelog * Fri Oct 18 2013 T.C. Hollingsworth - 0.10.6-1 - new upstream release 0.10.6 http://lists.devloop.org.uk/pipermail/shifter-users/2013-October/000726.html * Tue Oct 08 2013 T.C. Hollingsworth - 0.10.4-2 - ship webp support in Fedora package (it is actually useful there) - include explanation from upstream as to why libswscale is required - require gstreamer-plugins-ugly (for MP3 audio streams) * Mon Oct 07 2013 T.C. Hollingsworth - 0.10.4-1 - rebase to 0.10.4 - loosen dependency on main xpra package - add comment explaining libvpx situation * Thu Mar 28 2013 T.C. Hollingsworth - 0.8.8-2 - split off plugins that can't be in Fedora proper * Thu Mar 14 2013 T.C. Hollingsworth - 0.8.8-1 - initial package