Compare commits

...
Sign in to create a new pull request.

19 commits

Author SHA1 Message Date
Fedora Release Engineering
0219a93203 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:30:40 +00:00
Mikel Olasagasti Uranga
07a80f3899 Update to 1.3.1 2026-01-05 17:01:41 +01:00
Mikel Olasagasti Uranga
84eb1ce35a Update to 1.3.0 - Closes rhbz#2425652 2025-12-28 14:36:21 +01:00
Alejandro Sáez
571616dbde rebuild 2025-10-10 12:35:49 +02:00
Maxwell G
a1d6c08619 Rebuild for golang-1.25.0 2025-08-15 16:00:08 -05:00
Maxwell G
02e91684c2 Revert "Rebuild for golang-1.25.0"
This reverts commit 95b1daaf05.
2025-08-15 15:24:44 -05:00
Maxwell G
95b1daaf05 Rebuild for golang-1.25.0 2025-08-15 14:19:19 -05:00
Maxwell G
13537df666
Miscellaneous packaging improvements
- Embed Version in binary so --version works
- Use GO111MODULE=on. This is the modern way to build Go applications
  and also includes extra dependency metadata in the binary.
- Use simpler %gotest macro instead of %gocheck script
- Remove globs in the %files section.

Ref: 85a703ecae
Ref: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_explicit_lists

[skip changelog]
2025-07-26 19:26:56 -05:00
Fedora Release Engineering
2958f9db9a Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 16:49:23 +00:00
Mikel Olasagasti Uranga
468c9bfb1b Fix s390x tests 2025-07-20 00:20:20 +02:00
Mikel Olasagasti Uranga
972ac7c2d9 Adopt Go Vendor Tools 2025-07-15 21:38:48 +02:00
Fedora Release Engineering
1a0bf27c8b Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 10:42:21 +00:00
Mikel Olasagasti Uranga
065a1cbe1e Update to 1.2.1 - Closes rhbz#2333048 2024-12-18 18:18:40 +01:00
Mikel Olasagasti Uranga
a08acb0db2 Update to 1.2.0 - Closes rhbz#2292862 rhbz#2255071 2024-08-17 19:36:28 +02:00
Fedora Release Engineering
e7bc7aab3a Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 16:42:37 +00:00
Maxwell G
8445eea693
Rebuild for golang 1.22.0 2024-02-11 21:37:02 +00:00
Fedora Release Engineering
546ca59a2d Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 22:46:21 +00:00
Fedora Release Engineering
83ee5efb34 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 12:23:23 +00:00
Fedora Release Engineering
543fb82c7b Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 13:00:19 +00:00
5 changed files with 91 additions and 35 deletions

7
.gitignore vendored
View file

@ -4,3 +4,10 @@
/age-1.0.0.tar.gz
/age-1.1.0-rc.1.tar.gz
/age-1.1.1.tar.gz
/age-1.2.0.tar.gz
/age-1.2.1.tar.gz
/age-1.2.1-vendor.tar.bz2
/age-1.3.0.tar.gz
/age-1.3.0-vendor.tar.bz2
/age-1.3.1-vendor.tar.bz2
/age-1.3.1.tar.gz

35
.packit.yaml Normal file
View file

@ -0,0 +1,35 @@
specfile_path: age.spec
upstream_package_name: age
upstream_project_url: https://github.com/FiloSottile/age
downstream_package_name: age
upstream_tag_template: v{version}
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
- rawhide
- job: koji_build
trigger: commit
dist_git_branches:
- rawhide
actions:
post-modifications:
# https://fedora.gitlab.io/sigs/go/go-vendor-tools/scenarios/#manual-update
- |
sh -xeuc "
cd $PACKIT_DOWNSTREAM_REPO
export GOTOOLCHAIN=auto
go_vendor_archive create --config go-vendor-tools.toml age.spec
go_vendor_license \
--config go-vendor-tools.toml \
--path age.spec \
report \
--verify-spec
"
create_sync_note: false

