Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Coverity

on:
push:
branches: [main]
branches:
- coverity
# - main

jobs:
coverity:
Expand Down
11 changes: 5 additions & 6 deletions make-srpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ fi
cat > "$SPEC" << EOF
# Disable in source builds on EPEL <9
%undefine __cmake_in_source_build
%undefine __cmake3_in_source_build

Name: $PKG
Version: $VER
Expand All @@ -102,7 +101,7 @@ URL: https://github.com/csutils/%{name}
Source0: https://github.com/csutils/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz

BuildRequires: asciidoc
BuildRequires: cmake3
BuildRequires: cmake
BuildRequires: gcc

# csmock copies the resulting cscppc binary into mock chroot, which may contain
Expand Down Expand Up @@ -165,19 +164,19 @@ in background fully transparently.
%autosetup

%build
%cmake3 \\
%cmake \\
-DPATH_TO_CSCPPC=\"%{_libdir}/cscppc\" \\
-DPATH_TO_CSCLNG=\"%{_libdir}/csclng\" \\
-DPATH_TO_CSGCCA=\"%{_libdir}/csgcca\" \\
-DPATH_TO_CSMATCH=\"%{_libdir}/csmatch\" \\
-DSTATIC_LINKING=ON
%cmake3_build
%cmake_build

%check
%ctest3
%ctest

%install
%cmake3_install
%cmake_install

install -m0755 -d "%{buildroot}%{_libdir}"{,/cs{cppc,clng,gcca,match}}

Expand Down