Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
71af47ba78
!9 [sync] PR-7: Upgrade version to 2.1.0
From: @openeuler-sync-bot 
Reviewed-by: @gitee-cmd 
Signed-off-by: @gitee-cmd
2022-10-14 07:27:34 +00:00
lauk
5f80356d27 Upgrade version to 2.1.0
(cherry picked from commit 7a2939565c6ea77b510616dc4906089712979677)
2022-10-14 10:13:24 +08:00
openeuler-ci-bot
6f85f0f4e8 !6 [sync] PR-5: Set CFLAGS to build debug related rpm
From: @openeuler-sync-bot
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-09-10 07:25:55 +00:00
lingsheng
112ea3fc15 Set CFLAGS to build debug related rpm
(cherry picked from commit da61fd37ecfc198b40f452bac5d46e700c7af195)
2021-09-10 14:11:02 +08:00
openeuler-ci-bot
18281b6cf8 !4 增加构建依赖gcc
From: @bzg1107
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-06-02 14:52:53 +08:00
baizg1107
736bcfefdd add build requires 2021-06-02 11:05:51 +08:00
openeuler-ci-bot
26e16c9813 !2 add yaml file
Merge pull request !2 from sugarfillet/master
2020-05-19 10:15:16 +08:00
sugarfillet
dc7f2837c2 add yaml file 2020-05-08 15:53:44 +08:00
openeuler-ci-bot
79835b3174 !1 Package init
Merge pull request !1 from seki099/shijian
2019-12-24 09:15:38 +08:00
seki099
ce4586dfc5 package init 2019-12-23 20:20:53 +08:00
4 changed files with 60 additions and 0 deletions

BIN
conmon-bdb4f6e.tar.gz Normal file

Binary file not shown.

56
conmon.spec Normal file
View File

@ -0,0 +1,56 @@
Name: conmon
Epoch: 2
Version: 2.1.0
Release: 1
Summary: Monitoring program for OCI container
License: ASL 2.0
URL: https://github.com/containers/conmon
Source0: https://github.com/containers/conmon/archive/bdb4f6e56cd193d40b75ffc9725d4b74a18cb33c/conmon-bdb4f6e.tar.gz
Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz
BuildRequires: glib2-devel gcc git libseccomp-devel systemd-devel systemd-libs make golang
Requires: glib2 systemd-libs libseccomp
%description
Conmon is a monitoring program and communication tool between a container manager (like podman or CRI-O)
and an OCI runtime (like runc or crun) for a single container.
%prep
%autosetup -n conmon-bdb4f6e56cd193d40b75ffc9725d4b74a18cb33c -p1
tar -xf %SOURCE1
%build
GO_MD2MAN_PATH="$(pwd)%{_bindir}"
mkdir -p _build/bin $GO_MD2MAN_PATH
cd go-md2man-*
go build -mod=vendor -o ../_build/bin/go-md2man .
cp ../_build/bin/go-md2man $GO_MD2MAN_PATH/go-md2man
export PATH=$GO_MD2MAN_PATH:$PATH
cd -
export CFLAGS="${RPM_OPT_FLAGS}"
export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
%make_build all
%install
make PREFIX=%{buildroot}%{_prefix} install install.crio
%files
%license LICENSE
%doc README.md
%{_bindir}/conmon
%{_libexecdir}/crio/conmon
%{_mandir}/man8/*
%changelog
* Thu Mar 16 2022 liukuo <liukuo@kylinos.cn> - 2:2.1.0-1
- Upgrade version to 2.1.0
* Thu Sep 09 2021 lingsheng <lingsheng@huawei.com> - 2:2.0.2-4
- Set CFLAGS to build debug related rpm
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 2:2.0.2-3
- Add gcc in BuildRequires
* Mon Dec 23 2019 shijian <shijian16@huawei.com> - 2:2.0.2-2
- Package init

4
conmon.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: containers/conmon
tag_prefix: ^v
seperator: .

BIN
v1.0.10.tar.gz Normal file

Binary file not shown.