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