add systemd to BuildRequires to fix install/uninstall errors

(cherry picked from commit a0c94bfcb8a5db178067981e3764bc417e07ada8)
This commit is contained in:
Vchanger 2022-11-15 12:10:52 +08:00 committed by openeuler-sync-bot
parent 42b374af38
commit dc99bac5f8

View File

@ -4,12 +4,12 @@
Summary: Intelligent ops toolkit for openEuler
Name: gala-gopher
Version: 1.0.0
Release: 3
Release: 4
License: Mulan PSL v2
URL: https://gitee.com/openeuler/gala-gopher
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_builddir}/%{name}-%{version}
BuildRequires: cmake gcc-c++ yum elfutils-devel
BuildRequires: systemd cmake gcc-c++ yum elfutils-devel
BuildRequires: clang >= 10.0.1 llvm
BuildRequires: libconfig-devel librdkafka-devel libmicrohttpd-devel
BuildRequires: uthash-devel libbpf libbpf-devel log4cplus-devel
@ -29,10 +29,7 @@ patch2: fix-pgsliprobe.patch
gala-gopher is a low-overhead eBPF-based probes framework
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%autosetup -n %{name}-%{version} -p1
%build
pushd build
@ -73,6 +70,10 @@ popd
/usr/lib/systemd/system/gala-gopher.service
%changelog
* Tue Nov 15 2022 Zhen Chen <chenzhen126@huawei.com> - 1.0.0-4
- add systemd to BuildRequires to fix install/uninstall errors
simplify patch application in %prep
* Mon Nov 14 2022 Zhen Chen <chenzhen126@huawei.com> - 1.0.0-3
- fix pgsliprobe