599352
%global with_debug 1
599352
%global with_check 0
599352
599352
%if 0%{?with_debug}
599352
%global _find_debuginfo_dwz_opts %{nil}
599352
%global _dwz_low_mem_die_limit 0
599352
%else
599352
%global debug_package %{nil}
599352
%endif
599352
599352
%if 0%{?rhel} > 7 && ! 0%{?fedora}
599352
%define gobuild(o:) \
599352
go build -buildmode pie -compiler gc -tags="rpm_crashtraceback no_openssl ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};
599352
%endif # distro
599352
599352
%global provider github
599352
%global provider_tld com
599352
%global project containers
599352
%global repo skopeo
599352
# https://github.com/containers/skopeo
599352
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
599352
%global import_path %{provider_prefix}
599352
%global git0 https://%{import_path}
599352
%global commit0 1715c9084124875cb71f006916396e3c7d03014e
599352
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
599352
599352
# manually listed arches due https://bugzilla.redhat.com/show_bug.cgi?id=1391932 (removed ppc64)
599352
# remove ix86 temporarily because go-toolset issues
599352
ExcludeArch: ppc64 %{ix86}
599352
599352
Name: %{repo}
599352
Epoch: 1
599352
Version: 0.1.32
599352
Release: 6.git%{shortcommit0}%{?dist}
599352
Summary: Inspect Docker images and repositories on registries
599352
License: ASL 2.0
599352
URL: %{git0}
599352
Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
599352
Source1: storage.conf
599352
Source2: containers-storage.conf.5.md
599352
Source3: mounts.conf
599352
Source4: registries.conf.5.md
599352
Source5: registries.conf
599352
Source6: policy.json.5.md
599352
Source7: seccomp.json
599352
BuildRequires: git
599352
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
599352
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
599352
BuildRequires: golang-github-cpuguy83-go-md2man
599352
BuildRequires: gpgme-devel
599352
BuildRequires: libassuan-devel
599352
BuildRequires: pkgconfig(devmapper)
599352
BuildRequires: ostree-devel
599352
BuildRequires: glib2-devel
599352
Requires: containers-common = %{epoch}:%{version}-%{release}
599352
599352
%description
599352
Command line utility to inspect images and repositories directly on Docker
599352
registries without the need to pull them
599352
599352
%package -n containers-common
599352
Summary: Configuration files for working with image signatures
599352
Obsoletes: atomic <= 1:1.13.1-2
599352
Conflicts: atomic-registries <= 1:1.22.1-1
599352
Obsoletes: docker-rhsubscription <= 2:1.13.1-31
599352
Provides: %{name}-containers = %{epoch}:%{version}-%{release}
599352
Obsoletes: %{name}-containers <= 1:0.1.31-3
599352
Recommends: fuse-overlayfs
599352
Recommends: slirp4netns
599352
599352
%description -n containers-common
599352
This package installs a default signature store configuration and a default
599352
policy under `/etc/containers/`.
599352
599352
%prep
599352
%autosetup -Sgit -n %{name}-%{commit0}
599352
599352
%build
599352
mkdir -p src/github.com/containers
599352
ln -s ../../../ src/%{import_path}
599352
599352
mkdir -p vendor/src
599352
for v in vendor/*; do
599352
    if test ${v} = vendor/src; then continue; fi
599352
    if test -d ${v}; then
599352
	mv ${v} vendor/src/
599352
    fi
599352
done
599352
599352
export GOPATH=$(pwd):$(pwd)/vendor:%{gopath}
599352
#make BUILDTAGS='exclude_graphdriver_btrfs' binary-local docs
599352
export BUILDTAGS="exclude_graphdriver_btrfs"
599352
%gobuild -o %{name} ./cmd/%{name}
599352
make docs
599352
599352
%install
599352
make DESTDIR=%{buildroot} install
599352
mkdir -p %{buildroot}%{_sysconfdir}
599352
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/containers/storage.conf
599352
mkdir -p %{buildroot}%{_mandir}/man5
599352
go-md2man -in %{SOURCE2} -out %{buildroot}%{_mandir}/man5/containers-storage.conf.5
599352
go-md2man -in %{SOURCE4} -out %{buildroot}%{_mandir}/man5/registries.conf.5
599352
install -p -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/containers/
599352
go-md2man -in %{SOURCE6} -out %{buildroot}%{_mandir}/man5/policy.json.5
599352
599352
mkdir -p %{buildroot}%{_datadir}/containers
599352
install -m0644 %{SOURCE3} %{buildroot}%{_datadir}/containers/mounts.conf
599352
install -m0644 %{SOURCE7} %{buildroot}%{_datadir}/containers/seccomp.json
599352
599352
# install secrets patch directory
599352
install -d -p -m 750 %{buildroot}/%{_datadir}/rhel/secrets
599352
# rhbz#1110876 - update symlinks for subscription management
599352
ln -s %{_sysconfdir}/pki/entitlement %{buildroot}%{_datadir}/rhel/secrets/etc-pki-entitlement
599352
ln -s %{_sysconfdir}/rhsm %{buildroot}%{_datadir}/rhel/secrets/rhsm
599352
ln -s %{_sysconfdir}/yum.repos.d/redhat.repo %{buildroot}%{_datadir}/rhel/secrets/rhel7.repo
599352
599352
%check
599352
%if 0%{?with_check}
599352
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
599352
%gotest %{import_path}/integration
599352
%endif
599352
599352
#define license tag if not already defined
599352
%{!?_licensedir:%global license %doc}
599352
599352
%files -n containers-common
599352
%dir %{_sysconfdir}/containers
599352
%dir %{_sysconfdir}/containers/registries.d
599352
%config(noreplace) %{_sysconfdir}/containers/policy.json
599352
%config(noreplace) %{_sysconfdir}/containers/registries.d/default.yaml
599352
%config(noreplace) %{_sysconfdir}/containers/storage.conf 
599352
%config(noreplace) %{_sysconfdir}/containers/registries.conf
599352
%dir %{_sharedstatedir}/atomic/sigstore
599352
%{_mandir}/man5/*
599352
%dir %{_datadir}/containers
599352
%{_datadir}/containers/mounts.conf
599352
%{_datadir}/containers/seccomp.json
599352
%dir %{_datadir}/rhel/secrets
599352
%{_datadir}/rhel/secrets/etc-pki-entitlement
599352
%{_datadir}/rhel/secrets/rhel7.repo
599352
%{_datadir}/rhel/secrets/rhsm
599352
599352
%files
599352
%license LICENSE
599352
%doc README.md
599352
%{_bindir}/%{name}
599352
%{_mandir}/man1/%{name}.1*
599352
%dir %{_datadir}/bash-completion
599352
%dir %{_datadir}/bash-completion/completions
599352
%{_datadir}/bash-completion/completions/%{name}
599352
599352
%changelog
599352
* Fri Jun 26 2020 Jindrich Novy <jnovy@redhat.com> - 1:0.1.32-6.git1715c90
599352
- bump release to preserve upgrade path
599352
- Related: #1821193
599352
599352
* Thu Nov 28 2019 Jindrich Novy <jnovy@redhat.com> - 1:0.1.32-4.git1715c90
599352
- rebuild because of CVE-2019-9512 and CVE-2019-9514
599352
- Resolves: #1772130, #1772135
599352
599352
* Tue Dec 18 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 1:0.1.32-3.git1715c90
599352
- rebase
599352
599352
* Mon Dec 17 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 1:0.1.32-2.git1715c90
599352
- re-enable debuginfo
599352
599352
* Mon Dec 17 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 1:0.1.31-12.gitb0b750d
599352
- go tools not in scl anymore
599352
599352
* Fri Sep 21 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.31-11.gitb0b750d
599352
- Resolves: #1615609
599352
- built upstream tag v0.1.31
599352
599352
* Thu Aug 23 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.31-10.git0144aa8
599352
- Resolves: #1616069 - correct order of registries
599352
599352
* Mon Aug 13 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.31-9.git0144aa8
599352
- Resolves: #1615609 - rebuild with gobuild tag 'no_openssl'
599352
599352
* Fri Aug 10 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.31-8.git0144aa8
599352
- Resolves: #1614934 - containers-common soft dep on slirp4netns and
599352
fuse-overlayfs
599352
599352
* Wed Aug 08 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.31-7.git0144aa8
599352
- build with %%gobuild
599352
- use scl-ized go-toolset as dep
599352
- disable i686 builds temporarily because of go-toolset issues
599352
599352
* Wed Jul 18 2018 dwalsh <dwalsh@redhat.com> - 1:0.1.31-6.git0144aa8
599352
- add statx to seccomp.json to containers-config
599352
- add seccomp.json to containers-config
599352
599352
* Tue Jul 03 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.31-4.git0144aa8
599352
- Resolves: #1597629 - handle dependency issue for skopeo-containers
599352
- rename skopeo-containers to containers-common as in Fedora
599352
599352
* Mon Jun 25 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.31-3.git0144aa8
599352
- Resolves: #1583762 - btrfs dep removal needs exclude_graphdriver_btrfs
599352
buildtag
599352
599352
* Wed Jun 13 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.31-2.git0144aa8
599352
- correct bz in previous changelog
599352
599352
* Wed Jun 13 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.31-1.git0144aa8
599352
- Resolves: #1580938 - resolve FTBFS
599352
- Resolves: #1583762 - remove dependency on btrfs-progs-devel
599352
- bump to v0.1.31 (from master)
599352
- built commit ca3bff6
599352
- use go-toolset deps for rhel8
599352
599352
* Tue Apr 03 2018 baude <bbaude@redhat.com> - 0.1.29-5.git7add6fc
599352
- Fix small typo in registries.conf
599352
599352
* Tue Apr 3 2018 dwalsh <dwalsh@redhat.com> - 0.1.29-4.git
599352
- Add policy.json.5
599352
599352
* Mon Apr 2 2018 dwalsh <dwalsh@redhat.com> - 0.1.29-3.git
599352
- Add registries.conf
599352
599352
* Mon Apr 2 2018 dwalsh <dwalsh@redhat.com> - 0.1.29-2.git
599352
- Add registries.conf man page
599352
599352
* Thu Mar 29 2018 dwalsh <dwalsh@redhat.com> - 0.1.29-1.git
599352
- bump to 0.1.29-1
599352
- Updated containers/image
599352
    docker-archive generates docker legacy compatible images
599352
    Do not create $DiffID subdirectories for layers with no configs
599352
    Ensure the layer IDs in legacy docker/tarfile metadata are unique
599352
    docker-archive: repeated layers are symlinked in the tar file
599352
    sysregistries: remove all trailing slashes
599352
    Improve docker/* error messages
599352
    Fix failure to make auth directory
599352
    Create a new slice in Schema1.UpdateLayerInfos
599352
    Drop unused storageImageDestination.{image,systemContext}
599352
    Load a *storage.Image only once in storageImageSource
599352
    Support gzip for docker-archive files
599352
    Remove .tar extension from blob and config file names
599352
    ostree, src: support copy of compressed layers
599352
    ostree: re-pull layer if it misses uncompressed_digest|uncompressed_size
599352
    image: fix docker schema v1 -> OCI conversion
599352
    Add /etc/containers/certs.d as default certs directory
599352
599352
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.28-2.git0270e56
599352
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
599352
599352
* Fri Feb 2 2018 dwalsh <dwalsh@redhat.com> - 0.1.28-1.git
599352
- Vendor in fixed libraries in containers/image and containers/storage
599352
599352
* Tue Nov 21 2017 dwalsh <dwalsh@redhat.com> - 0.1.27-1.git
599352
- Fix Conflicts to Obsoletes
599352
- Add better docs to man pages.
599352
- Use credentials from authfile for skopeo commands
599352
- Support storage="" in /etc/containers/storage.conf
599352
- Add global --override-arch and --override-os options
599352
599352
* Wed Nov 15 2017 dwalsh <dwalsh@redhat.com> - 0.1.25-2.git2e8377a7
599352
-  Add manifest type conversion to skopeo copy
599352
-  User can select from 3 manifest types: oci, v2s1, or v2s2
599352
-   e.g skopeo copy --format v2s1 --compress-blobs docker-archive:alp.tar dir:my-directory
599352
599352
* Wed Nov 8 2017 dwalsh <dwalsh@redhat.com> - 0.1.25-2.git7fd6f66b
599352
- Force storage.conf to default to overlay
599352
599352
* Wed Nov 8 2017 dwalsh <dwalsh@redhat.com> - 0.1.25-1.git7fd6f66b
599352
-   Fix CVE in tar-split
599352
-   copy: add shared blob directory support for OCI sources/destinations
599352
-   Aligning Docker version between containers/image and skopeo
599352
-   Update image-tools, and remove the duplicate Sirupsen/logrus vendor
599352
-   makefile: use -buildmode=pie
599352
  
599352
* Tue Nov 7 2017 dwalsh <dwalsh@redhat.com> - 0.1.24-8.git28d4e08a
599352
- Add /usr/share/containers/mounts.conf
599352
599352
* Sun Oct 22 2017 dwalsh <dwalsh@redhat.com> - 0.1.24-7.git28d4e08a
599352
- Bug fixes
599352
- Update to release
599352
599352
* Tue Oct 17 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.24-6.dev.git28d4e08
599352
- skopeo-containers conflicts with docker-rhsubscription <= 2:1.13.1-31
599352
599352
* Tue Oct 17 2017 dwalsh <dwalsh@redhat.com> - 0.1.24-5.dev.git28d4e08
599352
- Add rhel subscription secrets data to skopeo-containers
599352
599352
* Thu Oct 12 2017 dwalsh <dwalsh@redhat.com> - 0.1.24-4.dev.git28d4e08
599352
- Update container/storage.conf and containers-storage.conf man page
599352
- Default override to true so it is consistent with RHEL.
599352
599352
* Tue Oct 10 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.24-3.dev.git28d4e08
599352
- built commit 28d4e08
599352
599352
* Mon Sep 18 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.24-2.dev.git875dd2e
599352
- built commit 875dd2e
599352
- Resolves: gh#416
599352
599352
* Tue Sep 12 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.24-1.dev.gita41cd0
599352
- bump to 0.1.24-dev
599352
- correct a prior bogus date
599352
- fix macro in comment warning
599352
599352
* Mon Aug 21 2017 dwalsh <dwalsh@redhat.com> - 0.1.23-6.dev.git1bbd87
599352
- Change name of storage.conf.5 man page to containers-storage.conf.5, since
599352
it conflicts with inn package
599352
- Also remove default to "overalay" in the configuration, since we should
599352
- allow containers storage to pick the best default for the platform.
599352
599352
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.23-5.git1bbd87f
599352
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
599352
599352
* Sun Jul 30 2017 Florian Weimer <fweimer@redhat.com> - 0.1.23-4.git1bbd87f
599352
- Rebuild with binutils fix for ppc64le (#1475636)
599352
599352
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.23-3.git1bbd87f
599352
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
599352
599352
* Tue Jul 25 2017 dwalsh <dwalsh@redhat.com> - 0.1.23-2.dev.git1bbd87
599352
- Fix storage.conf man page to be storage.conf.5.gz so that it works.
599352
599352
* Fri Jul 21 2017 dwalsh <dwalsh@redhat.com> - 0.1.23-1.dev.git1bbd87
599352
- Support for OCI V1.0 Images
599352
- Update to image-spec v1.0.0 and revendor
599352
- Fixes for authentication
599352
599352
* Sat Jul 01 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.22-2.dev.git5d24b67
599352
- Epoch: 1 for CentOS as CentOS Extras' build already has epoch set to 1
599352
599352
* Wed Jun 21 2017 dwalsh <dwalsh@redhat.com> - 0.1.22-1.dev.git5d24b67
599352
-  Give more useful help when explaining usage
599352
-  Also specify container-storage as a valid transport
599352
-  Remove docker reference wherever possible
599352
-  vendor in ostree fixes
599352
599352
* Thu Jun 15 2017 dwalsh <dwalsh@redhat.com> - 0.1.21-1.dev.git0b73154
599352
- Add support for storage.conf and storage-config.5.md from github container storage package
599352
- Bump to the latest version of skopeo
599352
- vendor.conf: add ostree-go
599352
- it is used by containers/image for pulling images to the OSTree storage.
599352
- fail early when image os does not match host os
599352
- Improve documentation on what to do with containers/image failures in test-skopeo
599352
-   We now have the docker-archive: transport
599352
-   Integration tests with built registries also exist
599352
- Support /etc/docker/certs.d
599352
- update image-spec to v1.0.0-rc6
599352
599352
* Tue May 23 2017 bbaude <bbaude@redhat.com> - 0.1.20-1.dev.git0224d8c
599352
- BZ #1380078 - New release
599352
599352
* Tue Apr 25 2017 bbaude <bbaude@redhat.com> - 0.1.19-2.dev.git0224d8c
599352
- No golang support for ppc64.  Adding exclude arch. BZ #1445490
599352
599352
* Tue Feb 28 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.19-1.dev.git0224d8c
599352
- bump to v0.1.19-dev
599352
- built commit 0224d8c
599352
599352
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.17-3.dev.git2b3af4a
599352
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
599352
599352
* Sat Dec 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.1.17-2.dev.git2b3af4a
599352
- Rebuild for gpgme 1.18
599352
599352
* Tue Dec 06 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.17-1.dev.git2b3af4a
599352
- bump to 0.1.17-dev
599352
599352
* Fri Nov 04 2016 Antonio Murdaca <runcom@fedoraproject.org> - 0.1.14-6.git550a480
599352
- Fix BZ#1391932
599352
599352
* Tue Oct 18 2016 Antonio Murdaca <runcom@fedoraproject.org> - 0.1.14-5.git550a480
599352
- Conflicts with atomic in skopeo-containers
599352
599352
* Wed Oct 12 2016 Antonio Murdaca <runcom@fedoraproject.org> - 0.1.14-4.git550a480
599352
- built skopeo-containers
599352
599352
* Wed Sep 21 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.14-3.gitd830391
599352
- built mtrmac/integrate-all-the-things commit d830391
599352
599352
* Thu Sep 08 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.14-2.git362bfc5
599352
- built commit 362bfc5
599352
599352
* Thu Aug 11 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.14-1.gitffe92ed
599352
- build origin/master commit ffe92ed
599352
599352
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.13-6
599352
- https://fedoraproject.org/wiki/Changes/golang1.7
599352
599352
* Tue Jun 21 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.13-5
599352
- include go-srpm-macros and compiler(go-compiler) in fedora conditionals
599352
- define %%gobuild if not already
599352
- add patch to build with older version of golang
599352
599352
* Thu Jun 02 2016 Antonio Murdaca <runcom@fedoraproject.org> - 0.1.13-4
599352
- update to v0.1.12
599352
599352
* Tue May 31 2016 Antonio Murdaca <runcom@fedoraproject.org> - 0.1.12-3
599352
- fix go build source path
599352
599352
* Fri May 27 2016 Antonio Murdaca <runcom@fedoraproject.org> - 0.1.12-2
599352
- update to v0.1.12
599352
599352
* Tue Mar 08 2016 Antonio Murdaca <runcom@fedoraproject.org> - 0.1.11-1
599352
- update to v0.1.11
599352
599352
* Tue Mar 08 2016 Antonio Murdaca <runcom@fedoraproject.org> - 0.1.10-1
599352
- update to v0.1.10
599352
- change runcom -> projectatomic
599352
599352
* Mon Feb 29 2016 Antonio Murdaca <runcom@fedoraproject.org> - 0.1.9-1
599352
- update to v0.1.9
599352
599352
* Mon Feb 29 2016 Antonio Murdaca <runcom@fedoraproject.org> - 0.1.8-1
599352
- update to v0.1.8
599352
599352
* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-2
599352
- https://fedoraproject.org/wiki/Changes/golang1.6
599352
599352
* Fri Jan 29 2016 Antonio Murdaca <runcom@redhat.com> - 0.1.4
599352
- First package for Fedora