## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 10; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm %bcond_without check # https://github.com/xordataexchange/crypt %global goipath github.com/xordataexchange/crypt Version: 0.0.2 %global commit b2862e3d0a775f18c7cfe02273500ae307b61218 %gometa %global common_description %{expand: Store and retrieve encrypted configs from etcd or consul.} %global golicenses LICENSE %global godocs README.md README-crypt.md README-config.md Name: %{goname} Release: %autorelease Summary: Store and retrieve encrypted configs from etcd or consul License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/armon/consul-api) BuildRequires: golang(go.etcd.io/etcd/client/v2) BuildRequires: golang(golang.org/x/crypto/openpgp) %description %{common_description} %gopkg %prep %goprep sed -i "s|github.com/coreos/etcd/client|go.etcd.io/etcd/client/v2|" $(find . -iname "*.go" -type f) mv bin/crypt/README.md README-crypt.md mv config/README.md README-config.md %build for cmd in bin/crypt; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license %{golicenses} %doc %{godocs} %{_bindir}/* %gopkgfiles %changelog * Thu Jan 20 2022 Fedora Release Engineering 0.0.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Sep 17 2021 Robert-André Mauchin 0.0.2-9 - RPMAUTOSPEC: changelog file removed