mirror of https://github.com/containers/podman.git
Merge pull request #19035 from lsm5/rpm-fixes
[CI:BUILD] RPM: Fix koji and ELN issues
This commit is contained in:
commit
45eaa4d414
|
|
@ -39,6 +39,7 @@
|
||||||
%global repo_plugins dnsname
|
%global repo_plugins dnsname
|
||||||
%global git_plugins %{container_base_url}/%{repo_plugins}
|
%global git_plugins %{container_base_url}/%{repo_plugins}
|
||||||
%global commit_plugins 18822f9a4fb35d1349eb256f4cd2bfd372474d84
|
%global commit_plugins 18822f9a4fb35d1349eb256f4cd2bfd372474d84
|
||||||
|
%global import_path_plugins %{container_base_path}/%{repo_plugins}
|
||||||
|
|
||||||
# gvproxy
|
# gvproxy
|
||||||
%global repo_gvproxy gvisor-tap-vsock
|
%global repo_gvproxy gvisor-tap-vsock
|
||||||
|
|
@ -73,7 +74,7 @@ Source1: %{git_plugins}/archive/%{commit_plugins}/%{repo_plugins}-%{commit_plugi
|
||||||
Source2: %{git_gvproxy}/archive/%{commit_gvproxy}/%{repo_gvproxy}-%{commit_gvproxy}.tar.gz
|
Source2: %{git_gvproxy}/archive/%{commit_gvproxy}/%{repo_gvproxy}-%{commit_gvproxy}.tar.gz
|
||||||
Provides: %{name}-manpages = %{epoch}:%{version}-%{release}
|
Provides: %{name}-manpages = %{epoch}:%{version}-%{release}
|
||||||
BuildRequires: %{_bindir}/envsubst
|
BuildRequires: %{_bindir}/envsubst
|
||||||
BuildRequires: go-md2man
|
BuildRequires: %{_bindir}/go-md2man
|
||||||
%if %{defined build_with_btrfs}
|
%if %{defined build_with_btrfs}
|
||||||
BuildRequires: btrfs-progs-devel
|
BuildRequires: btrfs-progs-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -255,10 +256,7 @@ export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag
|
||||||
# reset LDFLAGS for plugins and gvisor binaries
|
# reset LDFLAGS for plugins and gvisor binaries
|
||||||
LDFLAGS=''
|
LDFLAGS=''
|
||||||
|
|
||||||
cd %{repo_plugins}-%{commit_plugins}
|
# build gvisor-tap-vsock binaries
|
||||||
%gobuild -o bin/dnsname ./plugins/meta/dnsname
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd %{repo_gvproxy}-%{commit_gvproxy}
|
cd %{repo_gvproxy}-%{commit_gvproxy}
|
||||||
%gobuild -o bin/gvproxy ./cmd/gvproxy
|
%gobuild -o bin/gvproxy ./cmd/gvproxy
|
||||||
%gobuild -o bin/gvforwarder ./cmd/vm
|
%gobuild -o bin/gvforwarder ./cmd/vm
|
||||||
|
|
@ -266,6 +264,19 @@ cd ..
|
||||||
|
|
||||||
%{__make} docs docker-docs
|
%{__make} docs docker-docs
|
||||||
|
|
||||||
|
# build dnsname the old way otherwise it fails on koji
|
||||||
|
cd %{repo_plugins}-%{commit_plugins}
|
||||||
|
mkdir _build
|
||||||
|
cd _build
|
||||||
|
mkdir -p src/%{container_base_path}
|
||||||
|
ln -s ../../../../ src/%{import_path_plugins}
|
||||||
|
cd ..
|
||||||
|
ln -s vendor src
|
||||||
|
export GOPATH=$(pwd)/_build:$(pwd)
|
||||||
|
%define gomodulesmode GO111MODULE=off
|
||||||
|
%gobuild -o bin/dnsname %{import_path_plugins}/plugins/meta/dnsname
|
||||||
|
cd ..
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -dp %{buildroot}%{_unitdir}
|
install -dp %{buildroot}%{_unitdir}
|
||||||
PODMAN_VERSION=%{version} %{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{_sysconfdir} \
|
PODMAN_VERSION=%{version} %{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{_sysconfdir} \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue