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