|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
Name: easymock
|
|
|
|
|
Version: 4.2
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Easy mock objects
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: http://www.easymock.org
|
|
|
|
@ -18,12 +18,11 @@ Patch3: 0003-Fix-OSGi-manifest.patch
|
|
|
|
|
Patch4: 0004-Port-to-hamcrest-2.1.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
ExclusiveArch: %{java_arches} noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
BuildRequires: mvn(cglib:cglib)
|
|
|
|
|
BuildRequires: mvn(junit:junit)
|
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
@ -104,17 +103,6 @@ rm core/src/test/java/org/easymock/tests2/ClassExtensionHelperTest.java
|
|
|
|
|
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-surefire-plugin']" \
|
|
|
|
|
"<configuration><testNGArtifactName>none:none</testNGArtifactName></configuration>" core
|
|
|
|
|
|
|
|
|
|
# Workaround Java 17 compatibility issue that should be fixed in
|
|
|
|
|
# easymock 4.4: https://github.com/easymock/easymock/issues/274
|
|
|
|
|
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:configuration" \
|
|
|
|
|
"<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED</argLine>" core
|
|
|
|
|
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:configuration" \
|
|
|
|
|
"<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED</argLine>" test-testng
|
|
|
|
|
%pom_add_plugin :maven-surefire-plugin test-java8 "<configuration>
|
|
|
|
|
<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED</argLine></configuration>"
|
|
|
|
|
%pom_add_plugin :maven-surefire-plugin test-junit5 "<configuration>
|
|
|
|
|
<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED</argLine></configuration>"
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%mvn_build
|
|
|
|
|
|
|
|
|
@ -128,29 +116,15 @@ rm core/src/test/java/org/easymock/tests2/ClassExtensionHelperTest.java
|
|
|
|
|
%license core/LICENSE.txt
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue May 07 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 4.2-10
|
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2024 Marián Konček <mkoncek@redhat.com> - 4.2-10
|
|
|
|
|
- Rebuild to regenerate auto-requires
|
|
|
|
|
|
|
|
|
|
* Mon Feb 05 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2-9
|
|
|
|
|
- Rebuild to regenerate auto-requires
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 4.2-7
|
|
|
|
|
- Rebuilt for java-17-openjdk as system jdk
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.2-6
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Tue Nov 02 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2-5
|
|
|
|
|
- Workaround build issue with OpenJDK 17
|
|
|
|
|
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2-5
|
|
|
|
|
- Rebuild to workaround DistroBaker issue
|
|
|
|
|
|
|
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2-4
|
|
|
|
|
- Bootstrap Maven for CentOS Stream 9
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2-3
|
|
|
|
|
- Bootstrap build
|
|
|
|
|