update to 1.5.2 and remove containers-common

This commit is contained in:
付善庆 2022-03-24 02:23:32 +00:00 committed by fu-shanqing
parent 16a6884ff8
commit 661e845377
4 changed files with 30 additions and 51 deletions

View File

@ -1,2 +0,0 @@
# # An array of host[:port] registries to try when pulling an unqualified image, in order.
unqualified-search-registries = ["docker.io"]

View File

@ -20,8 +20,8 @@
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix} %global import_path %{provider_prefix}
%global git0 https://%{import_path} %global git0 https://%{import_path}
%global commit0 63085f5bef1131aa9ec0907a5c8d66b67de7c4b2
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global build_version v1.5.2
%define epoch 1 %define epoch 1
@ -29,19 +29,18 @@ ExcludeArch: ppc64
Name: %{repo} Name: %{repo}
Epoch: 1 Epoch: 1
Version: 1.1.0 Version: 1.5.2
Release: 8.dev.git%{shortcommit0} Release: 1
Summary: Work with remote images registries - retrieving information, images, signing content Summary: Work with remote images registries - retrieving information, images, signing content
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/containers/skopeo URL: %{git0}
Source0: https://github.com/containers/skopeo/archive/v1.1.0.tar.gz Source0: %{git0}/archive/%{build_version}.tar.gz
Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz
Source2: registries.conf
Source3: seccomp.json
BuildRequires: go-srpm-macros golang git pkgconfig(devmapper) make BuildRequires: go-srpm-macros git-core pkgconfig(devmapper) make
BuildRequires: golang >= 1.16.6
BuildRequires: gpgme-devel libassuan-devel btrfs-progs-devel ostree-devel glib2-devel BuildRequires: gpgme-devel libassuan-devel btrfs-progs-devel ostree-devel glib2-devel
Requires: containers-common = %{epoch}:%{version}-%{release} Requires: containers-common
Provides: bundled(golang(github.com/beorn7/perks)) = 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9 Provides: bundled(golang(github.com/beorn7/perks)) = 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9
Provides: bundled(golang(github.com/BurntSushi/toml)) = master Provides: bundled(golang(github.com/BurntSushi/toml)) = master
@ -213,27 +212,15 @@ This package contains unit tests for project
providing packages with %{import_path} prefix. providing packages with %{import_path} prefix.
%endif %endif
%package -n containers-common
Summary: Configuration files for working with image signatures
Obsoletes: atomic <= 1.13.1-2
Conflicts: atomic-registries <= 1.22.1-1
Obsoletes: docker-rhsubscription <= 2:1.13.1-31
Provides: %{name}-containers = %{version}-%{release}
Obsoletes: %{name}-containers <= 0.1.31-2
%description -n containers-common
This package installs a default signature store configuration and a default
policy under `/etc/containers/`.
%prep %prep
%autosetup -Sgit -n %{name}-%{commit0} %autosetup -Sgit -n %{name}-%{version}
tar -xf %SOURCE1 tar -xf %SOURCE1
%build %build
cd go-md2man-* pushd go-md2man-*
go build -mod=vendor -o go-md2man . go build -mod=vendor -o go-md2man .
export GOMD2MAN=$(realpath go-md2man) export GOMD2MAN=$(realpath go-md2man)
cd - popd
mkdir -p src/github.com/containers mkdir -p src/github.com/containers
ln -s ../../../ src/%{import_path} ln -s ../../../ src/%{import_path}
@ -247,23 +234,24 @@ done
%if ! 0%{?with_bundled} %if ! 0%{?with_bundled}
rm -rf vendor/ rm -rf vendor/
export GOPATH=$(pwd):%{gopath} export GOPATH=$(pwd)
%else %else
export GOPATH=$(pwd):$(pwd)/vendor:%{gopath} export GOPATH=$(pwd):$(pwd)/vendor
%endif %endif
mkdir -p bin
export GO111MODULE=off export GO111MODULE=off
export GOPROXY=off
go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -extldflags '%__global_ldflags %{?__golang_extldflags}'" -a -v -x -o %{name} ./cmd/%{name} go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -extldflags '-Wl,-z,relro -Wl,-z,now '" -a -v -x -o bin/%{name} ./cmd/%{name}
%{__make} docs %{__make} docs
%install %install
make DESTDIR=%{buildroot} install make \
mkdir -p %{buildroot}%{_sysconfdir} PREFIX=%{buildroot}%{_prefix} \
install-docs install-completions
mkdir -p %{buildroot}%{_datadir}/containers install -m0755 -d -p %{buildroot}%{_bindir}
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/containers/registries.conf install -m0755 bin/skopeo %{buildroot}%{_bindir}/%{name}
install -m0644 %{SOURCE3} %{buildroot}%{_datadir}/containers/seccomp.json
# source codes for building projects # source codes for building projects
%if 0%{?with_devel} %if 0%{?with_devel}
@ -321,26 +309,19 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
%doc README.md %doc README.md
%endif %endif
%files -n containers-common
%dir %{_sysconfdir}/containers
%config(noreplace) %{_sysconfdir}/containers/registries.conf
%dir %{_sysconfdir}/containers/registries.d
%config(noreplace) %{_sysconfdir}/containers/policy.json
%config(noreplace) %{_sysconfdir}/containers/registries.d/default.yaml
%dir %{_sharedstatedir}/containers/sigstore
%dir %{_datadir}/containers
%{_datadir}/containers/seccomp.json
%files %files
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{_bindir}/%{name} %{_bindir}/%{name}
%{_mandir}/man1/%{name}* %{_prefix}/share/man/man1/%{name}*
%dir %{_datadir}/bash-completion %dir %{_prefix}/share/bash-completion
%dir %{_datadir}/bash-completion/completions %dir %{_prefix}/share/bash-completion/completions
%{_datadir}/bash-completion/completions/%{name} %{_prefix}/share/bash-completion/completions/%{name}
%changelog %changelog
* Thu Mar 24 2022 fushanqing <fushanqing@kylinos.cn> - 1:1.5.2-1
- update to 1.5.2 and remove subpackage containers-common
* Fri Dec 10 2021 wangqing <wangqing@uniontech.com> - 1.1.0-8.dev.git63085f5 * Fri Dec 10 2021 wangqing <wangqing@uniontech.com> - 1.1.0-8.dev.git63085f5
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA

Binary file not shown.

BIN
v1.5.2.tar.gz Normal file

Binary file not shown.