[Jpackage-commits] dist/easymock2/devel .cvsignore, 1.1, 1.2 easymock-2.0-build_xml.patch, NONE, 1.1 easymock2.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 20:06:18 CEST 2008


Update of /home/projects/jpackage/cvs/dist/easymock2/devel
In directory ryu.zarb.org:/tmp/cvs-serv23237/devel

Modified Files:
	.cvsignore sources 
Added Files:
	easymock-2.0-build_xml.patch easymock2.spec 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/easymock2/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 18:05:59 -0000	1.1
--- .cvsignore	28 May 2008 18:06:16 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ easymock-2.0-src.tar.gz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/easymock2/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 18:05:59 -0000	1.1
--- sources	28 May 2008 18:06:16 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ ed337bf3c4482ad95d22f7afe3c84068  easymock-2.0-src.tar.gz

--- NEW FILE: easymock-2.0-build_xml.patch ---
--- build.xml.sav	2006-02-24 16:55:45.000000000 +0100
+++ build.xml	2006-02-24 16:57:24.000000000 +0100
@@ -19,7 +19,7 @@
 		<property name="clover build directory" value="${temp directory}/bin-clover" />
 		<property name="clover report directory" value="${temp directory}/clover" />
 
-		<property file="${user.home}/easymockbuild.properties" />
+		<property file="easymockbuild.properties" />
 		<property name="java 1.5" value="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java" />
 		<property name="java compiler" value="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/javac" />
 	</target>
@@ -111,7 +111,7 @@
 	</junit>
 </target>
 
-<target name="all" depends="clean, build, build samples and tests, javadoc, (clover), pack distribution, test distribution">
+<target name="all" depends="clean, build, build samples and tests, javadoc, pack distribution, test distribution">
 <antcall target="clean" />
 </target>
 

--- NEW FILE: easymock2.spec ---
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define section   free
%define base_name easymock

Name:           %{base_name}2
Version:        2.0
Release:        1jpp
Epoch:          0
Summary:        Easy mock objects

Group:          Development/Libraries/Java
License:        MIT
URL:            http://www.easymock.org/
Source0:        easymock-2.0-src.tar.gz
# cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/easymock login
# cvs -z3 -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/easymock export -r EasyMock2_0 easymock

Patch0:		easymock-2.0-build_xml.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Distribution:   JPackage
Vendor:         JPackage Project

BuildArch:      noarch
BuildRequires:  jpackage-utils >= 0:1.6
BuildRequires:  ant >= 0:1.6
BuildRequires:	ant-junit >= 0:1.6
BuildRequires:	junit >= 0:3.8.1
BuildRequires:  java-devel >= 0:1.5.0
Requires:  java >= 0:1.5.0

%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/Documentation

%description    javadoc
Javadoc for %{name}


%prep
%setup -q -n %{base_name}
mkdir lib
pushd lib
ln -sf $(build-classpath junit) .
popd
echo "java\ 1.5=%{_jvmdir}/java-1.5.0/bin/java" >> easymockbuild.properties
echo "java\ compiler=%{_jvmdir}/java-1.5.0/bin/javac" >> easymockbuild.properties

%patch0 -b .sav

%build
export JAVA_HOME=/usr/lib/jvm/java-1.5.0
export OPT_JAR_LIST="ant/ant-junit junit"
export CLASSPATH=
ant -Dbuild.sysclasspath=first


%install
rm -rf $RPM_BUILD_ROOT
unzip %{base_name}%{version}.zip
install -dm 755 $RPM_BUILD_ROOT%{_javadir}

install -pm 644 %{base_name}%{version}/%{base_name}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

# javadoc
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr %{base_name}%{version}/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%clean
rm -rf $RPM_BUILD_ROOT

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
  rm -f %{_javadocdir}/%{name}
fi

%files
%defattr(-,root,root,-)
%{_javadir}/*.jar
%doc %{base_name}%{version}/{Documentation,License}.html

%files javadoc
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}


%changelog
* Fri Feb 24 2006 Ralph Apel <r.apel at r-apel.de> - 0:2.0-1jpp
- Update to 2.0 requiring java-1.5 for JPP-5.0

* Fri Feb 24 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.2-1jpp
- Update to 1.2 keeping only java 1.4 requirement

* Fri Feb 24 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.1-3jpp
- drop java-1.3.1 requirement

* Mon Oct 04 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1-2jpp
- Fixed Url, Summary, Description and License

* Mon Oct 04 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1-1jpp
- First JPackage release




More information about the JPackage-commits mailing list