66c5a9
Name:           easymock
66c5a9
Version:        4.0.2
66c5a9
Release:        2%{?dist}
66c5a9
Summary:        Easy mock objects
66c5a9
License:        ASL 2.0
66c5a9
URL:            http://www.easymock.org
66c5a9
66c5a9
# ./generate-tarball.sh
66c5a9
Source0:        %{name}-%{version}.tar.gz
66c5a9
# Remove bundled binaries which cannot be easily verified for licensing
66c5a9
Source1:        generate-tarball.sh
66c5a9
66c5a9
Patch1:         0001-Disable-android-support.patch
66c5a9
Patch2:         0002-Unshade-cglib-and-asm.patch
66c5a9
Patch3:         0003-Fix-OSGi-manifest.patch
66c5a9
Patch4:         0004-Port-to-hamcrest-2.1.patch
66c5a9
66c5a9
BuildArch:      noarch
66c5a9
66c5a9
BuildRequires:  maven-local
66c5a9
BuildRequires:  mvn(cglib:cglib)
66c5a9
BuildRequires:  mvn(junit:junit)
66c5a9
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
66c5a9
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
66c5a9
BuildRequires:  mvn(org.apache.maven.surefire:surefire-junit47)
66c5a9
BuildRequires:  mvn(org.apache.maven.surefire:surefire-testng)
66c5a9
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
66c5a9
BuildRequires:  mvn(org.objenesis:objenesis)
66c5a9
BuildRequires:  mvn(org.ow2.asm:asm)
66c5a9
BuildRequires:  mvn(org.testng:testng)
66c5a9
# xmvn-builddep misses this:
66c5a9
BuildRequires:  mvn(org.apache:apache-jar-resource-bundle)
66c5a9
66c5a9
Provides:       %{name}3 = %{version}-%{release}
66c5a9
66c5a9
%description
66c5a9
EasyMock provides Mock Objects for interfaces in JUnit tests by generating
66c5a9
them on the fly using Java's proxy mechanism. Due to EasyMock's unique style
66c5a9
of recording expectations, most refactorings will not affect the Mock Objects.
66c5a9
So EasyMock is a perfect fit for Test-Driven Development.
66c5a9
66c5a9
%package javadoc
66c5a9
Summary:        Javadoc for %{name}
66c5a9
66c5a9
%description javadoc
66c5a9
Javadoc for %{name}.
66c5a9
66c5a9
%prep
66c5a9
%setup -q -n %{name}-%{name}-%{version}
66c5a9
66c5a9
%patch1 -p1
66c5a9
%patch2 -p1
66c5a9
%patch3 -p1
66c5a9
%patch4 -p1
66c5a9
66c5a9
%pom_remove_plugin :license-maven-plugin
66c5a9
%pom_remove_plugin :maven-enforcer-plugin
66c5a9
%pom_remove_plugin :animal-sniffer-maven-plugin
66c5a9
%pom_remove_plugin :animal-sniffer-maven-plugin core
66c5a9
66c5a9
# remove android support
66c5a9
rm core/src/main/java/org/easymock/internal/Android*.java
66c5a9
rm core/src/test/java/org/easymock/tests2/ClassExtensionHelperTest.java
66c5a9
%pom_disable_module test-android
66c5a9
%pom_remove_dep :dexmaker core
66c5a9
66c5a9
# unbundle asm and cglib
66c5a9
%pom_disable_module test-nodeps
66c5a9
%pom_remove_plugin :maven-shade-plugin core
66c5a9
66c5a9
# missing test deps
66c5a9
%pom_disable_module test-integration
66c5a9
%pom_disable_module test-osgi
66c5a9
66c5a9
# remove some warning caused by unavailable plugin
66c5a9
%pom_remove_plugin org.codehaus.mojo:versions-maven-plugin
66c5a9
66c5a9
# retired
66c5a9
%pom_remove_plugin :maven-timestamp-plugin
66c5a9
66c5a9
# For compatibility reasons
66c5a9
%mvn_file ":easymock{*}" easymock@1 easymock3@1
66c5a9
66c5a9
# ssh not needed during our builds
66c5a9
%pom_xpath_remove pom:extensions
66c5a9
66c5a9
%build
66c5a9
%mvn_build
66c5a9
66c5a9
%install
66c5a9
%mvn_install
66c5a9
66c5a9
%files -f .mfiles
66c5a9
%license core/LICENSE.txt
66c5a9
66c5a9
%files javadoc -f .mfiles-javadoc
66c5a9
%license core/LICENSE.txt
66c5a9
66c5a9
%changelog
66c5a9
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.2-2
66c5a9
- Mass rebuild for javapackages-tools 201902
66c5a9
66c5a9
* Thu Jul 18 2019 Marian Koncek <mkoncek@redhat.com> - 4.0.2-1
66c5a9
- Update to upstream version 4.0.2
66c5a9
66c5a9
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5-5
66c5a9
- Mass rebuild for javapackages-tools 201901
66c5a9
66c5a9
* Tue Jul 31 2018 Michael Simacek <msimacek@redhat.com> - 3.5-4
66c5a9
- Repack the tarball without binaries
66c5a9
66c5a9
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-3
66c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
66c5a9
66c5a9
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-2
66c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
66c5a9
66c5a9
* Mon Sep 18 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5-1
66c5a9
- Update to upstream version 3.5
66c5a9
66c5a9
* Fri Sep 15 2017 Mat Booth <mat.booth@redhat.com> - 3.4-6
66c5a9
- Regenerate OSGi metadata due to Objectweb ASM upgrade
66c5a9
66c5a9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-5
66c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
66c5a9
66c5a9
* Thu Feb 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4-4
66c5a9
- Add missing BR on apache-resource-bundles
66c5a9
66c5a9
* Tue Feb 07 2017 Michael Simacek <msimacek@redhat.com> - 3.4-3
66c5a9
- Remove useless license-plugin
66c5a9
66c5a9
* Wed Jun  1 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4-2
66c5a9
- Fix OSGi manifest
66c5a9
- Resolves: rhbz#1341052
66c5a9
66c5a9
* Mon May 30 2016 Michael Simacek <msimacek@redhat.com> - 3.4-1
66c5a9
- Update to upstream version 3.4
66c5a9
66c5a9
* Mon May 30 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.1-5
66c5a9
- Port to maven-jar-plugin 3.0.0
66c5a9
66c5a9
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-4
66c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
66c5a9
66c5a9
* Mon Jul 13 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.1-3
66c5a9
- Obsolete easymock2
66c5a9
- Resolves: rhbz#1172958
66c5a9
66c5a9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.1-2
66c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
66c5a9
66c5a9
* Tue May 5 2015 Alexander Kurtakov <akurtako@redhat.com> 3.3.1-1
66c5a9
- Update to upstream 3.3.1 release.
66c5a9
66c5a9
* Sat Mar 07 2015 Michael Simacek <msimacek@redhat.com> - 3.3-2
66c5a9
- Remove retired maven-timestamp-plugin
66c5a9
66c5a9
* Tue Nov 25 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3-1
66c5a9
- Update to upstream version 3.3
66c5a9
66c5a9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-3
66c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
66c5a9
66c5a9
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2-2
66c5a9
- Use Requires: java-headless rebuild (#1067528)
66c5a9
66c5a9
* Fri Aug 30 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.2-1
66c5a9
- Update to upstream version 3.2
66c5a9
66c5a9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-21
66c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
66c5a9
66c5a9
* Mon Feb 18 2013 Tomas Radej <tradej@redhat.com> - 0:1.2-20
66c5a9
- Fixed sources (bz #905973)
66c5a9
66c5a9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-19
66c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
66c5a9
66c5a9
* Tue Nov 27 2012 Tomas Radej <tradej@redhat.com> - 0:1.2-18
66c5a9
- Removed ownership of _mavenpomdir
66c5a9
66c5a9
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.2-17
66c5a9
- Add LICENSE file
66c5a9
- Remove rpm bug workaround
66c5a9
- Update to current packaging guidelines
66c5a9
66c5a9
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-16
66c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
66c5a9
66c5a9
* Tue Feb 21 2012 Tomas Radej <tradej@redhat.com> - 0:1.2-15
66c5a9
- Removed test
66c5a9
66c5a9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-14
66c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
66c5a9
66c5a9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-13
66c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
66c5a9
66c5a9
* Fri Nov 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.2-12
66c5a9
- Fix pom filename (Resolves rhbz#655795)
66c5a9
- Remove clean section and buildroot declaration
66c5a9
- Remove versioned jars and pom files
66c5a9
66c5a9
* Thu Aug 20 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-11
66c5a9
- Bump release for rebuild.
66c5a9
66c5a9
* Thu Aug 20 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-10
66c5a9
- Disable tests.
66c5a9
66c5a9
* Mon May 18 2009 Fernando Nasser <fnasser@redhat.com> 0:1.2-9
66c5a9
- Update instructions for obtaining source tar ball
66c5a9
66c5a9
* Mon May 04 2009 Yong Yang <yyang@redhat.com> 0:1.2-8
66c5a9
- Rebuild with maven2-2.0.8 built in non-bootstrap mode
66c5a9
66c5a9
* Wed Mar 18 2009 Yong Yang <yyang@redhat.com>  0:1.2-7
66c5a9
- merge from JPP-6
66c5a9
- rebuild with new maven2 2.0.8 built in bootstrap mode
66c5a9
66c5a9
* Mon Feb 02 2009 David Walluck <dwalluck@redhat.com> 0:1.2-6
66c5a9
- fix component-info.xml
66c5a9
66c5a9
* Mon Feb 02 2009 David Walluck <dwalluck@redhat.com> 0:1.2-5
66c5a9
- remove unneeded maven flag
66c5a9
66c5a9
* Mon Feb 02 2009 David Walluck <dwalluck@redhat.com> 0:1.2-4
66c5a9
- add repolib
66c5a9
66c5a9
* Fri Jan 30 2009 Will Tatam <will.tatam@red61.com> 1.2-3.jpp5
66c5a9
- Inital JPP-5 Build
66c5a9
66c5a9
* Fri Jan 09 2009 Yong Yang <yyang@redhat.com> 1.2-2jpp.1
66c5a9
- Imported from dbhole's maven 2.0.8 packages, initial building on jpp6
66c5a9
66c5a9
* Fri Apr 11 2008 Deepak Bhole <dbhole@redhat.com> 1.2-1jpp.1
66c5a9
- Import from JPackage
66c5a9
- Add pom file
66c5a9
66c5a9
* Fri Feb 24 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.2-1jpp
66c5a9
- Update to 1.2 keeping only java 1.4 requirement
66c5a9
66c5a9
* Fri Feb 24 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.1-3jpp
66c5a9
- drop java-1.3.1 requirement
66c5a9
66c5a9
* Mon Oct 04 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1-2jpp
66c5a9
- Fixed Url, Summary, Description and License
66c5a9
66c5a9
* Mon Oct 04 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1-1jpp
66c5a9
- First JPackage release