605d92
# Copyright (c) 2000-2009, JPackage Project
605d92
# All rights reserved.
605d92
#
605d92
# Redistribution and use in source and binary forms, with or without
605d92
# modification, are permitted provided that the following conditions
605d92
# are met:
605d92
#
605d92
# 1. Redistributions of source code must retain the above copyright
605d92
#    notice, this list of conditions and the following disclaimer.
605d92
# 2. Redistributions in binary form must reproduce the above copyright
605d92
#    notice, this list of conditions and the following disclaimer in the
605d92
#    documentation and/or other materials provided with the
605d92
#    distribution.
605d92
# 3. Neither the name of the JPackage Project nor the names of its
605d92
#    contributors may be used to endorse or promote products derived
605d92
#    from this software without specific prior written permission.
605d92
#
605d92
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
605d92
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
605d92
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
605d92
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
605d92
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
605d92
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
605d92
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
605d92
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
605d92
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
605d92
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
605d92
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
605d92
#
605d92
605d92
Name:           easymock
605d92
Version:        1.2
605d92
Release:        22%{?dist}
605d92
Epoch:          0
605d92
Summary:        Easy mock objects
605d92
Group:          Development/Libraries
605d92
License:        MIT
605d92
URL:            http://www.easymock.org/
605d92
# cvs -d:pserver:anonymous@easymock.cvs.sourceforge.net:/cvsroot/easymock login
605d92
# cvs -z3 -d:pserver:anonymous@easymock.cvs.sourceforge.net:/cvsroot/easymock export -r EasyMock1_2_Java1_3 easymock
605d92
# tar czf easymock-1.2-src.tar.gz easymock
605d92
Source0:        easymock-1.2-src.tar.gz
605d92
Source1:        http://repo1.maven.org/maven2/easymock/easymock/1.2_Java1.5/easymock-1.2_Java1.5.pom
605d92
Source2:        easymock-component-info.xml
605d92
# Starting with version 2.5.1, EasyMock changed its license to Apache 2.
605d92
# Older versions are still available under MIT License
605d92
# See http://www.easymock.org/License.html
605d92
Source3:        LICENSE
605d92
Patch0:         easymock-1.2-build_xml.patch
605d92
Patch1:         %{name}-removed-test.patch
605d92
Patch2:         %{name}-removed-alltests.patch
605d92
BuildRequires:  jpackage-utils >= 0:1.6
605d92
BuildRequires:  ant >= 0:1.6
605d92
BuildRequires:  ant-junit >= 0:1.6
605d92
BuildRequires:  junit >= 0:3.8.1
605d92
BuildRequires:  java-devel >= 0:1.5.0
605d92
BuildArch:      noarch
605d92
605d92
%description
605d92
EasyMock provides Mock Objects for interfaces in JUnit tests by generating
605d92
them on the fly using Java's proxy mechanism. Due to EasyMock's unique style
605d92
of recording expectations, most refactorings will not affect the Mock Objects.
605d92
So EasyMock is a perfect fit for Test-Driven Development.
605d92
605d92
%package        javadoc
605d92
Summary:        Javadoc for %{name}
605d92
Group:          Documentation
605d92
605d92
%description    javadoc
605d92
Javadoc for %{name}.
605d92
605d92
%prep
605d92
%setup -q -n %{name}
605d92
%patch0 -p0
605d92
%patch1 -p1
605d92
%patch2 -p1
605d92
cp %{SOURCE3} .
605d92
mkdir lib
605d92
pushd lib
605d92
ln -sf $(build-classpath junit) .
605d92
popd
605d92
605d92
# We no longer ship a 1.3/1.4 VM, Set it to generic javahome
605d92
rm easymockbuild.properties
605d92
echo "java\ 1.3=%{java}" >> easymockbuild.properties
605d92
echo "java\ 1.4=%{java}" >> easymockbuild.properties
605d92
echo "java\ 1.5=%{java}" >> easymockbuild.properties
605d92
echo "java\ compiler=%{javac}" >> easymockbuild.properties
605d92
605d92
%build
605d92
export OPT_JAR_LIST="ant/ant-junit junit"
605d92
export CLASSPATH=
605d92
%{ant} -Dbuild.sysclasspath=first
605d92
605d92
%install
605d92
unzip -qq %{name}%{version}_Java1.3.zip
605d92
install -dm 755 $RPM_BUILD_ROOT%{_javadir}
605d92
605d92
install -pm 644 %{name}%{version}_Java1.3/%{name}.jar \
605d92
  $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
