Skip to content

Commit d57c888

Browse files
jruzicka-nicmichalvasko
authored andcommitted
distro rpm BUGFIX CMake issues on Rocky 8
Fixes: #1983
1 parent b5bba13 commit d57c888

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

distro/pkg/rpm/libyang.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
%if 0%{?rhel} == 8
2+
%undefine __cmake_in_source_build
3+
%endif
4+
15
Name: libyang
26
Version: {{ version }}
37
Release: {{ release }}%{?dist}
@@ -49,13 +53,13 @@ written (and providing API) in C.
4953
%cmake_build
5054

5155
%if "x%{?suse_version}" == "x"
52-
cd redhat-linux-build
56+
cd %{__cmake_builddir}
5357
%endif
5458
make doc
5559

5660
%check
5761
%if "x%{?suse_version}" == "x"
58-
cd redhat-linux-build
62+
cd %{__cmake_builddir}
5963
%endif
6064
ctest --output-on-failure -V %{?_smp_mflags}
6165

0 commit comments

Comments
 (0)