Fix bootstrap
This commit is contained in:
parent
417141168e
commit
d7fe8e444a
11
mockito.spec
11
mockito.spec
@ -2,7 +2,7 @@
|
||||
|
||||
Name: mockito
|
||||
Version: 3.12.4
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Tasty mocking framework for unit tests in Java
|
||||
License: MIT
|
||||
URL: https://site.mockito.org/
|
||||
@ -61,12 +61,14 @@ Requires: %{name} = %{version}-%{release}
|
||||
Mockito preconfigured inline mock maker (intermediate and to be
|
||||
superseded by automatic usage in a future version).
|
||||
|
||||
%if %{without bootstrap}
|
||||
%package junit-jupiter
|
||||
Summary: Mockito JUnit 5 support
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description junit-jupiter
|
||||
Mockito JUnit 5 support.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
@ -121,6 +123,7 @@ cd -
|
||||
%mvn_artifact %{SOURCE3} target/mockito-inline.jar
|
||||
%mvn_package org.mockito:mockito-inline inline
|
||||
|
||||
%if %{without bootstrap}
|
||||
# Build the junit-jupiter subproject
|
||||
cd subprojects/junit-jupiter
|
||||
mkdir -p target/classes/
|
||||
@ -135,6 +138,7 @@ bnd wrap --properties osgi-junit-jupiter.bnd --version %{version} \
|
||||
target/mockito-junit-jupiter.unwrapped.jar
|
||||
%mvn_artifact %{SOURCE4} target/mockito-junit-jupiter.jar
|
||||
%mvn_package org.mockito:mockito-junit-jupiter junit-jupiter
|
||||
%endif
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
@ -145,12 +149,17 @@ bnd wrap --properties osgi-junit-jupiter.bnd --version %{version} \
|
||||
|
||||
%files inline -f .mfiles-inline
|
||||
|
||||
%if %{without bootstrap}
|
||||
%files junit-jupiter -f .mfiles-junit-jupiter
|
||||
%endif
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Thu Jan 27 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12.4-2
|
||||
- Don't build mockito-junit-jupiter in bootstrap mode
|
||||
|
||||
* Sat Jan 22 2022 Jerry James <loganjerry@gmail.com> - 3.12.4-1
|
||||
- Version 3.12.4
|
||||
- Add inline and junit-jupiter subpackages
|
||||
|
Loading…
Reference in New Issue
Block a user