build deb packages using debbuild
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
5b11def4c8
commit
e9d68b4a3c
35
conmon.spec
35
conmon.spec
@ -9,21 +9,33 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global built_tag v2.1.1
|
%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
|
Name: conmon
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Version: %{gen_version}
|
Version: 2.1.1
|
||||||
Release: %autorelease
|
%if "%{_vendor}" == "debbuild"
|
||||||
Summary: OCI container runtime monitor
|
Packager: Lokesh Mandvekar <https://github.com/lsm5>
|
||||||
|
License: ASL-2.0+
|
||||||
|
Release: 0%{?dist}
|
||||||
|
%else
|
||||||
License: ASL 2.0
|
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
|
Source0: %{url}/archive/%{built_tag}.tar.gz
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: git
|
|
||||||
BuildRequires: glib2-devel
|
|
||||||
BuildRequires: go-md2man
|
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: libseccomp-devel
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
BuildRequires: systemd-libs
|
BuildRequires: systemd-libs
|
||||||
@ -31,12 +43,13 @@ BuildRequires: make
|
|||||||
Requires: glib2
|
Requires: glib2
|
||||||
Requires: systemd-libs
|
Requires: systemd-libs
|
||||||
Requires: libseccomp
|
Requires: libseccomp
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -Sgit -n %{name}-%{built_tag_strip}
|
%autosetup -Sgit
|
||||||
sed -i 's/install.bin: bin\/conmon/install.bin:/' Makefile
|
sed -i 's/install.bin: bin\/conmon/install.bin:/' Makefile
|
||||||
sed -i 's/install.crio: bin\/conmon/install.crio:/' 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
|
%{_mandir}/man8/%{name}.8.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
%if "%{_vendor}" != "debbuild"
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user