%define debug_package %nil Name: etcd Version: 3.5.3 Release: 1 Summary: Key-value store URL: https://etcd.io/ Source0: https://github.com/etcd-io/etcd/archive/v%{version}/%{name}-%{version}.tar.gz License: ASL 2.0 Group: Development/Other BuildRequires: go BuildRequires: upx %description Distributed reliable key-value store for the most critical data of a distributed system %package -n %{name}ctl %description -n %{name}ctl etcdctl is a command line client for etcd %files -n %{name}ctl %doc README.md LICENSE %{_bindir}/%{name}ctl %prep %setup -q %build %make_build #./build.sh upx bin/* %install install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name} install -Dm0755 bin/%{name}ctl %{buildroot}%{_bindir}/%{name}ctl %files %doc README.md LICENSE %{_bindir}/%{name}