605d92
605d92
# javadoc
605d92
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
605d92
cp -pr %{name}%{version}_Java1.3/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
605d92
605d92
# pom
605d92
install -dm 755 $RPM_BUILD_ROOT%{_mavenpomdir}
605d92
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
605d92
%add_maven_depmap
605d92
605d92
605d92
%files
605d92
%doc LICENSE
605d92
%doc %{name}%{version}_Java1.3/{Documentation,License}.html
605d92
%{_mavenpomdir}/*
605d92
%{_mavendepmapfragdir}/*
605d92
%{_javadir}/%{name}.jar
605d92
605d92
%files javadoc
605d92
%doc LICENSE
605d92
%{_javadocdir}/%{name}
605d92
605d92
%changelog
605d92
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 01.2-22
605d92
- Mass rebuild 2013-12-27
605d92
605d92
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.2-21
605d92
- Rebuild to regenerate API documentation
605d92
- Resolves: CVE-2013-1571
605d92
605d92
* Mon Feb 18 2013 Tomas Radej <tradej@redhat.com> - 0:1.2-20
605d92
- Fixed sources (bz #905973)
605d92
605d92
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-19
605d92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
605d92
605d92
* Tue Nov 27 2012 Tomas Radej <tradej@redhat.com> - 0:1.2-18
605d92
- Removed ownership of _mavenpomdir
605d92
605d92
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.2-17
605d92
- Add LICENSE file
605d92
- Remove rpm bug workaround
605d92
- Update to current packaging guidelines
605d92
605d92
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-16
605d92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
605d92
605d92
* Tue Feb 21 2012 Tomas Radej <tradej@redhat.com> - 0:1.2-15
605d92
- Removed test
605d92
605d92
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-14
605d92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
605d92
605d92
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-13
605d92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
605d92
605d92
* Fri Nov 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.2-12
605d92
- Fix pom filename (Resolves rhbz#655795)
605d92
- Remove clean section and buildroot declaration
605d92
- Remove versioned jars and pom files
605d92
605d92
* Thu Aug 20 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-11
605d92
- Bump release for rebuild.
605d92
605d92
* Thu Aug 20 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-10
605d92
- Disable tests.
605d92
605d92
* Mon May 18 2009 Fernando Nasser <fnasser@redhat.com> 0:1.2-9
605d92
- Update instructions for obtaining source tar ball
605d92
605d92
* Mon May 04 2009 Yong Yang <yyang@redhat.com> 0:1.2-8
605d92
- Rebuild with maven2-2.0.8 built in non-bootstrap mode
605d92
605d92
* Wed Mar 18 2009 Yong Yang <yyang@redhat.com>  0:1.2-7
605d92
- merge from JPP-6
605d92
- rebuild with new maven2 2.0.8 built in bootstrap mode
605d92
605d92
* Mon Feb 02 2009 David Walluck <dwalluck@redhat.com> 0:1.2-6
605d92
- fix component-info.xml
605d92
605d92
* Mon Feb 02 2009 David Walluck <dwalluck@redhat.com> 0:1.2-5
605d92
- remove unneeded maven flag
605d92
605d92
* Mon Feb 02 2009 David Walluck <dwalluck@redhat.com> 0:1.2-4
605d92
- add repolib
605d92
605d92
* Fri Jan 30 2009 Will Tatam <will.tatam@red61.com> 1.2-3.jpp5
605d92
- Inital JPP-5 Build
605d92
605d92
* Fri Jan 09 2009 Yong Yang <yyang@redhat.com> 1.2-2jpp.1
605d92
- Imported from dbhole's maven 2.0.8 packages, initial building on jpp6
605d92
605d92
* Fri Apr 11 2008 Deepak Bhole <dbhole@redhat.com> 1.2-1jpp.1
605d92
- Import from JPackage
605d92
- Add pom file
605d92
605d92
* Fri Feb 24 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.2-1jpp
605d92
- Update to 1.2 keeping only java 1.4 requirement
605d92
605d92
* Fri Feb 24 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.1-3jpp
605d92
- drop java-1.3.1 requirement
605d92
605d92
* Mon Oct 04 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1-2jpp
605d92
- Fixed Url, Summary, Description and License
605d92
605d92
* Mon Oct 04 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1-1jpp
605d92
- First JPackage release