db99ee
%bcond_with bootstrap
db99ee
db99ee
Name:           assertj-core
db99ee
Version:        3.19.0
db99ee
Release:        5%{?dist}
db99ee
Summary:        Library of assertions similar to fest-assert
db99ee
License:        ASL 2.0
db99ee
URL:            https://joel-costigliola.github.io/assertj/
db99ee
Source0:        https://github.com/joel-costigliola/assertj-core/archive/assertj-core-%{version}.tar.gz
db99ee
db99ee
BuildArch:      noarch
db99ee
db99ee
BuildRequires:  maven-local
db99ee
%if %{with bootstrap}
db99ee
BuildRequires:  javapackages-bootstrap
db99ee
%else
db99ee
BuildRequires:  mvn(junit:junit)
db99ee
BuildRequires:  mvn(net.bytebuddy:byte-buddy)
db99ee
BuildRequires:  mvn(org.hamcrest:hamcrest)
db99ee
BuildRequires:  mvn(org.junit.jupiter:junit-jupiter-api)
db99ee
BuildRequires:  mvn(org.opentest4j:opentest4j)
db99ee
%endif
db99ee
db99ee
%description
db99ee
A rich and intuitive set of strongly-typed assertions to use for unit testing
db99ee
(either with JUnit or TestNG).
db99ee
db99ee
%package javadoc
db99ee
Summary:        API documentation for %{name}
db99ee
db99ee
%description javadoc
db99ee
This package provides API documentation for %{name}.
db99ee
db99ee
%prep
db99ee
%setup -q -n assertj-core-assertj-core-%{version}
db99ee
db99ee
%pom_remove_parent
db99ee
%pom_xpath_inject "pom:project" "<groupId>org.assertj</groupId>"
db99ee
%pom_xpath_remove "pom:release"
db99ee
db99ee
%pom_remove_plugin :maven-invoker-plugin
db99ee
%pom_remove_plugin :maven-javadoc-plugin
db99ee
%pom_remove_plugin :maven-shade-plugin
db99ee
%pom_remove_plugin :maven-dependency-plugin
db99ee
%pom_remove_plugin :maven-enforcer-plugin
db99ee
%pom_remove_plugin :jacoco-maven-plugin
db99ee
%pom_remove_plugin :yuicompressor-maven-plugin
db99ee
%pom_remove_plugin :bnd-maven-plugin
db99ee
%pom_remove_plugin :bnd-resolver-maven-plugin
db99ee
%pom_remove_plugin :maven-antrun-plugin
db99ee
%pom_remove_plugin :maven-jar-plugin
db99ee
%pom_remove_plugin :bnd-testing-maven-plugin
db99ee
db99ee
# package org.mockito.internal.util.collections does not exist
db99ee
rm -rf ./src/test/java/org/assertj/core/error/ShouldContainString_create_Test.java
db99ee
db99ee
%pom_remove_dep :memoryfilesystem
db99ee
rm -r src/test/java/org/assertj/core/internal/{Paths*.java,paths}
db99ee
db99ee
%build
db99ee
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8 -P \!java9+
db99ee
db99ee
%install
db99ee
%mvn_install
db99ee
db99ee
%files -f .mfiles
db99ee
%doc README.md CONTRIBUTING.md
db99ee
%license LICENSE.txt
db99ee
db99ee
%files javadoc -f .mfiles-javadoc
db99ee
%doc CONTRIBUTING.md
db99ee
%license LICENSE.txt
db99ee
db99ee
%changelog
db99ee
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.19.0-5
db99ee
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
db99ee
  Related: rhbz#1991688
db99ee
db99ee
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.19.0-4
db99ee
- Rebuild to workaround DistroBaker issue
db99ee
db99ee
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.19.0-3
db99ee
- Bootstrap Maven for CentOS Stream 9
db99ee
db99ee
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.19.0-2
db99ee
- Bootstrap build
db99ee
- Non-bootstrap build
db99ee
db99ee
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.17.2-2
db99ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
db99ee
db99ee
* Tue Jan 26 2021 Marian Koncek <mkoncek@redhat.com> - 3.19.0-1
db99ee
- Update to upstream version 3.19.0
db99ee
db99ee
* Wed Jan 20 2021 Marian Koncek <mkoncek@redhat.com> - 3.18.1-1
db99ee
- Update to upstream version 3.18.1
db99ee
db99ee
* Fri Oct 16 2020 Fabio Valentini <decathorpe@gmail.com> - 3.17.2-1
db99ee
- Update to version 3.17.2.
db99ee
db99ee
* Mon Sep 21 2020 Marian Koncek <mkoncek@redhat.com> - 3.17.2-1
db99ee
- Update to upstream version 3.17.2
db99ee
db99ee
* Sun Aug 23 2020 Fabio Valentini <decathorpe@gmail.com> - 3.17.0-1
db99ee
- Update to version 3.17.0.
db99ee
db99ee
* Wed Jul 29 2020 Marian Koncek <mkoncek@redhat.com> - 3.16.1-1
db99ee
- Update to upstream version 3.16.1
db99ee
db99ee
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.16.1-5
db99ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
db99ee
db99ee
* Tue Jul 21 2020 Markku Korkeala <markku.korkeala@iki.fi> - 3.16.1-4
db99ee
- Remove profiles from pom.xml.
db99ee
db99ee
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 3.16.1-3
db99ee
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
db99ee
db99ee
* Wed May 13 2020 Fabio Valentini <decathorpe@gmail.com> - 3.16.1-2
db99ee
- Fix artifact generation by removing antrun plugin again.
db99ee
db99ee
* Tue May 12 2020 Fabio Valentini <decathorpe@gmail.com> - 3.16.1-1
db99ee
- Update to version 3.16.1.
db99ee
db99ee
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-7
db99ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
db99ee
db99ee
* Wed Nov 20 2019 Marian Koncek <mkoncek@redhat.com> - 3.14.0-1
db99ee
- Update to upstream version 3.14.0
db99ee
db99ee
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.13.2-2
db99ee
- Mass rebuild for javapackages-tools 201902
db99ee
db99ee
* Fri Sep 13 2019 Fabio Valentini <decathorpe@gmail.com> - 3.8.0-6
db99ee
- Remove dependency on memoryfilesystem.
db99ee
db99ee
* Tue Aug 06 2019 Marian Koncek <mkoncek@redhat.com> - 3.13.2-1
db99ee
- Update to upstream version 3.13.2
db99ee
db99ee
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-5
db99ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
db99ee
db99ee
* Thu Jun 06 2019 Marian Koncek <mkoncek@redhat.com> - 3.12.2-1
db99ee
- Update to upstream version 3.12.2
db99ee
db99ee
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.8.0-3
db99ee
- Mass rebuild for javapackages-tools 201901
db99ee
db99ee
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-4
db99ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
db99ee
db99ee
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-3
db99ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
db99ee
db99ee
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-2
db99ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
db99ee
db99ee
* Fri Jul 28 2017 Mat Booth <mat.booth@redhat.com> - 3.8.0-1
db99ee
- Update to latest version of assertj
db99ee
- Disable tests due to missing deps in Fedora
db99ee
db99ee
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-4
db99ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
db99ee
db99ee
* Mon Feb 06 2017 Michael Simacek <msimacek@redhat.com> - 2.2.0-3
db99ee
- Add conditional for memoryfilesystem
db99ee
db99ee
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
db99ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
db99ee
db99ee
* Wed Sep 02 2015 Roman Mohr <roman@fenkhuber.at> - 2.2.0-1
db99ee
- Initial packaging