Accepting request 1038948 from home:dirkmueller:Factory
- add devel subpackage, which is needed by open-vm-tools OBS-URL: https://build.opensuse.org/request/show/1038948 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/containerd?expand=0&rev=136
This commit is contained in:
parent
a0bbb68666
commit
fe587c9853
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 29 16:01:11 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add devel subpackage, which is needed by open-vm-tools
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 7 07:22:02 UTC 2022 - Aleksa Sarai <asarai@suse.com>
|
Tue Jun 7 07:22:02 UTC 2022 - Aleksa Sarai <asarai@suse.com>
|
||||||
|
|
||||||
|
@ -26,6 +26,9 @@
|
|||||||
%define git_version 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
|
%define git_version 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
|
||||||
%define git_short 10c12954828e
|
%define git_short 10c12954828e
|
||||||
|
|
||||||
|
%global provider_prefix github.com/containerd/containerd
|
||||||
|
%global import_path %{provider_prefix}
|
||||||
|
|
||||||
Name: containerd
|
Name: containerd
|
||||||
Version: 1.6.6
|
Version: 1.6.6
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -39,12 +42,11 @@ Source2: %{name}.service
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: glibc-devel-static
|
BuildRequires: glibc-devel-static
|
||||||
BuildRequires: go-go-md2man
|
BuildRequires: go-go-md2man
|
||||||
|
BuildRequires: golang-packaging
|
||||||
BuildRequires: libbtrfs-devel >= 3.8
|
BuildRequires: libbtrfs-devel >= 3.8
|
||||||
BuildRequires: libseccomp-devel >= 2.2
|
BuildRequires: libseccomp-devel >= 2.2
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
# Due to a limitation in openSUSE's Go packaging we cannot have a BuildRequires
|
BuildRequires: golang(API) = 1.18
|
||||||
# for 'golang(API) >= 1.18' here, so just require 1.18 exactly. bsc#1172608
|
|
||||||
BuildRequires: go1.18
|
|
||||||
# We provide a git revision so that Docker can require it properly.
|
# We provide a git revision so that Docker can require it properly.
|
||||||
Provides: %{name}-git = %{git_version}
|
Provides: %{name}-git = %{git_version}
|
||||||
# Currently runc is the only supported runtime for containerd. We pin the same
|
# Currently runc is the only supported runtime for containerd. We pin the same
|
||||||
@ -80,10 +82,20 @@ Obsoletes: %{name}-ctr_2a5e70c
|
|||||||
Standalone client for containerd, which allows management of containerd containers
|
Standalone client for containerd, which allows management of containerd containers
|
||||||
separately from Docker.
|
separately from Docker.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Source code for containerd
|
||||||
|
Group: Development/Libraries/Go
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains the source code needed for building packages that
|
||||||
|
reference the following Go import paths: github.com/containerd/containerd
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}_%{git_short}
|
%setup -q -n %{name}-%{version}_%{git_short}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%goprep %{import_path}
|
||||||
BUILDTAGS="apparmor selinux seccomp"
|
BUILDTAGS="apparmor selinux seccomp"
|
||||||
make \
|
make \
|
||||||
BUILDTAGS="$BUILDTAGS" \
|
BUILDTAGS="$BUILDTAGS" \
|
||||||
@ -95,6 +107,7 @@ make \
|
|||||||
cp -r "$PROJECT/bin" bin
|
cp -r "$PROJECT/bin" bin
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%gosrc
|
||||||
# Install binaries.
|
# Install binaries.
|
||||||
pushd bin/
|
pushd bin/
|
||||||
for bin in containerd{,-shim*}
|
for bin in containerd{,-shim*}
|
||||||
@ -153,4 +166,10 @@ install -Dp -m644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
|
|||||||
# TODO: Fix man page generation.
|
# TODO: Fix man page generation.
|
||||||
#%{_mandir}/man1/*ctr.1*
|
#%{_mandir}/man1/*ctr.1*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%license LICENSE
|
||||||
|
%dir %{go_contribsrcdir}/github.com
|
||||||
|
%dir %{go_contribsrcdir}/github.com/containerd
|
||||||
|
%{go_contribsrcdir}/%{import_path}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user