Name: easymock3 Version: 3.1 Release: %mkrel 9 Summary: Easy mock objects Group: Development/Java License: ASL 2.0 URL: http://www.easymock.org # svn export https://easymock.svn.sourceforge.net/svnroot/easymock/tags/easymock-3.1 easymock3-3.1 # tar cfJ easymock3-3.1.tar.xz easymock3-3.1 Source0: %{name}-%{version}.tar.xz # Fix the artifiact id and object id of cglib, it should be net.sf.cglib:cglib # instead of cglib:cglib-nodep: Patch0: %{name}-fix-cglib-aid-and-gid.patch # Build the core only (no class extension or OSGi support): Patch1: %{name}-build-the-core-only.patch # Backport upstream fixes for Java 7: Patch2: %{name}-backport-of-easymock-101.patch # Remove tests that fail (please add them again when 3.1.1 is released): Patch3: %{name}-remove-failing-tests.patch BuildArch: noarch BuildRequires: apache-resource-bundles BuildRequires: java-devel >= 1:1.7.0 BuildRequires: jpackage-utils BuildRequires: junit BuildRequires: maven BuildRequires: maven-remote-resources-plugin BuildRequires: maven-surefire-provider-junit4 BuildRequires: maven-timestamp-plugin BuildRequires: objenesis BuildRequires: cglib Requires: java Requires: jpackage-utils Requires: objenesis %description EasyMock provides Mock Objects for interfaces in JUnit tests by generating them on the fly using Java's proxy mechanism. Due to EasyMock's unique style of recording expectations, most refactorings will not affect the Mock Objects. So EasyMock is a perfect fit for Test-Driven Development. %package javadoc Summary: Javadoc for %{name} Group: Development/Java Requires: jpackage-utils %description javadoc Javadoc for %{name}. %prep # Unpack the sources: %setup -q # Apply the patches: %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build mvn-rpmbuild \ -Dmaven.test.failure.ignore \ -Dproject.build.sourceEncoding=ISO-8859-1 \ install \ javadoc:aggregate %install # Jar files: install -dm 755 %{buildroot}%{_javadir} install -pm 644 easymock/target/easymock-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar # POM files: install -dm 755 %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-parent.pom install -pm 644 easymock/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom # Javadoc files: install -dm 755 %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} # Dependencies map: %add_maven_depmap JPP-%{name}-parent.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar %files %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %{_javadir}/* %doc easymock/LICENSE.txt %files javadoc %{_javadocdir}/%{name} %doc easymock/LICENSE.txt %changelog * Fri Jan 11 2013 umeabot <umeabot> 3.1-9.mga3 + Revision: 349274 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Sep 13 2012 dmorgan <dmorgan> 3.1-8.mga3 + Revision: 293335 - Rebuild with java7 * Sun Sep 09 2012 dmorgan <dmorgan> 3.1-1.mga3 + Revision: 290669 - imported package easymock3