SHA256
1
0
forked from pool/xpra

Accepting request 891275 from home:dirkmueller:Factory

- fix build on architectures without pandoc

OBS-URL: https://build.opensuse.org/request/show/891275
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xpra?expand=0&rev=80
This commit is contained in:
Luigi Baldoni 2021-05-07 11:52:35 +00:00 committed by Git OBS Bridge
parent 9ca626f159
commit d1ba64014e
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 7 11:23:54 UTC 2021 - Dirk Müller <dmueller@suse.com>
- fix build on architectures without pandoc
-------------------------------------------------------------------
Fri Apr 23 09:09:12 UTC 2021 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -17,6 +17,11 @@
#
%ifarch x86_64 ppc64 s390x aarch64 riscv64
%global with_pandoc 1
%endif
%bcond_with pandoc
%define xpra_ver 4.1.3
%define html5_ver 4.1.2
%define uglifyjs_ver 3.13.4
@ -43,7 +48,9 @@ BuildRequires: hicolor-icon-theme
# Needed by uglify-js
BuildRequires: nodejs-common
BuildRequires: pam-devel
%if %{with pandoc}
BuildRequires: pandoc
%endif
BuildRequires: pkgconfig
BuildRequires: python3-Cython >= 0.20.0
BuildRequires: python3-devel
@ -161,6 +168,9 @@ python3 setup.py build \
--with-service \
--without-cuda_kernels \
--without-nvenc \
%if !%{with pandoc}
--without-docs \
%endif
--without-nvfbc
%install
@ -171,6 +181,9 @@ python3 setup.py install \
--with-service \
--with-Xdummy \
--with-Xdummy_wrapper \
%if !%{with pandoc}
--without-docs \
%endif
--verbose
pushd %{name}-html5-%{html5_ver}
@ -206,7 +219,9 @@ mkdir -p %{_rundir}/%{name} || exit 1
%files
%doc docs/README.md docs/CHANGELOG.md
%if %{with pandoc}
%doc %{_defaultdocdir}/xpra
%endif
%license COPYING
%dir %{_datadir}/xpra
%dir %{_prefix}/lib/xpra