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 built_tag 1.4.5
|
||||||
%global gen_version %(b=%{built_tag}; echo ${b/-/"~"})
|
|
||||||
|
|
||||||
Summary: OCI runtime written in C
|
Summary: OCI runtime written in C
|
||||||
Name: crun
|
Name: crun
|
||||||
Version: %{gen_version}
|
Version: 1.4.5
|
||||||
Release: %autorelease
|
|
||||||
URL: https://github.com/containers/%{name}
|
URL: https://github.com/containers/%{name}
|
||||||
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
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+
|
License: GPLv2+
|
||||||
|
Release: %autorelease
|
||||||
# We always run autogen.sh
|
%endif
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
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: gcc
|
||||||
|
BuildRequires: git-core
|
||||||
BuildRequires: python3
|
BuildRequires: python3
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
@ -20,21 +34,20 @@ BuildRequires: yajl-devel
|
|||||||
BuildRequires: libseccomp-devel
|
BuildRequires: libseccomp-devel
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
BuildRequires: python3-libmount
|
BuildRequires: python3-libmount
|
||||||
BuildRequires: libtool
|
|
||||||
BuildRequires: go-md2man
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: glibc-static
|
BuildRequires: glibc-static
|
||||||
BuildRequires: protobuf-c-devel
|
BuildRequires: protobuf-c-devel
|
||||||
%ifnarch %ix86
|
%ifnarch %ix86
|
||||||
BuildRequires: criu-devel >= 3.15
|
BuildRequires: criu-devel >= 3.15
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
Provides: oci-runtime
|
Provides: oci-runtime
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{name} is a runtime for running OCI containers
|
%{name} is a runtime for running OCI containers
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{name}-%{version}
|
%autosetup -Sgit
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
@ -52,4 +65,6 @@ rm -rf %{buildroot}%{_prefix}/lib*
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
%if "%{_vendor}" != "debbuild"
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user