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