|
|
2bed83 |
%global pkg_name easymock2
|
|
|
2bed83 |
%{?scl:%scl_package %{pkg_name}}
|
|
|
2bed83 |
%{?java_common_find_provides_and_requires}
|
|
|
2bed83 |
|
|
|
2bed83 |
Name: %{?scl_prefix}%{pkg_name}
|
|
|
2bed83 |
Version: 2.5.2
|
|
|
2bed83 |
Release: 12.15%{?dist}
|
|
|
2bed83 |
Summary: Easy mock objects
|
|
|
2bed83 |
License: ASL 2.0
|
|
|
2bed83 |
URL: http://easymock.org/
|
|
|
2bed83 |
# generated by sh fetch-easymock.sh
|
|
|
2bed83 |
Source0: easymock-%{version}.tgz
|
|
|
2bed83 |
# extracted from http://download.eclipse.org/tools/orbit/downloads/drops/R20090529135407/bundles/org.easymock_2.4.0.v20090202-0900.jar#META-INF/MANIFEST.MF
|
|
|
2bed83 |
Source1: easymock-MANIFEST.MF
|
|
|
2bed83 |
# generated by mvn ant:ant
|
|
|
2bed83 |
Source2: build.xml.tar.gz
|
|
|
2bed83 |
Source3: fetch-easymock.sh
|
|
|
2bed83 |
Patch0: easymock2-nameClash.patch
|
|
|
2bed83 |
|
|
|
2bed83 |
BuildRequires: %{?scl_prefix}javapackages-tools
|
|
|
2bed83 |
BuildRequires: %{?scl_prefix}ant >= 0:1.6
|
|
|
2bed83 |
BuildRequires: %{?scl_prefix}junit >= 3.8.1
|
|
|
2bed83 |
BuildRequires: zip
|
|
|
2bed83 |
BuildArch: noarch
|
|
|
2bed83 |
Requires: %{?scl_prefix}javapackages-tools >= 0:1.7.2
|
|
|
2bed83 |
|
|
|
2bed83 |
%description
|
|
|
2bed83 |
EasyMock provides Mock Objects for interfaces in JUnit tests by generating
|
|
|
2bed83 |
them on the fly using Java's proxy mechanism. Due to EasyMock's unique style
|
|
|
2bed83 |
of recording expectations, most refactorings will not affect the Mock Objects.
|
|
|
2bed83 |
So EasyMock is a perfect fit for Test-Driven Development.
|
|
|
2bed83 |
|
|
|
2bed83 |
%package javadoc
|
|
|
2bed83 |
Summary: Javadoc for %{pkg_name}
|
|
|
2bed83 |
|
|
|
2bed83 |
%description javadoc
|
|
|
2bed83 |
Javadoc for %{pkg_name}.
|
|
|
2bed83 |
|
|
|
2bed83 |
%prep
|
|
|
2bed83 |
%setup -q -n easymock
|
|
|
2bed83 |
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
|
|
|
2bed83 |
set -e -x
|
|
|
2bed83 |
%patch0 -p2
|
|
|
2bed83 |
mkdir -p .m2/repository/JPP/maven2/default_poms
|
|
|
2bed83 |
tar xzf %{SOURCE2}
|
|
|
2bed83 |
|
|
|
2bed83 |
# remove all binary libs
|
|
|
2bed83 |
find . -name "*.jar" -exec rm -f {} \;
|
|
|
2bed83 |
%{?scl:EOF}
|
|
|
2bed83 |
|
|
|
2bed83 |
%build
|
|
|
2bed83 |
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
|
|
|
2bed83 |
set -e -x
|
|
|
2bed83 |
ant -Dmaven.mode.offline=true -Dmaven.repo.local=.m2 -Dmaven.test.skip=true package javadoc
|
|
|
2bed83 |
mv target/easymock-2.5.jar target/%{pkg_name}-%{version}.jar
|
|
|
2bed83 |
|
|
|
2bed83 |
# inject OSGi manifests
|
|
|
2bed83 |
mkdir -p META-INF
|
|
|
2bed83 |
cp -p %{SOURCE1} META-INF/MANIFEST.MF
|
|
|
2bed83 |
touch META-INF/MANIFEST.MF
|
|
|
2bed83 |
zip -u target/%{pkg_name}-%{version}.jar META-INF/MANIFEST.MF
|
|
|
2bed83 |
%{?scl:EOF}
|
|
|
2bed83 |
|
|
|
2bed83 |
%install
|
|
|
2bed83 |
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
|
|
|
2bed83 |
set -e -x
|
|
|
2bed83 |
# jars
|
|
|
2bed83 |
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
2bed83 |
|
|
|
2bed83 |
install -m 644 target/%{pkg_name}-%{version}.jar \
|
|
|
2bed83 |
%{buildroot}%{_javadir}/%{pkg_name}.jar
|
|
|
2bed83 |
|
|
|
2bed83 |
# pom
|
|
|
2bed83 |
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
2bed83 |
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{pkg_name}.pom
|
|
|
2bed83 |
%add_maven_depmap -v 2.4,2.5.2
|
|
|
2bed83 |
|
|
|
2bed83 |
# javadoc
|
|
|
2bed83 |
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
2bed83 |
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
2bed83 |
%{?scl:EOF}
|
|
|
2bed83 |
|
|
|
2bed83 |
%files -f .mfiles
|
|
|
2bed83 |
%doc LICENSE.txt
|
|
|
2bed83 |
|
|
|
2bed83 |
%files javadoc
|
|
|
2bed83 |
%doc LICENSE.txt
|
|
|
2bed83 |
%doc %{_javadocdir}/*
|
|
|
2bed83 |
|
|
|
2bed83 |
%changelog
|
|
|
2bed83 |
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 2.5.2-12.15
|
|
|
2bed83 |
- Mass rebuild 2015-01-13
|
|
|
2bed83 |
|
|
|
2bed83 |
* Fri Jan 9 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.14
|
|
|
2bed83 |
- Add compat version 2.5.2
|
|
|
2bed83 |
|
|
|
2bed83 |
* Fri Jan 09 2015 Michal Srb <msrb@redhat.com> - 2.5.2-12.13
|
|
|
2bed83 |
- Mass rebuild 2015-01-09
|
|
|
2bed83 |
|
|
|
2bed83 |
* Wed Jan 07 2015 Michal Srb <msrb@redhat.com> - 2.5.2-12.12
|
|
|
2bed83 |
- Migrate to .mfiles
|
|
|
2bed83 |
|
|
|
2bed83 |
* Tue Dec 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.11
|
|
|
2bed83 |
- Migrate requires and build-requires to rh-java-common
|
|
|
2bed83 |
|
|
|
2bed83 |
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.10
|
|
|
2bed83 |
- Mass rebuild 2014-12-15
|
|
|
2bed83 |
|
|
|
2bed83 |
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.9
|
|
|
2bed83 |
- Rebuild for rh-java-common collection
|
|
|
2bed83 |
|
|
|
2bed83 |
* Mon Jun 2 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.8
|
|
|
2bed83 |
- Install javadocs to unversioned directory
|
|
|
2bed83 |
|
|
|
2bed83 |
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.7
|
|
|
2bed83 |
- Mass rebuild 2014-05-26
|
|
|
2bed83 |
|
|
|
2bed83 |
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.6
|
|
|
2bed83 |
- Mass rebuild 2014-02-19
|
|
|
2bed83 |
|
|
|
2bed83 |
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.5
|
|
|
2bed83 |
- Mass rebuild 2014-02-18
|
|
|
2bed83 |
|
|
|
2bed83 |
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.4
|
|
|
2bed83 |
- Remove requires on java
|
|
|
2bed83 |
|
|
|
2bed83 |
* Mon Feb 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.3
|
|
|
2bed83 |
- SCL-ize build-requires
|
|
|
2bed83 |
|
|
|
2bed83 |
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.2
|
|
|
2bed83 |
- Rebuild to regenerate auto-requires
|
|
|
2bed83 |
|
|
|
2bed83 |
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-12.1
|
|
|
2bed83 |
- First maven30 software collection build
|
|
|
2bed83 |
|
|
|
2bed83 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.5.2-12
|
|
|
2bed83 |
- Mass rebuild 2013-12-27
|
|
|
2bed83 |
|
|
|
2bed83 |
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-11
|
|
|
2bed83 |
- Rebuild to regenerate API documentation
|
|
|
2bed83 |
- Resolves: CVE-2013-1571
|
|
|
2bed83 |
|
|
|
2bed83 |
* Fri May 31 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-10
|
|
|
2bed83 |
- Convert to a compat package
|
|
|
2bed83 |
- Resolves: rhbz#969376
|
|
|
2bed83 |
|
|
|
2bed83 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.2-9
|
|
|
2bed83 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
2bed83 |
|
|
|
2bed83 |
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.2-8
|
|
|
2bed83 |
- Install LICENSE with javadoc package
|
|
|
2bed83 |
- Don't own _mavendepmapfragdir
|
|
|
2bed83 |
- Install POM in _mavenpomdir instead of _datadir/maven2/poms
|
|
|
2bed83 |
- Update to current packaging guidelines
|
|
|
2bed83 |
|
|
|
2bed83 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.2-7
|
|
|
2bed83 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
2bed83 |
|
|
|
2bed83 |
* Thu Feb 23 2012 Jiri Vanek <jvanek@redhat.com> - 2.5.2-6
|
|
|
2bed83 |
- Fixed for JDK7 - https://fedoraproject.org/wiki/Java7_Package_Rebuild_Status
|
|
|
2bed83 |
- Added and aplied patch0, easymock2-nameClash.patch.
|
|
|
2bed83 |
This patch is removing (in easymock3 deprecated) methods, and is keeping new
|
|
|
2bed83 |
easymock3 api in EasyMock.java for capture set of methods.
|
|
|
2bed83 |
Old methods cant be kept as deprecated as JDK7 can not compile them.
|
|
|
2bed83 |
Test was derived from easymock3' one too.
|
|
|
2bed83 |
|
|
|
2bed83 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.2-5
|
|
|
2bed83 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
2bed83 |
|
|
|
2bed83 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.2-4
|
|
|
2bed83 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
2bed83 |
|
|
|
2bed83 |
* Wed Dec 8 2010 Alexander Kurtakov <akurtako@redhat.com> 2.5.2-3
|
|
|
2bed83 |
- BR zip.
|
|
|
2bed83 |
- Don't install versioned jar.
|
|
|
2bed83 |
- Use standard file permissions.
|
|
|
2bed83 |
|
|
|
2bed83 |
* Wed Jul 21 2010 Alexander Kurtakov <akurtako@redhat.com> 2.5.2-2
|
|
|
2bed83 |
- Fix maven depmap.
|
|
|
2bed83 |
|
|
|
2bed83 |
* Fri Jan 15 2010 Alexander Kurtakov <akurtako@redhat.com> 2.5.2-1
|
|
|
2bed83 |
- Update to upstream 2.5.2.
|
|
|
2bed83 |
- Now under ASL 2.0 license.
|
|
|
2bed83 |
|
|
|
2bed83 |
* Wed Oct 21 2009 Alexander Kurtakov <akurtako@redhat.com> 2.5-4
|
|
|
2bed83 |
- Fix empty jar. Bug #530110.
|
|
|
2bed83 |
|
|
|
2bed83 |
* Mon Aug 17 2009 Alexander Kurtakov <akurtako@redhat.com> 2.5-3
|
|
|
2bed83 |
- Renamed to easymock2.
|
|
|
2bed83 |
|
|
|
2bed83 |
* Mon Aug 17 2009 Alexander Kurtakov <akurtako@redhat.com> 2.5-2
|
|
|
2bed83 |
- Use %%{buildroot} instead of $RPM_BUILD_ROOT.
|
|
|
2bed83 |
- Add comment for MANIFEST.MF origin.
|
|
|
2bed83 |
|
|
|
2bed83 |
* Fri Aug 14 2009 Alexander Kurtakov <akurtako@redhat.com> 2.5-1
|
|
|
2bed83 |
- Initial package.
|