Name: java-diff-utils
Version: 4.12
Release: 2%{?dist}
Summary: Java library to create and apply patches
License: Apache-2.0
URL: https://java-diff-utils.github.io/java-diff-utils/
Source0: https://github.com/%{name}/%{name}/archive/%{name}-parent-%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
#BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform)
#BuildRequires: mvn(org.apiguardian:apiguardian-api)
BuildRequires: mvn(org.assertj:assertj-core)
#BuildRequires: mvn(org.eclipse.jgit:org.eclipse.jgit)
#BuildRequires: mvn(org.junit.jupiter:junit-jupiter)
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
%global _desc %{expand:
The Java Diff Utils library is an open source library for performing
comparison operations between texts: computing diffs, applying patches,
generating or parsing unified diffs, generating diff output for easy
display (e.g., side-by-side view), and so on.}
%description %_desc
%package parent
Summary: Java Diff Utils parent POM
%description parent %_desc
This package contains the parent POM for Java Diff Utils.
%{?javadoc_package}
%prep
%autosetup -n %{name}-%{name}-parent-%{version}
# Unnecessary plugins for an RPM build
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin :maven-release-plugin
# no org.eclipse.jgit on epels
rm -r %{name}-jgit
sed "s|java-diff-utils-jgit||" -i pom.xml
%build
%mvn_build -s -f
%install
%mvn_install
%files -f .mfiles-java-diff-utils
%license LICENSE
%files parent -f .mfiles-java-diff-utils-parent
%license LICENSE
%changelog
* Tue Jul 04 2023 Jiri Vanek - 4.12-2
- disabled tests (no junit5 in epel)
- removed jgit module (no org.eclipse.jgit in epel)
* Thu Jan 19 2023 Fedora Release Engineering - 4.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Nov 24 2022 Jerry James - 4.12-1
- Convert License tag to SPDX
* Tue Jul 26 2022 Jerry James - 4.12-1
- Version 4.12
* Thu Jul 21 2022 Fedora Release Engineering - 4.11-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jul 08 2022 Jiri Vanek - 4.11-4
- Rebuilt for Drop i686 JDKs
* Sat Feb 05 2022 Jiri Vanek - 4.11-3
- Rebuilt for java-17-openjdk as system jdk
* Thu Jan 20 2022 Fedora Release Engineering - 4.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Sep 8 2021 Jerry James - 4.11-1
- Version 4.11
- Drop upstreamed -javadoc patch
* Thu Jul 22 2021 Fedora Release Engineering - 4.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Jul 1 2021 Jerry James - 4.10-1
- Version 4.10
- Drop upstreamed -unchecked patch
* Tue Jan 26 2021 Fedora Release Engineering - 4.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Nov 24 2020 Jerry James - 4.9-1
- Initial RPM