# # spec file for package jmulticard # # Copyright (c) 2023 SUSE LLC # # 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 https://bugs.opensuse.org/ # Name: jmulticard Version: 1.8 Release: 0 Summary: Smart card access abstract layer License: EUPL-1.1 OR GPL-2.0-only URL: https://github.com/ctt-gob-es/jmulticard Source0: %{name}-%{version}.tar.xz Source1: http://www.gnu.org/licenses/gpl-2.0.txt Source2: https://joinup.ec.europa.eu/sites/default/files/custom-page/attachment/eupl1.1.-licence-en_0.pdf BuildRequires: fdupes BuildRequires: java-devel >= 1.8 BuildRequires: maven-local BuildRequires: mvn(org.bouncycastle:bcpkix-jdk15on) BuildArch: noarch %description Smart card access abstract layer written in Java %package javadoc Summary: Javadoc for %{name} Group: Documentation/HTML %description javadoc This package contains the API documentation for %{name}. %prep %setup -q cp %{SOURCE1} GPL-2.0.txt cp %{SOURCE2} EUPL-1.1.pdf # Use bouncycastle, instead of spongycastle %pom_change_dep 'com.madgag.spongycastle:prov' 'org.bouncycastle:bcprov-jdk15on:1.68.0' jmulticard-jse %pom_change_dep com.madgag.spongycastle:bcpkix-jdk15on org.bouncycastle: jmulticard-jse %pom_xpath_set -r "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:source" "1.8" %pom_xpath_set -r "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:target" "1.8" perl -pi -e 's#spongycastle#bouncycastle#g' $(find . -name \*.java | xargs) %build %{mvn_build} -f -- -Dsource=8 %install %mvn_install %fdupes -s %{buildroot}%{_javadocdir} %files -f .mfiles %license GPL-2.0.txt EUPL-1.1.pdf %files javadoc -f .mfiles-javadoc %license GPL-2.0.txt EUPL-1.1.pdf %changelog