Skip to content

Commit f729c24

Browse files
committed
packages CHANGE support bindings for CentOS 7
1 parent 3c4d7de commit f729c24

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/libyang.spec.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Source1: @[email protected]
88
License: BSD-3-Clause
99
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
1010

11-
%if (0%{?rhel} && 0%{?rhel} < 8) || (0%{?fedora} && 0%{?fedora} < 27)
11+
%if 0%{?scientificlinux_version} == 700
1212
%define with_lang_bind 0
1313
%else
1414
%define with_lang_bind 1
@@ -22,10 +22,15 @@ BuildRequires: gcc
2222
BuildRequires: libcmocka-devel
2323

2424
%if %{with_lang_bind}
25+
2526
BuildRequires: gcc-c++
27+
%if 0%{?centos_version}
28+
BuildRequires: swig3 >= 3.0.12
29+
%else
2630
BuildRequires: swig >= 3.0.12
31+
%endif
2732

28-
%if 0%{?suse_version} + 0%{?fedora} > 0
33+
%if 0%{?suse_version} + 0%{?fedora} + 0%{?centos_version} > 0
2934
BuildRequires: python3-devel
3035
%else
3136
BuildRequires: python36-devel

0 commit comments

Comments
 (0)