2015-11-10 09:29:35 +00:00
|
|
|
#
|
|
|
|
# spec file for package jose4j
|
|
|
|
#
|
2024-01-29 17:20:41 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2015-11-10 09:29:35 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2024-01-29 17:20:41 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-11-10 09:29:35 +00:00
|
|
|
#
|
|
|
|
|
2024-01-29 17:20:41 +00:00
|
|
|
|
2015-11-10 09:29:35 +00:00
|
|
|
Name: jose4j
|
2024-03-01 09:45:26 +00:00
|
|
|
Version: 0.9.5
|
2015-11-10 09:29:35 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: JWT implementation for Java
|
2024-02-21 13:52:44 +00:00
|
|
|
License: Apache-2.0
|
2024-10-11 06:40:32 +00:00
|
|
|
Group: Development/Libraries/Java
|
2024-02-21 13:52:44 +00:00
|
|
|
URL: https://bitbucket.org/b_c/jose4j
|
2015-11-10 09:29:35 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2024-03-01 10:31:15 +00:00
|
|
|
BuildRequires: java-devel >= 15
|
2024-10-11 06:40:32 +00:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2024-01-29 17:20:41 +00:00
|
|
|
BuildRequires: slf4j >= 1.7
|
2015-11-10 09:29:35 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The jose.4.j library is a robust and easy to use open source implementation of
|
|
|
|
JSON Web Token (JWT) and the JOSE specification suite (JWS, JWE, and JWK).
|
|
|
|
It is written in Java and relies solely on the JCA APIs for cryptography.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2024-10-11 06:40:32 +00:00
|
|
|
mkdir -p classes
|
|
|
|
javac -d classes -encoding utf8 \
|
|
|
|
-source 1.8 -target 1.8 \
|
|
|
|
-cp $(build-classpath slf4j/api) \
|
|
|
|
$(find src/main/java -name '*.java' | xargs)
|
2024-09-24 05:12:28 +00:00
|
|
|
jar \
|
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
|
|
|
|
--date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \
|
|
|
|
%endif
|
2024-10-11 06:40:32 +00:00
|
|
|
--create --verbose --file=%{name}-%{version}.jar -C classes .
|
2015-11-10 09:29:35 +00:00
|
|
|
|
|
|
|
%install
|
2024-10-11 06:40:32 +00:00
|
|
|
# jar
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}
|
|
|
|
install -pm 0644 %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
# pom
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
|
|
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
|
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
2015-11-10 09:29:35 +00:00
|
|
|
|
2024-10-11 06:40:32 +00:00
|
|
|
%files -f .mfiles
|
2024-01-29 17:20:41 +00:00
|
|
|
%doc NOTICE.txt README.md
|
|
|
|
%license LICENSE
|
2015-11-10 09:29:35 +00:00
|
|
|
|
2024-01-29 17:20:41 +00:00
|
|
|
%changelog
|