regclient/regclient.spec

47 lines
959 B
RPMSpec
Raw Permalink Normal View History

2023-07-28 23:33:45 +03:00
%define debug %nil
%define debug_package %nil
Name: regclient
2025-02-12 12:05:49 +00:00
Version: 0.8.1
2023-07-28 23:33:45 +03:00
Release: 1
Summary: Docker and OCI Registry Client
URL: https://github.com/regclient/regclient
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
License: Apache-2.0
Group: Development/Other
Provides: regbot
Provides: regctl
Provides: regsync
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
2024-11-04 19:26:25 +00:00
BuildRequires: pkgconfig(openssl3.3)
2023-07-28 23:33:45 +03:00
%description
Client interface for the registry API. This includes regctl
for a command line interface to manage registries.
%prep
%setup -q
%build
export VCS_TAG=%{version}
2025-02-12 12:05:49 +00:00
export GOPROXY=https://proxy.golang.org,direct
2023-07-28 23:33:45 +03:00
%make binaries
upx ./bin/*
%install
install -Dm0755 bin/regbot %{buildroot}%{_bindir}/regbot
install -Dm0755 bin/regctl %{buildroot}%{_bindir}/regctl
install -Dm0755 bin/regsync %{buildroot}%{_bindir}/regsync
%files
%doc README.md LICENSE
%{_bindir}/regsync
%{_bindir}/regctl
%{_bindir}/regbot