|
|
9904bf1 |
Name: jmock
|
|
|
9904bf1 |
Version: 2.12.0
|
|
|
f61bfbc |
Release: 2%{?dist}
|
|
|
9904bf1 |
Summary: Java library for testing code with mock objects
|
|
|
9904bf1 |
License: BSD
|
|
|
7f0bec7 |
|
|
|
9904bf1 |
URL: http://www.jmock.org/
|
|
|
9904bf1 |
Source0: https://github.com/jmock-developers/jmock-library/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
f61bfbc |
# Adapt to junit 4.13
|
|
|
f61bfbc |
# See https://github.com/jmock-developers/jmock-library/pull/200
|
|
|
f61bfbc |
Patch0: %{name}-junit4.13.patch
|
|
|
9904bf1 |
|
|
|
9904bf1 |
BuildArch: noarch
|
|
|
1dd265f |
|
|
|
cbbc21c |
BuildRequires: maven-local
|
|
|
cbbc21c |
BuildRequires: mvn(cglib:cglib)
|
|
|
9904bf1 |
BuildRequires: mvn(com.google.auto.service:auto-service)
|
|
|
9904bf1 |
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
|
|
9904bf1 |
BuildRequires: mvn(javax.xml.ws:jaxws-api)
|
|
|
cbbc21c |
BuildRequires: mvn(junit:junit)
|
|
|
9904bf1 |
BuildRequires: mvn(net.bytebuddy:byte-buddy)
|
|
|
9904bf1 |
BuildRequires: mvn(org.apache-extras.beanshell:bsh)
|
|
|
cbbc21c |
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
|
|
|
cbbc21c |
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
|
|
|
9904bf1 |
BuildRequires: mvn(org.hamcrest:hamcrest)
|
|
|
cbbc21c |
BuildRequires: mvn(org.hamcrest:hamcrest-library)
|
|
|
9904bf1 |
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
|
|
|
9904bf1 |
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine)
|
|
|
9904bf1 |
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-params)
|
|
|
9904bf1 |
BuildRequires: mvn(org.junit.platform:junit-platform-launcher)
|
|
|
cbbc21c |
BuildRequires: mvn(org.objenesis:objenesis)
|
|
|
cbbc21c |
BuildRequires: mvn(org.ow2.asm:asm)
|
|
|
cbbc21c |
|
|
|
9904bf1 |
# required for some unit tests
|
|
|
9904bf1 |
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform)
|
|
|
7f0bec7 |
|
|
|
7f0bec7 |
%description
|
|
|
7f0bec7 |
Mock objects help you design and test the interactions between the objects in
|
|
|
7f0bec7 |
your programs.
|
|
|
7f0bec7 |
The jMock library:
|
|
|
7f0bec7 |
* makes it quick and easy to define mock objects, so you don't break the
|
|
|
7f0bec7 |
rhythm of programming.
|
|
|
7f0bec7 |
* lets you precisely specify the interactions between your objects, reducing
|
|
|
7f0bec7 |
the brittleness of your tests.
|
|
|
7f0bec7 |
* works well with the auto-completion and re-factoring features of your IDE
|
|
|
7f0bec7 |
* plugs into your favorite test framework
|
|
|
7f0bec7 |
* is easy to extend.
|
|
|
7f0bec7 |
|
|
|
9904bf1 |
|
|
|
cf3d99c |
%package example
|
|
|
9904bf1 |
Summary: jMock Examples
|
|
|
cf3d99c |
|
|
|
cf3d99c |
%description example
|
|
|
cf3d99c |
jMock Examples.
|
|
|
cf3d99c |
|
|
|
9904bf1 |
|
|
|
9904bf1 |
%package imposters
|
|
|
9904bf1 |
Summary: jMock imposters
|
|
|
9904bf1 |
|
|
|
9904bf1 |
%description imposters
|
|
|
9904bf1 |
jMock imposters.
|
|
|
9904bf1 |
|
|
|
9904bf1 |
|
|
|
cf3d99c |
%package junit3
|
|
|
9904bf1 |
Summary: jMock JUnit 3 Integration
|
|
|
cf3d99c |
|
|
|
cf3d99c |
%description junit3
|
|
|
cf3d99c |
jMock JUnit 3 Integration.
|
|
|
cf3d99c |
|
|
|
9904bf1 |
|
|
|
cf3d99c |
%package junit4
|
|
|
9904bf1 |
Summary: jMock JUnit 4 Integration
|
|
|
cf3d99c |
|
|
|
cf3d99c |
%description junit4
|
|
|
cf3d99c |
jMock JUnit 4 Integration.
|
|
|
cf3d99c |
|
|
|
9904bf1 |
|
|
|
9904bf1 |
%package junit5
|
|
|
9904bf1 |
Summary: jMock JUnit 5 Integration
|
|
|
9904bf1 |
|
|
|
9904bf1 |
%description junit5
|
|
|
9904bf1 |
jMock JUnit 5 Integration.
|
|
|
9904bf1 |
|
|
|
9904bf1 |
|
|
|
cf3d99c |
%package legacy
|
|
|
9904bf1 |
Summary: jMock Legacy Plugins
|
|
|
cf3d99c |
|
|
|
cf3d99c |
%description legacy
|
|
|
cf3d99c |
Plugins that make it easier to use jMock with legacy code.
|
|
|
cf3d99c |
|
|
|
9904bf1 |
|
|
|
cf3d99c |
%package parent
|
|
|
9904bf1 |
Summary: jMock Parent POM
|
|
|
cf3d99c |
|
|
|
cf3d99c |
%description parent
|
|
|
cf3d99c |
jMock Parent POM.
|
|
|
cf3d99c |
|
|
|
9904bf1 |
|
|
|
cf3d99c |
%package testjar
|
|
|
9904bf1 |
Summary: jMock Test Jar
|
|
|
cf3d99c |
|
|
|
cf3d99c |
%description testjar
|
|
|
cf3d99c |
Source for JAR files used in jMock Core tests.
|
|
|
cf3d99c |
|
|
|
9904bf1 |
|
|
|
7f0bec7 |
%package javadoc
|
|
|
9904bf1 |
Summary: Javadoc for %{name}
|
|
|
7f0bec7 |
|
|
|
7f0bec7 |
%description javadoc
|
|
|
7f0bec7 |
This package contains javadoc for %{name}.
|
|
|
7f0bec7 |
|
|
|
9904bf1 |
|
|
|
7f0bec7 |
%prep
|
|
|
f61bfbc |
%autosetup -p1 -n %{name}-library-%{version}
|
|
|
1dd265f |
|
|
|
db4ead7 |
# remove unnecessary dependency on parent POM
|
|
|
db4ead7 |
%pom_remove_parent
|
|
|
db4ead7 |
|
|
|
9904bf1 |
# remove maven plugins that are not required for RPM builds
|
|
|
9904bf1 |
%pom_remove_plugin :maven-enforcer-plugin
|
|
|
1dd265f |
%pom_remove_plugin :maven-javadoc-plugin
|
|
|
1dd265f |
%pom_remove_plugin :maven-source-plugin
|
|
|
9904bf1 |
%pom_remove_plugin :nexus-staging-maven-plugin
|
|
|
9904bf1 |
%pom_remove_plugin -r :versions-maven-plugin
|
|
|
1dd265f |
%pom_remove_plugin :maven-gpg-plugin testjar
|
|
|
1dd265f |
|
|
|
9904bf1 |
# use correct maven artifact for @javax.annotations.Nullable
|
|
|
9904bf1 |
%pom_change_dep com.google.code.findbugs:annotations com.google.code.findbugs:jsr305 testjar
|
|
|
1dd265f |
|
|
|
9904bf1 |
# don't install imposters-tests package
|
|
|
9904bf1 |
%mvn_package org.jmock:jmock-imposters-tests __noinstall
|
|
|
1dd265f |
|
|
|
7f0bec7 |
|
|
|
7f0bec7 |
%build
|
|
|
9904bf1 |
%mvn_build -s
|
|
|
9904bf1 |
|
|
|
7f0bec7 |
|
|
|
7f0bec7 |
%install
|
|
|
1dd265f |
%mvn_install
|
|
|
7f0bec7 |
|
|
|
9904bf1 |
|
|
|
9904bf1 |
%files -f .mfiles-%{name}
|
|
|
631b0eb |
%doc README*
|
|
|
631b0eb |
%license LICENSE.txt
|
|
|
7f0bec7 |
|
|
|
9904bf1 |
%files example -f .mfiles-%{name}-example
|
|
|
9904bf1 |
%files imposters -f .mfiles-%{name}-imposters
|
|
|
9904bf1 |
%files junit3 -f .mfiles-%{name}-junit3
|
|
|
9904bf1 |
%files junit4 -f .mfiles-%{name}-junit4
|
|
|
9904bf1 |
%files junit5 -f .mfiles-%{name}-junit5
|
|
|
9904bf1 |
%files legacy -f .mfiles-%{name}-legacy
|
|
|
cf3d99c |
|
|
|
9904bf1 |
%files parent -f .mfiles-%{name}-parent
|
|
|
cf3d99c |
%license LICENSE.txt
|
|
|
cf3d99c |
|
|
|
9904bf1 |
%files testjar -f .mfiles-%{name}-testjar
|
|
|
cf3d99c |
%license LICENSE.txt
|
|
|
cf3d99c |
|
|
|
9904bf1 |
%files javadoc -f .mfiles-javadoc
|
|
|
631b0eb |
%license LICENSE.txt
|
|
|
7f0bec7 |
|
|
|
9904bf1 |
|
|
|
7f0bec7 |
%changelog
|
|
|
f61bfbc |
* Sat Aug 15 2020 Jerry James <loganjerry@gmail.com> - 2.12.0-2
|
|
|
f61bfbc |
- Add jmock-junit4.13.patch to fix test failure with junit4.13
|
|
|
f61bfbc |
|
|
|
9904bf1 |
* Tue Jul 28 2020 Fabio Valentini <decathorpe@gmail.com> - 2.12.0-1
|
|
|
9904bf1 |
- Update to version 2.12.0.
|
|
|
9904bf1 |
|
|
|
4fa819b |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-13
|
|
|
4fa819b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
4fa819b |
|
|
|
cbbc21c |
* Mon Jul 20 2020 Mat Booth <mat.booth@redhat.com> - 2.8.2-12
|
|
|
cbbc21c |
- Allow building against JDK 11
|
|
|
cbbc21c |
|
|
|
2ddfda3 |
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 2.8.2-11
|
|
|
2ddfda3 |
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
2ddfda3 |
|
|
|
f02ee6f |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-10
|
|
|
f02ee6f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
f02ee6f |
|
|
|
db4ead7 |
* Tue Nov 19 2019 Fabio Valentini <decathorpe@gmail.com> - 2.8.2-9
|
|
|
db4ead7 |
- Remove unnecessary dependency on parent POM.
|
|
|
db4ead7 |
|
|
|
be3f4c2 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-8
|
|
|
be3f4c2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
be3f4c2 |
|
|
|
930c33f |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-7
|
|
|
930c33f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
930c33f |
|
|
|
e54f6b7 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-6
|
|
|
e54f6b7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
e54f6b7 |
|
|
|
48aac95 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-5
|
|
|
48aac95 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
48aac95 |
|
|
|
ebcf94d |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-4
|
|
|
ebcf94d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
ebcf94d |
|
|
|
b786860 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-3
|
|
|
b786860 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
b786860 |
|
|
|
5e399fe |
* Fri Jul 08 2016 gil cattaneo <puntogil@libero.it> 2.8.2-2
|
|
|
5e399fe |
- disable test failure
|
|
|
5e399fe |
|
|
|
cf3d99c |
* Sun Mar 06 2016 gil cattaneo <puntogil@libero.it> 2.8.2-1
|
|
|
cf3d99c |
- updated to 2.8.2
|
|
|
cf3d99c |
|
|
|
19a7546 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-3
|
|
|
19a7546 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
19a7546 |
|
|
|
0ff53c3 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-2
|
|
|
0ff53c3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
0ff53c3 |
|
|
|
1dd265f |
* Wed Jun 03 2015 gil cattaneo <puntogil@libero.it> 2.8.1-1
|
|
|
1dd265f |
- updated to 2.8.1
|
|
|
1dd265f |
|
|
|
631b0eb |
* Fri Feb 06 2015 gil cattaneo <puntogil@libero.it> 2.5.1-8
|
|
|
631b0eb |
- introduce license macro
|
|
|
631b0eb |
|
|
|
6d63b79 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-7
|
|
|
6d63b79 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
6d63b79 |
|
|
|
6cc46b0 |
* Thu May 22 2014 gil cattaneo <puntogil@libero.it> 2.5.1-6
|
|
|
6cc46b0 |
- Use .mfiles generated during build
|
|
|
6cc46b0 |
- Fix junit dep
|
|
|
6cc46b0 |
|
|
|
0be142d |
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.5.1-5
|
|
|
0be142d |
- Use Requires: java-headless rebuild (#1067528)
|
|
|
0be142d |
|
|
|
ba6c291 |
* Fri Nov 15 2013 gil cattaneo <puntogil@libero.it> 2.5.1-4
|
|
|
ba6c291 |
- use objectweb-asm3
|
|
|
ba6c291 |
|
|
|
4b4a8cf |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-3
|
|
|
4b4a8cf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
4b4a8cf |
|
|
|
e072fc5 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-2
|
|
|
e072fc5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
e072fc5 |
|
|
|
7f0bec7 |
* Thu Apr 19 2012 gil cattaneo <puntogil@libero.it> 2.5.1-1
|
|
|
cf3d99c |
- initial rpm
|
|
|
9904bf1 |
|