## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.17.1.post0 %bcond check 1 # https://github.com/distribution/distribution %global goipath github.com/distribution/distribution/v3 %global forgeurl https://github.com/distribution/distribution Version: 3.0.0 %gometa -L -f Name: docker-distribution Release: %autorelease Summary: The toolkit to pack, ship, store, and deliver container content # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml Source10: docker-distribution.service Source20: config.yml Source30: docker-distribution.sysuser.conf BuildRequires: go-vendor-tools BuildRequires: systemd-rpm-macros %{?sysusers_requires_compat} Provides: registry = %{version}-%{release} Obsoletes: golang-github-docker-distribution < 2.8.3-5 Obsoletes: golang-github-distribution-3 < 3.0.0-0.8 %description %{summary}. This package provides Docker Registry - a service for storing and distributing OCI and Docker container images. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export GO_LDFLAGS=" -X %{goipath}/version.version=%{version} -X %{goipath}/version.revision=%{release} " # set currentgoldflags to nil; blocks default go macro -X version strings %global currentgoldflags %nil # build cmd contents %gobuild -o %{gobuilddir}/bin/registry %{goipath}/cmd/registry # the following binaries not included in upstream release tar file # %%gobuild -o %%{gobuilddir}/bin/digest %%{goipath}/cmd/digest # %%gobuild -o %%{gobuilddir}/bin/registry-api-descriptor-template %{goipath}/cmd/registry-api-descriptor-template %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ # install systemd/init scripts install -d %{buildroot}%{_unitdir} install -p -m 644 %{SOURCE10} %{buildroot}%{_unitdir} # install config file install -d -p %{buildroot}%{_sysconfdir}/docker-distribution/registry install -p -m 644 %{SOURCE20} %{buildroot}%{_sysconfdir}/docker-distribution/registry # install root dir install -d %{buildroot}%{_sharedstatedir}/registry # install sysuser file install -p -D -m 0644 %{SOURCE30} %{buildroot}%{_sysusersdir}/docker-distribution.conf %check %go_vendor_license_check -c %{S:2} %if %{with check} # skip specific tests that fail with 'operation not permitted'. for test in \ "TestHTTPChecker" \ "TestFileReaderSeek" \ "TestListObjectsV2" \ "TestGracefulShutdown" \ "TestInMemoryDriverSuite" \ "TestWriteReadLargeStreams" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done # -test.short from Makefile test %global gocheckflags %{?gocheckflags} -test.short %gocheck -d registry/storage/driver/inmemory \ -d registry/storage/driver/filesystem \ -d registry/storage/driver/azure \ -d registry/storage/driver/gcs \ -d registry/storage/driver/s3-aws \ -d registry/storage/driver/testsuites \ -d registry/handlers # to be done later # %%gotest ./... %endif %pre %sysusers_create_compat %{SOURCE30} %post %systemd_post docker-distribution.service %preun %systemd_preun docker-distribution.service %postun %systemd_postun_with_restart docker-distribution.service %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc CONTRIBUTING.md README.md ROADMAP.md SECURITY.md MAINTAINERS %{_bindir}/registry %{_sysusersdir}/docker-distribution.conf # %%{_bindir}/digest # %%{_bindir}/registry-api-descriptor-template %{_unitdir}/docker-distribution.service %attr(-,registry,registry) %dir %{_sharedstatedir}/registry %dir %{_sysconfdir}/docker-distribution %dir %{_sysconfdir}/docker-distribution/registry %config(noreplace) %{_sysconfdir}/docker-distribution/registry/config.yml %changelog ## START: Generated by rpmautospec * Fri Oct 10 2025 Alejandro Sáez - 2.8.1-11.gitb5ca020 - rebuild * Fri Aug 15 2025 Maxwell G - 2.8.1-10.gitb5ca020 - Rebuild for golang-1.25.0 * Wed Jul 23 2025 Fedora Release Engineering - 2.8.1-9.gitb5ca020 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jan 16 2025 Fedora Release Engineering - 2.8.1-8.gitb5ca020 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 24 2024 Miroslav Suchý - 2.8.1-7.gitb5ca020 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 2.8.1-6.gitb5ca020 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Feb 11 2024 Maxwell G - 2.8.1-5.gitb5ca020 - Rebuild for golang 1.22.0 * Wed Jan 24 2024 Fedora Release Engineering - 2.8.1-4.gitb5ca020 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 2.8.1-3.gitb5ca020 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 2.8.1-2.gitb5ca020 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Mar 16 2023 Kevin Fenzi - 2.8.1-1 - Update to 2.8.1. Fixes rhbz#2043860 * Thu Jan 19 2023 Fedora Release Engineering - 2.6.2-20.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 2.6.2-19.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 2.6.2-18.git48294d9 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Fri Jun 17 2022 Robert-André Mauchin - 2.6.2-17.git48294d9 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Thu Jan 20 2022 Fedora Release Engineering - 2.6.2-16.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 2.6.2-15.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 2.6.2-14.git48294d9 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Tue Jan 26 2021 Fedora Release Engineering - 2.6.2-13.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 2.6.2-12.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 2.6.2-11.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jul 24 2019 Fedora Release Engineering - 2.6.2-10.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 2.6.2-9.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 2.6.2-8.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 9 2018 Owen Taylor - 2.6.2-7.git48294d9 - Add fix to register the OCI Image index media type - https://github.com/docker/distribution/pull/2076#issuecomment-328655346 * Wed Feb 07 2018 Owen Taylor - 2.6.2-6.git48294d9 - Add backported patch to support OCI manifests and image indexes (manifest lists) https://github.com/docker/distribution/pull/2076 as of August 31 * Wed Feb 07 2018 Fedora Release Engineering - 2.6.2-5.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Dec 20 2017 Nils Philippsen - 2.6.2-4.git48294d9 - own /etc/docker-distribution, .../registry directories * Wed Aug 02 2017 Fedora Release Engineering - 2.6.2-3.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.6.2-2.git48294d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Jul 25 2017 Lokesh Mandvekar - 2.6.2-1.git48294d9 - Resolves: #1474894 - CVE-2017-11468 - bump to tag 2.6.2 - built commit 48294d9 - built with bundled dependencies * Fri Feb 10 2017 Fedora Release Engineering - 2.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Sep 23 2016 Frantisek Kluknavsky - 2.5.1-1 - Resolves: #1346484 - rebase to v2.5.1 * Thu Jul 21 2016 Fedora Release Engineering - 2.4.1-2 - https://fedoraproject.org/wiki/Changes/golang1.7 * Mon May 23 2016 Lokesh Mandvekar - 2.4.1-1 - Resolves: #1311327 - rebase to v2.4.1 * Fri Mar 04 2016 jchaloup - 2.3.0-3 - Provide devel subpackage - Build from debundled dependencies * Mon Feb 22 2016 Fedora Release Engineering - 2.3.0-2 - https://fedoraproject.org/wiki/Changes/golang1.6 * Mon Feb 15 2016 Lokesh Mandvekar - 2.3.0-1 - Resolves: rhbz#1277743 - bump to v2.3.0 - Resolves: rhbz#1308656 - obsolete docker-registry <= 0.9.1-5 * Wed Feb 03 2016 Fedora Release Engineering - 2.3.0-0.2.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 28 2016 Lokesh Mandvekar - 2.3.0-0.1.rc1 - Resolves: rhbz#1277743 - bump to v2.3.0-rc1 * Wed Oct 28 2015 Lokesh Mandvekar - 2.1.1-4 - Resolves: rhbz#1276046 - correct yml file location in unitfile * Wed Oct 07 2015 Lokesh Mandvekar - 2.1.1-3 - do not install sysconfig file - Install root dir /var/lib/registry * Tue Sep 22 2015 Lokesh Mandvekar - 2.1.1-2 - systemd is a dep * Thu Sep 17 2015 Lokesh Mandvekar - 2.1.1-1 - First package for Fedora resolves: #1259005 ## END: Generated by rpmautospec