build deb packages using debbuild
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
c4ffaf6186
commit
d7722b9371
31
crun.spec
31
crun.spec
@ -1,18 +1,32 @@
|
||||
%global built_tag 1.4.5
|
||||
%global gen_version %(b=%{built_tag}; echo ${b/-/"~"})
|
||||
|
||||
Summary: OCI runtime written in C
|
||||
Name: crun
|
||||
Version: %{gen_version}
|
||||
Release: %autorelease
|
||||
Version: 1.4.5
|
||||
URL: https://github.com/containers/%{name}
|
||||
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
Maintainer: Lokesh Mandvekar <https://github.com/lsm5>
|
||||
License: GPL-2.0+
|
||||
Release: 0%{?dist}
|
||||
%else
|
||||
License: GPLv2+
|
||||
|
||||
# We always run autogen.sh
|
||||
Release: %autorelease
|
||||
%endif
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: go-md2man
|
||||
BuildRequires: libtool
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
BuildRequires: git
|
||||
BuildRequires: libcap-dev
|
||||
BuildRequires: libseccomp-dev
|
||||
BuildRequires: libsystemd-dev
|
||||
BuildRequires: libyajl-dev
|
||||
BuildRequires: pkg-config
|
||||
%else
|
||||
BuildRequires: gcc
|
||||
BuildRequires: git-core
|
||||
BuildRequires: python3
|
||||
BuildRequires: libcap-devel
|
||||
BuildRequires: systemd-devel
|
||||
@ -20,21 +34,20 @@ BuildRequires: yajl-devel
|
||||
BuildRequires: libseccomp-devel
|
||||
BuildRequires: libselinux-devel
|
||||
BuildRequires: python3-libmount
|
||||
BuildRequires: libtool
|
||||
BuildRequires: go-md2man
|
||||
BuildRequires: make
|
||||
BuildRequires: glibc-static
|
||||
BuildRequires: protobuf-c-devel
|
||||
%ifnarch %ix86
|
||||
BuildRequires: criu-devel >= 3.15
|
||||
%endif
|
||||
%endif
|
||||
Provides: oci-runtime
|
||||
|
||||
%description
|
||||
%{name} is a runtime for running OCI containers
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
%autosetup -Sgit
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
@ -52,4 +65,6 @@ rm -rf %{buildroot}%{_prefix}/lib*
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
%if "%{_vendor}" != "debbuild"
|
||||
%autochangelog
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user