Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions LICENSES-AND-NOTICES/SPECS/data/licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -3186,6 +3186,7 @@
"coreos-cloudinit",
"coreos-init",
"ignition-flatcar",
"libjwt",
"python-nocaselist",
"rust-afterburn",
"update-ssh-keys"
Expand Down
5 changes: 5 additions & 0 deletions SPECS-EXTENDED/libjwt/libjwt.signatures.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Signatures": {
"libjwt-1.12.1.tar.gz": "d29e4250d437340b076350e910e69fd5539ef8b92528d0306745cec0e343cc17"
}
}
76 changes: 76 additions & 0 deletions SPECS-EXTENDED/libjwt/libjwt.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
Vendor: Microsoft Corporation
Distribution: Azure Linux
Name: libjwt
Version: 1.12.1
Release: 1%{?dist}
Summary: A JSON Web Token library in C

License: MPL-2.0
URL: https://github.com/benmcollins/libjwt
Source0: https://github.com/benmcollins/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: jansson-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: openssl-devel

%description
libjwt is a C library implementing JSON Web Tokens (RFC 7519). It supports
signing and verification using HMAC (HS256/384/512), RSA (RS256/384/512),
ECDSA (ES256/384/512), and RSA-PSS (PS256/384/512) algorithms via OpenSSL,
and uses Jansson for JSON encoding and decoding.

%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: jansson-devel
Requires: openssl-devel

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.


%prep
%autosetup -n %{name}-%{version}
autoreconf -i


%build
%configure --disable-static --without-examples
%make_build


%install
%make_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
# --without-examples does not actually disable example install in
# libjwt 1.12.1; remove the example binaries explicitly.
rm -f %{buildroot}%{_bindir}/jwtgen %{buildroot}%{_bindir}/jwtauth


%ldconfig_scriptlets


%files
%license LICENSE
%doc README.md
%{_libdir}/libjwt.so.*


%files devel
%doc README.md
%{_includedir}/jwt.h
%{_libdir}/libjwt.so
%{_libdir}/pkgconfig/libjwt.pc


%changelog
* Wed Jun 10 2026 lakarri <lakarri@microsoft.com> - 1.12.1-1
- Initial Azure Linux import from the source project (license: same as "License" tag).
- Required by slurmrestd (Slurm REST API daemon) for JWT-based
authentication. Tracked via ADO #61504121.
- License verified.
10 changes: 10 additions & 0 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10146,6 +10146,16 @@
}
}
},
{
"component": {
"type": "other",
"other": {
"name": "libjwt",
"version": "1.12.1",
"downloadUrl": "https://github.com/benmcollins/libjwt/archive/v1.12.1.tar.gz"
}
}
},
{
"component": {
"type": "other",
Expand Down
Loading