View file

@ -1,71 +1,75 @@
# Generated by go2rpm 1.9.0
%bcond_without check
# Generated by go2rpm 1.18.0
%bcond check 1
# https://github.com/FiloSottile/age
%global goipath filippo.io/age
%global forgeurl https://github.com/FiloSottile/age
Version: 1.1.1
Version: 1.3.1
%gometa -f
%gometa -L -f
%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 AUTHORS README.md
Name: %{goname}
Name: age
Release: %autorelease
Summary: Simple, modern and secure encryption tool
License: BSD-3-Clause
# Generated by go-vendor-tools
# https://github.com/C2SP/CCTV/issues/14
# vendor/c2sp.org/CCTV/age/internal is not packaged
License: BSD-3-Clause AND (0BSD OR CC0-1.0 OR Unlicense)
URL: %{gourl}
Source: %{gosource}
Source0: %{gosource}
# Generated by go-vendor-tools
Source1: %{archivename}-vendor.tar.bz2
Source2: go-vendor-tools.toml
%description %{common_description}
BuildRequires: go-vendor-tools
%gopkg
%description
A simple, modern and secure encryption tool (and Go library) with small
explicit keys, no config options, and UNIX-style composability.
%prep
%goprep
%goprep -A
%setup -q -T -D -a1 %{forgesetupargs}
%autopatch -p1
%generate_buildrequires
%go_generate_buildrequires
%go_vendor_license_buildrequires -c %{S:2}
%build
export LDFLAGS="-X main.Version=%{version} "
for cmd in cmd/* ; do
%global gomodulesmode GO111MODULE=on
GO_LDFLAGS="-X main.Version=%{version}"
for cmd in cmd/{age,age-keygen,age-inspect} ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%install
%gopkginstall
%go_vendor_license_install -c %{S:2}
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/
install -m 644 doc/age-inspect.1 %{buildroot}%{_mandir}/man1/
%if %{with check}
%check
for test in "TestVectors" \
; do
awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
done
%gocheck
%go_vendor_license_check -c %{S:2}
%if %{with check}
%gotest ./...
%endif
%files
%license LICENSE
%doc AUTHORS README.md
%{_bindir}/*
%{_mandir}/man1/*
%files -f %{go_vendor_license_filelist}
%license vendor/modules.txt
%doc doc README.md
%{_bindir}/age
%{_bindir}/age-inspect
%{_bindir}/age-keygen
%{_mandir}/man1/age.1*
%{_mandir}/man1/age-inspect.1*
%{_mandir}/man1/age-keygen.1*
%gopkgfiles
%changelog
%autochangelog

9
go-vendor-tools.toml Normal file
View file

@ -0,0 +1,9 @@
[archive]
[licensing]
detector = "askalono"
[[licensing.licenses]]
path = "vendor/c2sp.org/CCTV/age/README.md"
sha256sum = "fdbd4b06044f3803c72bdaf2df7681fdce3a45a326a2898e75640eae906606ad"
expression = "0BSD OR CC0-1.0 OR Unlicense"

View file

@ -1 +1,2 @@
SHA512 (age-1.1.1.tar.gz) = bee02208453982b6403382c1e351ba28cbe80942702e7a35de89c3ae9a640c26ad1ee8239feb3726eac5df4210a5fc6375d40623162cad033965bd2eb0f7ce1e
SHA512 (age-1.3.1-vendor.tar.bz2) = c0863d04a2206e4f18ffb4d3b0429fc33685e4e7be1ffac7eca2218af590218ad62776fe11f60258092921f3aafffd6962d720eeeb6dd0ea68a14b39730c3908
SHA512 (age-1.3.1.tar.gz) = 95bb8049de36630f0b128c9626427646e5d4d76e35b6bd6790e29cf3f69fb2a0266ac7786616f56fe9bf378a81c1f3edc17fd9eba197286041b970944898504c