diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2024-06-13 09:18:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 09:18:13 -0400 |
commit | 6bacccaab818f5ad823e69efdc9893660d969751 (patch) | |
tree | 497431d99968b65ae8ef279ee97fc62d048c086b /netdata.spec.in | |
parent | d6d24ff7d2e76304f710950ee38e41197bcdf7d1 (diff) |
Add openSUSE 15.6 to CI. (#17865)
* Add openSUSE 15.6 to CI.
* Fix handling of log2journal.
* Restructure conditional check.
Diffstat (limited to 'netdata.spec.in')
-rw-r--r-- | netdata.spec.in | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/netdata.spec.in b/netdata.spec.in index 04277988ac..4f98c9c813 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -99,6 +99,17 @@ AutoReqProv: yes %global _have_mongo_exporter 1 %endif +# log2journal can’t build on some systems +%if 0%{?sle_version} +%if %{sle_version} < 150600 +%global _have_log2journal 0 +%else +%global _have_log2journal 1 +%endif +%else +%global _have_log2journal 1 +%endif + # If ML hasn’t been explicitly disabled or enabled yet, enable it now. %if 0%{!?_have_ml:1} %global _have_ml 1 @@ -147,9 +158,7 @@ BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(liblz4) BuildRequires: pkgconfig(yaml-0.1) BuildRequires: pkgconfig(json-c) -%if 0%{?suse_version} -# log2journal is not available on these systems -%else +%if %{_have_log2journal} BuildRequires: pkgconfig(libpcre2-8) %endif %if 0%{?suse_version} @@ -494,9 +503,7 @@ rm -rf "${RPM_BUILD_ROOT}" %{_libdir}/%{name} %{_sbindir}/%{name} %{_sbindir}/netdatacli -%if 0%{?suse_version} -# log2journal is not available on these systems -%else +%if %{_have_log2journal} %{_sbindir}/log2journal %endif %{_sbindir}/systemd-cat-native |