## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 4; 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 1.3 %bcond_without check # https://github.com/FiloSottile/age %global goipath filippo.io/age %global forgeurl https://github.com/FiloSottile/age Version: 1.0.0 %gometa %global goname age %global common_description %{expand: A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Simple, modern and secure encryption tool # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(filippo.io/edwards25519) BuildRequires: golang(golang.org/x/crypto/chacha20poly1305) BuildRequires: golang(golang.org/x/crypto/cryptobyte) BuildRequires: golang(golang.org/x/crypto/curve25519) BuildRequires: golang(golang.org/x/crypto/hkdf) BuildRequires: golang(golang.org/x/crypto/poly1305) BuildRequires: golang(golang.org/x/crypto/scrypt) BuildRequires: golang(golang.org/x/crypto/ssh) BuildRequires: golang(golang.org/x/crypto/ssh/terminal) %description %{common_description} %gopkg %prep %goprep %build export GOLDFLAGS="-X main.Version=%{version} " for cmd in cmd/* ; 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}/ mkdir -p %{buildroot}%{_mandir}/man1 install -m 644 doc/%{name}.1 %{buildroot}%{_mandir}/man1/ install -m 644 doc/age-keygen.1 %{buildroot}%{_mandir}/man1/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/* %{_mandir}/man1/* %gopkgfiles %changelog * Sat Jan 29 2022 Robert-André Mauchin 1.0.0-4 - Convert LDFLAGS to GOLDFLAGS and BUILTAGS to GOBUILDTAGS * Wed Jan 19 2022 Fedora Release Engineering 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Sep 16 2021 Robert-André Mauchin 1.0.0-2 - Add LDFLAGS to specify age version Fix: rhbz#2004564 * Mon Sep 06 2021 Robert-André Mauchin 1.0.0-1 - Update to 1.0.0 * Mon Aug 30 2021 Mikel Olasagasti Uranga - 1.0.0~rc.3-2 - Add man pages * Sat Aug 21 2021 Mikel Olasagasti Uranga - 1.0.0~rc.3-1 - Update to 1.0.0-rc.3 * Wed Jul 21 2021 Fedora Release Engineering - 1.0.0~beta7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun Mar 7 10:24:07 CET 2021 Robert-André Mauchin - 1.0.0~beta7- - Update to 1.0.0~beta7 - Close: rhbz#1919496 * Mon Jan 25 2021 Fedora Release Engineering - 1.0.0~beta6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 22 00:03:19 CET 2021 Robert-André Mauchin - 1.0.0-beta6-1 - Initial package