## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 3; 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/square/go-jose %global goipath gopkg.in/square/go-jose.v2 %global forgeurl https://github.com/square/go-jose Version: 2.6.0 %gometa %global common_description %{expand: Package jose aims to provide an implementation of the Javascript Object Signing and Encryption set of standards. This includes support for JSON Web Encryption, JSON Web Signature, and JSON Web Token standards.} %global golicenses LICENSE LICENSE-json %global godocs BUG-BOUNTY.md CONTRIBUTING.md README.md\\\ README-jose-util.md README-json.md README-jwk-keygen.md Name: %{goname} Release: %autorelease Summary: Implementation of JOSE standards (JWE, JWS, JWT) in Go # Upstream license specification: BSD-3-Clause and Apache-2.0 # ASL 2.0: Main library # BSD: json/ License: BSD and ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(golang.org/x/crypto/ed25519) BuildRequires: golang(golang.org/x/crypto/pbkdf2) BuildRequires: golang(gopkg.in/alecthomas/kingpin.v2) %if %{with check} # Tests BuildRequires: golang(github.com/google/go-cmp/cmp) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep mv json/LICENSE LICENSE-json for d in jose-util json jwk-keygen; do mv $d/README.md README-$d.md done %build for cmd in jwk-keygen jose-util; 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 for test in "TestJWSWithCertificateChain" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done export GODEBUG=x509ignoreCN=0 %gocheck %endif %files %license LICENSE LICENSE-json %doc BUG-BOUNTY.md CONTRIBUTING.md README.md %doc README-jose-util.md README-json.md README-jwk-keygen.md %{_bindir}/* %gopkgfiles %changelog * Sat Jun 18 2022 Robert-André Mauchin 2.6.0-3 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Thu Jan 20 2022 Fedora Release Engineering 2.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Sep 14 2021 Robert-André Mauchin 2.6.0-1 - Update to 2.6.0 Close: rhbz#1968141 * Thu Jul 22 2021 Fedora Release Engineering - 2.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 2.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Aug 05 21:52:35 CEST 2020 Robert-André Mauchin - 2.5.1-1 - Update to 2.5.1 * Sat Aug 01 2020 Fedora Release Engineering - 2.4.1-6 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 2.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Feb 11 03:22:40 CET 2020 Robert-André Mauchin - 2.4.1-1 - Update to 2.4.1 * Wed Jan 29 2020 Fedora Release Engineering - 2.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 2.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Apr 30 16:59:47 CEST 2019 Robert-André Mauchin - 2.3.1-2 - Update to new macros * Thu Apr 11 23:27:33 CEST 2019 Robert-André Mauchin - 2.3.1-1 - Release 2.3.1 (#1698660) * Sun Mar 17 2019 Robert-André Mauchin - 2.3.0-1 - Release 2.3.0 (#1689446) * Wed Feb 20 2019 Robert-André Mauchin - 2.2.2-1 - Release 2.2.2 * Fri Feb 01 2019 Fedora Release Engineering - 2.1.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Nov 14 2018 Robert-André Mauchin - 2.1.9-1 - First package for Fedora