forked from pool/buildah
Accepting request 589926 from devel:CaaSP:Head:ControllerNode
- Package buildah v0.12. Buildah is a tool to build OCI images, and is used by podman-build. OBS-URL: https://build.opensuse.org/request/show/589926 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/buildah?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
20
_service
Normal file
20
_service
Normal file
@@ -0,0 +1,20 @@
|
||||
<services>
|
||||
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="url">https://github.com/projectatomic/buildah.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="filename">buildah</param>
|
||||
<param name="versionformat">git.%H</param>
|
||||
<param name="revision">v0.12</param>
|
||||
</service>
|
||||
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
|
||||
<service name="set_version" mode="disabled">
|
||||
<param name="basename">docker</param>
|
||||
</service>
|
||||
|
||||
</services>
|
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bce652912e6dbced95c2510cddad8d94f6337c9fc2f6a8878683fc5278a623ae
|
||||
size 1624576
|
4
buildah-rpmlintrc
Normal file
4
buildah-rpmlintrc
Normal file
@@ -0,0 +1,4 @@
|
||||
addFilter (".* W: explicit-lib-dependency libcontainers-common")
|
||||
addFilter (".* W: explicit-lib-dependency libcontainers-image")
|
||||
addFilter (".* W: explicit-lib-dependency libcontainers-storage")
|
||||
addFilter (".* W: sourced-script-with-shebang /etc/bash_completion.d/buildah /bin/bash")
|
5
buildah.changes
Normal file
5
buildah.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 6 08:28:55 UTC 2018 - vrothberg@suse.com
|
||||
|
||||
- Package buildah v0.12. Buildah is a tool to build OCI images, and is used
|
||||
by podman-build.
|
117
buildah.spec
Normal file
117
buildah.spec
Normal file
@@ -0,0 +1,117 @@
|
||||
#
|
||||
# spec file for package buildah
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define project github.com/projectatomic/buildah
|
||||
%define commit e073df11aa75bd20a8e01cad1956e1fabc7c9895
|
||||
# Build with libostree-devel in Tumbleweed, Leap 15 and SLES 15
|
||||
%if 0%{?suse_version} >= 1500
|
||||
%define with_libostree 1
|
||||
%endif
|
||||
Name: buildah
|
||||
Version: 0.12
|
||||
Release: 0
|
||||
Summary: Build OCI containers
|
||||
License: Apache-2.0
|
||||
Group: System/Management
|
||||
Url: https://github.com/projectatomic/buildah
|
||||
Source0: %{name}-git.%{commit}.tar.xz
|
||||
Source1: %{name}-rpmlintrc
|
||||
BuildRequires: bash-completion
|
||||
BuildRequires: device-mapper-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: glib2-devel-static
|
||||
BuildRequires: glibc-devel-static
|
||||
BuildRequires: go-go-md2man
|
||||
BuildRequires: golang-packaging
|
||||
BuildRequires: libapparmor-devel
|
||||
BuildRequires: libassuan-devel
|
||||
BuildRequires: libbtrfs-devel
|
||||
BuildRequires: libgpgme-devel
|
||||
BuildRequires: libseccomp-devel
|
||||
BuildRequires: golang(API) >= 1.7
|
||||
Requires: libcontainers-common
|
||||
Requires: libcontainers-image
|
||||
Requires: libcontainers-storage
|
||||
Requires: runc >= 1.0.0~rc4
|
||||
%{go_nostrip}
|
||||
%if 0%{?with_libostree}
|
||||
BuildRequires: libostree-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
Buildah provides a command line tool which can be used to:
|
||||
- Create a working container, either from scratch or using an image as a
|
||||
starting point
|
||||
- Create an image, either from a working container or via the instructions in a
|
||||
Dockerfile
|
||||
- Build images in either the OCI image format or the traditional
|
||||
upstream docker image format
|
||||
- Mount a working container's root filesystem for manipulation
|
||||
- Unmount a working container's root filesystem
|
||||
- Update the contents of a container's root filesystem
|
||||
- Delete a working container or an image
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-git.%{commit}
|
||||
|
||||
%build
|
||||
# We can't use symlinks here because go-list gets confused by symlinks, so we
|
||||
# have to copy the source to $HOME/go and then use that as the GOPATH.
|
||||
export GOPATH=$HOME/go
|
||||
mkdir -pv $HOME/go/src/%{project}
|
||||
rm -rf $HOME/go/src/%{project}/*
|
||||
cp -avr * $HOME/go/src/%{project}
|
||||
cd $HOME/go/src/%{project}
|
||||
|
||||
%if 0%{?with_libostree}
|
||||
echo "Compiling with libostree support"
|
||||
export BUILDTAGS="seccomp apparmor"
|
||||
%else
|
||||
echo "Compiling without libostree support"
|
||||
export BUILDTAGS="seccomp apparmor containers_image_ostree_stub"
|
||||
%endif
|
||||
|
||||
# Build buildah
|
||||
go build -tags "$BUILDTAGS" \
|
||||
-i -ldflags '-s -w -X main.gitCommit=%{commit}' \
|
||||
-o bin/buildah \
|
||||
%{project}/cmd/buildah
|
||||
|
||||
# Build manpages
|
||||
make %{?_smp_mflags} docs
|
||||
|
||||
%check
|
||||
# Too many tests fail due to the restricted permissions in the build enviroment.
|
||||
# Updates must be tested manually.
|
||||
|
||||
%install
|
||||
cd $HOME/go/src/%{project}
|
||||
|
||||
install -D -m 0755 bin/buildah %{buildroot}/%{_bindir}/buildah
|
||||
install -d %{buildroot}/%{_mandir}/man1
|
||||
install -m 0644 docs/buildah-*.1 %{buildroot}/%{_mandir}/man1
|
||||
install -D -m 0644 contrib/completions/bash/buildah %{buildroot}/%{_sysconfdir}/bash_completion.d/buildah
|
||||
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
|
||||
%files
|
||||
%{_bindir}/buildah
|
||||
%{_mandir}/man1/buildah-*
|
||||
%config %{_sysconfdir}/bash_completion.d/buildah
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user