Sisyphus repositório
Última atualização: 12 abril 2021 | SRPMs: 17839 | Visitas: 20697952
en ru br
ALT Linux repositórios
S:2.7.1-alt2

Group :: Other
RPM: docker-registry

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%global import_path github.com/docker/distribution
Name:     docker-registry
Version:  2.7.1
Release:  alt2

Summary:  The Docker toolset to pack, ship, store, and deliver content
License:  Apache-2.0
Group:    Other
Url:      https://github.com/docker/distribution

Packager: Mikhail Gordeev <obirvalger at altlinux.org>


Source:   %name-%version.tar
Source1:  docker-registry.service
Source2:  config.yml

BuildRequires(pre): rpm-build-golang
BuildRequires: golang

%description
%summary

%prep
%setup

%build
export GO111MODULE=auto
export BUILDDIR="$PWD/.build"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"

%golang_prepare

cd .build/src/%import_path
%golang_build cmd/registry

%install
export BUILDDIR="$PWD/.build"
export IGNORE_SOURCES=1

%golang_install

mv %buildroot%_bindir/{,docker-}registry

install -pDm 0644 %SOURCE1 %buildroot%_unitdir/%name.service
install -pDm 0644 %SOURCE2 %buildroot%_sysconfdir/%name/config.yml

mkdir -p %buildroot/%_localstatedir/%name

%files
%_bindir/docker-registry
%doc README.md
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/config.yml
%_unitdir/%name.service
%dir %_localstatedir/%name

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009