diff --git a/conmon.spec b/conmon.spec index 1624a46..0990188 100644 --- a/conmon.spec +++ b/conmon.spec @@ -9,21 +9,33 @@ %endif %global built_tag v2.1.1 -%global built_tag_strip %(b=%{built_tag}; echo ${b:1}) -%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"}) Name: conmon Epoch: 2 -Version: %{gen_version} -Release: %autorelease -Summary: OCI container runtime monitor +Version: 2.1.1 +%if "%{_vendor}" == "debbuild" +Packager: Lokesh Mandvekar +License: ASL-2.0+ +Release: 0%{?dist} +%else License: ASL 2.0 -URL: https://github.com/containers/conmon +Release: %autorelease +%endif +Summary: OCI container runtime monitor +URL: https://github.com/containers/%{name} Source0: %{url}/archive/%{built_tag}.tar.gz -BuildRequires: gcc -BuildRequires: git -BuildRequires: glib2-devel BuildRequires: go-md2man +%if "%{_vendor}" == "debbuild" +BuildRequires: git +BuildRequires: libglib2.0-dev +BuildRequires: libseccomp-dev +BuildRequires: libsystemd-dev +Requires: libglib2.0-0 +Requires: libseccomp2 +%else +BuildRequires: gcc +BuildRequires: git-core +BuildRequires: glib2-devel BuildRequires: libseccomp-devel BuildRequires: systemd-devel BuildRequires: systemd-libs @@ -31,12 +43,13 @@ BuildRequires: make Requires: glib2 Requires: systemd-libs Requires: libseccomp +%endif %description %{summary}. %prep -%autosetup -Sgit -n %{name}-%{built_tag_strip} +%autosetup -Sgit sed -i 's/install.bin: bin\/conmon/install.bin:/' Makefile sed -i 's/install.crio: bin\/conmon/install.crio:/' Makefile @@ -60,4 +73,6 @@ sed -i 's/install.crio: bin\/conmon/install.crio:/' Makefile %{_mandir}/man8/%{name}.8.gz %changelog +%if "%{_vendor}" != "debbuild" %autochangelog +%endif