[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jpackage-announce
Subject:    [JPackage-announce] [RPM (5.0)] junit4-4.4-1jpp
From:       Ralph Apel <jpackage () zarb ! org>
Date:       2008-03-06 14:29:58
Message-ID: 20080306142958.2CC493F614 () ryu ! zarb ! org
[Download RAW message or body]

Name        : junit4                       Relocations: (not relocatable)
Version     : 4.4                               Vendor: JPackage Project
Release     : 1jpp                          Build Date: Thu 06 Mar 2008 03:23:52 PM \
CET Install Date: (not installed)               Build Host: altair.localdomain
Group       : Development/Tools             Source RPM: (none)
Size        : 2518112      License: CPL
Signature   : (none)
Packager    : Ralph Apel <r.apel@r-apel.de>
URL         : http://www.junit.org/
Summary     : Java regression test package
Description :
JUnit is a regression testing framework written by Erich Gamma and Kent Beck.
It is used by the developer who implements unit tests in Java. JUnit is Open
Source Software, released under the Common Public License Version 1.0 and
JUnit is Open Source Software, released under the IBM Public License and
hosted on SourceForge.

---------------
Ralph Apel <r.apel@r-apel.de> - 0:4.4-1jpp
- 4.4
- Switch to CVS for sources
---------------
W: junit4 non-standard-group Development/Tools

---------------
Index: junit4.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/junit4/junit4.spec,v
retrieving revision 1.4
diff -u -r1.4 junit4.spec
--- junit4.spec	11 Feb 2008 11:29:27 -0000	1.4
+++ junit4.spec	6 Mar 2008 14:29:55 -0000
@@ -31,8 +31,8 @@
 %define gcj_support \
%{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
  
 Name:           junit4
-Version:        4.3.1
-Release:        4jpp
+Version:        4.4
+Release:        1jpp
 Epoch:          0
 Summary:        Java regression test package
 License:        CPL
@@ -40,14 +40,23 @@
 Group:          Development/Tools
 Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
 Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
-Source0:        http://downloads.sourceforge.net/junit/junit4.3.1.zip
-Source1:        junit4.3.1-build.xml
-Source2:        junit-4.3.1.pom
+Source0:        junit-4.4.tar.gz
+# steps to reproduce
+# cvs -d:pserver:anonymous@junit.cvs.sourceforge.net:/cvsroot/junit login
+# cvs -z3 -d:pserver:anonymous@junit.cvs.sourceforge.net:/cvsroot/junit export -r \
r44 junit +# mv junit junit-4.4
+# tar czf junit-4.4.tar.gz junit-4.4/
+
+# Source1:        junit4.4-build.xml
+Source2:        junit-4.4.pom
+Patch0:         junit4-4.4-AllTests.patch
 BuildRequires:  ant
 BuildRequires:  dos2unix
 BuildRequires:  jpackage-utils >= 0:1.7.4
 BuildRequires:  java-devel = 0:1.5.0
+BuildRequires:  hamcrest
 Requires:  java >= 0:1.5.0
+Requires:  hamcrest
 %if ! %{gcj_support}
 Buildarch:     noarch
 %endif
@@ -101,25 +110,28 @@
 Demonstrations and samples for %{name}.
 
 %prep
-%setup -q -n junit%{version}
-# extract sources
-jar xf junit-4.3.1-src.jar
-rm -f junit-4.3.1-src.jar
-cp %{SOURCE1} build.xml
-find -name \*.class -o -name \*.jar | xargs rm
+%setup -q -n junit-%{version}
+for j in $(find . -name "*.jar"); do
+    mv $j $j.no
+done
+ln -sf $(build-classpath hamcrest/core) lib/hamcrest-core-1.1.jar
+rm src/org/junit/tests/BothTest.java
+%patch0 -b .sav0
 
 %build
+export JAVA_HOME=%{_jvmdir}/java-1.5.0
 ant dist
 
 find -name \*.htm -o -name \*.html | xargs dos2unix
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 # jars
 install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
-install -m 644 junit%{version}/junit.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +install -m 644 \
junit%{version}/junit-%{version}.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar  pushd $RPM_BUILD_ROOT%{_javadir} 
-ln -sf %{name}-%{version}.jar junit4.jar
+ln -sf %{name}-%{version}.jar %{name}.jar
 popd
 # pom
 install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
@@ -174,7 +186,7 @@
 
 %files
 %defattr(0644,root,root,0755)
-%doc README.html
+%doc cpl-v10.html README.html
 %{_javadir}/*
 %{_datadir}/maven2
 %{_mavendepmapfragdir}
@@ -197,6 +209,10 @@
 %{_datadir}/%{name}
 
 %changelog
+* Thu Mar 06 2008 Ralph Apel <r.apel@r-apel.de> - 0:4.4-1jpp
+- 4.4
+- Switch to CVS for sources
+
 * Mon Feb 11 2008 Ralph Apel <r.apel@r-apel.de> - 0:4.3.1-4jpp
 - Fix versioned jar name, was junit-4.3.1
 - Restore Epoch


_______________________________________________
JPackage-announce mailing list
JPackage-announce@zarb.org
https://www.zarb.org/mailman/listinfo/jpackage-announce


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic