[packages/xpra] - disable x265 support on arch < i586 - rel 3
baggins
baggins at pld-linux.org
Sat Oct 11 19:18:53 CEST 2014
commit eeadf629799597cafe285005c79a8d4068f7bca2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Oct 11 19:18:29 2014 +0200
- disable x265 support on arch < i586
- rel 3
xpra.spec | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/xpra.spec b/xpra.spec
index 5a7d3d3..2bf7c0a 100644
--- a/xpra.spec
+++ b/xpra.spec
@@ -14,12 +14,17 @@
%bcond_without vpx # VPX/WebM support
%bcond_without webp # WebP support
%bcond_without x264 # x264 encoding
+%bcond_without x265 # x265 encoding
+
+%ifarch i386 i486
+%undefine with_x265
+%endif
Summary: Xpra gives you "persistent remote applications" for X
Summary(pl.UTF-8): Xpra - "stałe zdalne aplikacje" dla X
Name: xpra
Version: 0.13.6
-Release: 2
+Release: 3
License: GPL v2+
Group: X11/Applications/Networking
Source0: http://xpra.org/src/%{name}-%{version}.tar.xz
@@ -34,7 +39,7 @@ BuildRequires: gtk+2-devel >= 2.0
BuildRequires: libvpx-devel >= 1.0
BuildRequires: libwebp-devel >= 0.3
BuildRequires: libx264-devel
-BuildRequires: libx265-devel
+%{?with_x265:BuildRequires: libx265-devel}
BuildRequires: pkgconfig
BuildRequires: python-Cython >= 0.14.0
BuildRequires: python-devel >= 1:2.6
@@ -101,6 +106,7 @@ CFLAGS="%{rpmcflags}" \
%{__with_without vpx} \
%{__with_without webp} \
%{__with_without x264 enc_x264} \
+ %{__with_without x265 enc_x265} \
--with-Xdummy \
--with-argb \
--with-cyxor \
@@ -171,9 +177,11 @@ rm -rf $RPM_BUILD_ROOT
%dir %{py_sitedir}/xpra/codecs/enc_x264
%attr(755,root,root) %{py_sitedir}/xpra/codecs/enc_x264/encoder.so
%{py_sitedir}/xpra/codecs/enc_x264/__init__.py[co]
+%if %{with x265}
%dir %{py_sitedir}/xpra/codecs/enc_x265
%attr(755,root,root) %{py_sitedir}/xpra/codecs/enc_x265/encoder.so
%{py_sitedir}/xpra/codecs/enc_x265/__init__.py[co]
+%endif
%dir %{py_sitedir}/xpra/codecs/vpx
%attr(755,root,root) %{py_sitedir}/xpra/codecs/vpx/decoder.so
%attr(755,root,root) %{py_sitedir}/xpra/codecs/vpx/encoder.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xpra.git/commitdiff/eeadf629799597cafe285005c79a8d4068f7bca2
More information about the pld-cvs-commit
mailing list