%global jarname commons-text Name: apache-%{jarname} Version: 1.10.0 Release: 5%{?dist} Summary: Apache Commons Text is a library focused on algorithms working on strings License: Apache-2.0 URL: https://commons.apache.org/proper/%{jarname} BuildArch: noarch Source0: https://archive.apache.org/dist/commons/text/source/%{jarname}-%{version}-src.tar.gz Source1: https://archive.apache.org/dist/commons/text/source/%{jarname}-%{version}-src.tar.gz.asc Source2: https://archive.apache.org/dist/commons/KEYS # disable url lookup in test Patch0: 0001-disable-url-lookup.patch BuildRequires: gnupg2 BuildRequires: maven-local BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.assertj:assertj-core) BuildRequires: mvn(org.junit.jupiter:junit-jupiter) BuildRequires: mvn(org.mockito:mockito-core) %description The Commons Text library provides additions to the standard JDK's text handling. Our goal is to provide a consistent set of tools for processing text generally from computing distances between Strings to being able to efficiently do String escaping of various types. %{?javadoc_package} %prep # verify signed sources %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' # -p1: strip one level directory in patch(es) # -n: base directory name %autosetup -p1 -n %{jarname}-%{version}-src # delete precompiled jar and class files find -type f '(' -name '*.jar' -o -name '*.class' ')' -print -delete # mockito-inline was merged into mockito-core %pom_change_dep :mockito-inline :mockito-core %build # disable test: some test deps can't be installed %mvn_build -f -- -Dmaven.compiler.release=8 %install %mvn_install %files -f .mfiles %license LICENSE.txt NOTICE.txt %doc README.md RELEASE-NOTES.txt %changelog * Thu Feb 01 2024 Mikolaj Izdebski - 1.10.0-5 - Port to mockito 5.8.0 * Mon Jan 22 2024 Fedora Release Engineering - 1.10.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.10.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 1.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jun 24 2023 Didik Supriadi - 1.10.0-1 - Update to version 1.10.0 - Disable tests * Sat Apr 29 2023 Didik Supriadi - 1.9-5 - migrated to SPDX license * Wed Jan 18 2023 Fedora Release Engineering - 1.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 20 2022 Fedora Release Engineering - 1.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Apr 23 2022 Didik Supriadi - 1.9-2 - Add BR on mockito-inline - Patch the test files to disable url lookup - Use maven-local-openjdk11 to be able to compile test files - Reverse the order of %%autosetup and %%gpgverify * Wed Jul 21 2021 Didik Supriadi - 1.9-1 - Initial package