Accepting request 455093 from home:cyphar:containers
- Update to umoci v0.0.0. OBS-URL: https://build.opensuse.org/request/show/455093 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/umoci?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
a824efe877
commit
dc3cba615b
15
umoci.spec
15
umoci.spec
@@ -23,18 +23,16 @@
|
||||
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
|
||||
|
||||
# Project name when using go tooling.
|
||||
%define project github.com/cyphar/umoci
|
||||
%define project github.com/openSUSE/umoci
|
||||
|
||||
Name: umoci
|
||||
Version: 0.0.0~rc3
|
||||
Version: 0.0.0
|
||||
Release: 0
|
||||
Summary: Open Container Image manipulation tool
|
||||
License: Apache-2.0
|
||||
Group: System/Management
|
||||
Url: https://github.com/cyphar/umoci
|
||||
Url: https://github.com/openSUSE/umoci
|
||||
Source: %{name}-%{version}.tar.xz
|
||||
# PATCH-FIX-UPSTREAM: Backport of cyphar/umoci#65, which is already upstream.
|
||||
Patch100: make-local-unit-tests-work-as-non-root.patch
|
||||
%ifarch %{go_arches}
|
||||
BuildRequires: go >= 1.6
|
||||
BuildRequires: go-go-md2man
|
||||
@@ -58,8 +56,6 @@ the Open Container Initiative community.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
# cyphar/umoci#65
|
||||
%patch100 -p1
|
||||
|
||||
%build
|
||||
|
||||
@@ -72,7 +68,7 @@ cp -avr * $HOME/go/src/%{project}
|
||||
|
||||
export VERSION="$(cat ./VERSION)"
|
||||
if [ "$VERSION" != "%{version}" ]; then
|
||||
VERSION+="-%{version}"
|
||||
VERSION="%{version}_suse"
|
||||
fi
|
||||
|
||||
# Build the binary.
|
||||
@@ -87,7 +83,6 @@ make doc
|
||||
# Install the binary.
|
||||
%{__install} -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
|
||||
|
||||
|
||||
# Install all of the docs.
|
||||
%ifarch %{go_arches}
|
||||
for file in man/*.1; do
|
||||
@@ -99,7 +94,7 @@ done
|
||||
|
||||
%check
|
||||
export GOPATH=$HOME/go
|
||||
go test -cover %{project}/...
|
||||
hack/test-unit.sh
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
Reference in New Issue
Block a user