Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Staging:B
skopeo
skopeo.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File skopeo.spec of Package skopeo
# # spec file for package skopeo # # Copyright (c) 2017 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/ # # nodebuginfo # Don't enable ostree by default, as libostree is only available in tumbleweed. %bcond_with ostree # Don't enable storage by default, as it's not really widely used (and it's # also an _incredibly_ dodgy feature -- it effectively is used to hack around # Docker's graphdrivers). %bcond_with storage Name: skopeo Version: 0.1.26 Release: 0 Summary: Container image repository tool License: Apache-2.0 Group: System/Management Url: https://github.com/projectatomic/skopeo Source: %{name}-%{version}.tar.xz BuildRequires: go >= 1.5 BuildRequires: go-go-md2man BuildRequires: libgpgme-devel # Required for containers/storage integration. %if 0%{with storage} BuildRequires: device-mapper-devel >= 1.2.68 BuildRequires: glib2-devel BuildRequires: libbtrfs-devel >= 3.8 %endif %if 0%{with ostree} BuildRequires: libostree-devel %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build ExcludeArch: s390 %description skopeo is a command line utility for various operations on container images and image repositories. skopeo is able to inspect a repository on a Docker registry and fetch images layers. skopeo can copy container images between various storage mechanisms. %prep %setup -q %build mkdir -p .gopath/src/github.com/projectatomic ln -s $PWD .gopath/src/github.com/projectatomic/skopeo export GOPATH=$PWD/.gopath export BUILDTAGS="exclude_graphdriver_aufs" %if 0%{?suse_version} <= 1320 BUILDTAGS+=" libdm_no_deferred_remove" %endif %if ! 0%{with ostree} BUILDTAGS+=" containers_image_ostree_stub" %endif %if ! 0%{with storage} BUILDTAGS+=" containers_image_storage_stub" %endif # Build. go build -buildmode=pie -ldflags "-X main.gitCommit=" -gcflags "" -tags "$BUILDTAGS" -o skopeo github.com/projectatomic/skopeo/cmd/skopeo make docs %install # Install the binary. install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}" install -D -m 0644 default-policy.json "%{buildroot}/etc/containers/policy.json" make INSTALLDIR="%{buildroot}/%{_bindir}" install-binary # Install the docs. make MANINSTALLDIR="%{buildroot}/%{_mandir}" install-docs %files %defattr(-,root,root) %doc LICENSE README.md %{_bindir}/%{name} %dir /etc/containers %config /etc/containers/policy.json %{_mandir}/man1/skopeo.1* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor