Accepting request 851164 from home:behrisch

- Fixing package dependencies for CentOS

OBS-URL: https://build.opensuse.org/request/show/851164
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=128
This commit is contained in:
Klaus Kämpf 2020-11-27 09:38:07 +00:00 committed by Git OBS Bridge
parent ba9671b50e
commit aca036ef9b
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 26 20:34:33 UTC 2020 - Michael Behrisch <oss@behrisch.de>
- Fixing package dependencies for CentOS
-------------------------------------------------------------------
Mon Nov 23 10:08:22 UTC 2020 - Klaus Kämpf <kkaempf@suse.com>

View File

@ -21,8 +21,10 @@
%define docpath %{_docdir}/%{name}-%{version}
BuildRequires: perl-Test-Simple
BuildRequires: perl-devel
%if 0%{?centos_version} < 800
BuildRequires: ruby
%endif
%endif
%if 0%{?suse_version} > 0
%define docpath %{_docdir}/%{name}
BuildRequires: ruby-devel
@ -48,6 +50,11 @@ BuildRequires: libtool
BuildRequires: pcre-devel
BuildRequires: perl
BuildRequires: pkgconfig
%if 0%{?centos_version} >= 800
BuildRequires: boost-devel
BuildRequires: python3-devel
BuildRequires: python3-tools
%else
%if 0%{?suse_version} >= 1500
BuildRequires: libboost_headers-devel
BuildRequires: python3-devel
@ -56,6 +63,7 @@ BuildRequires: python3-tools
BuildRequires: boost-devel
BuildRequires: python-devel > 2.6
%endif
%endif
%if %{with swig_ocaml}
BuildRequires: ncurses-devel
BuildRequires: ocaml >= 3.12.0
@ -128,7 +136,7 @@ export CCSHARED="-fPIC"
make %{?_smp_mflags}
%check
%if 0%{?suse_version} >= 1500
%if 0%{?suse_version} >= 1500 || 0%{?centos_version} >= 800
export PY3=true
%endif
make %{?_smp_mflags} check