File age.spec of Package age

# spec file for package age
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2021, Martin Hauke <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           age
Version:        1.1.1
Release:        0
Summary:        A file encryption tool
License:        BSD-3-Clause
Group:          Productivity/Networking/Security
Source1:        vendor.tar.gz
BuildRequires:  go
BuildRequires:  golang-packaging

Age features small explicit keys, no config options, and UNIX-style

%autosetup -p 1 -a 1

%{gobuild} -mod=vendor ...

for i in age.1 age-keygen.1 ; do
  install -Dm 0644 doc/$i %{buildroot}%{_mandir}/man1/$i

# disable test for now since it needs dependencies that are not vendored yet
#%%gotest ...

%license LICENSE
%doc doc/*.1.html

openSUSE Build Service is sponsored by