[packages/age] new
atler
atler at pld-linux.org
Tue Dec 30 20:59:02 CET 2025
commit b991befaef99f88fdeb4422b4239e9fd9721e163
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Dec 30 20:45:54 2025 +0100
new
age.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
---
diff --git a/age.spec b/age.spec
new file mode 100644
index 0000000..744d1c3
--- /dev/null
+++ b/age.spec
@@ -0,0 +1,68 @@
+%define vendor_version 1.3.1
+
+Summary: A simple, modern and secure encryption tool
+Name: age
+Version: 1.3.1
+Release: 1
+License: BSD
+Group: Applications/File
+#Source0Download: https://github.com/FiloSottile/age/releases
+Source0: https://github.com/FiloSottile/age/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 48cd20789fbb89d8c9ec70e041721efb
+# cd %{name}-%{version}
+# go mod vendor
+# cd ..
+# tar cJf %{name}-vendor-%{version}.tar.xz %{name}-%{version}/vendor
+Source1: %{name}-vendor-%{vendor_version}.tar.xz
+# Source1-md5: fea6d459e04a17650230b5467f087543
+URL: https://age-encryption.org
+BuildRequires: golang >= 1.24.0
+BuildRequires: ronn
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 2.009
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+ExclusiveArch: %go_arches
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%undefine _debugsource_packages
+
+%description
+age is a simple, modern and secure file encryption tool, format, and
+Go library. It features small explicit keys, post-quantum support, no
+config options, and UNIX-style composability.
+
+%prep
+%setup -q -a1
+
+%{__mv} %{name}-%{vendor_version}/vendor .
+
+%{__mkdir_p} .go-cache bin
+
+%build
+%__go build -v -mod=vendor -o bin ./cmd/...
+
+/usr/bin/ronn --roff doc/*.ronn
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+
+cp -p bin/* $RPM_BUILD_ROOT%{_bindir}
+cp -p doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_bindir}/age
+%attr(755,root,root) %{_bindir}/age-inspect
+%attr(755,root,root) %{_bindir}/age-keygen
+%attr(755,root,root) %{_bindir}/age-plugin-batchpass
+%{_mandir}/man1/age.1*
+%{_mandir}/man1/age-inspect.1*
+%{_mandir}/man1/age-keygen.1*
+%{_mandir}/man1/age-plugin-batchpass.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/age.git/commitdiff/b991befaef99f88fdeb4422b4239e9fd9721e163
More information about the pld-cvs-commit
mailing list