[RPM (6.0)] [DIST generic] junit4-4.11-1.jpp6

Ralph Apel <[email protected]> Sun, 13 Jan 2013 16:27:34 +0100
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : junit4                       Relocations: (not relocatable)
Version     : 4.11                              Vendor: JPackage Project
Release     : 1.jpp6                        Build Date: Sun 13 Jan 2013 04:24:54 PM CET
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Tools             Source RPM: (none)
Size        : 1941761                          License: CPL
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
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 <[email protected]> 4.11-1
- 4.11
---------------
junit4.src: W: non-standard-group Development/Tools
junit4.src: W: no-signature
1 packages and 0 specfiles checked; 0 errors, 2 warnings.

---------------
Index: junit4.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/junit4/junit4.spec,v
retrieving revision 1.10
diff -u -r1.10 junit4.spec
--- junit4.spec	1 Nov 2012 01:31:18 -0000	1.10
+++ junit4.spec	13 Jan 2013 15:27:32 -0000
@@ -35,27 +35,29 @@
 %define _source_filedigest_algorithm 1
 
 Name:           junit4
-Version:        4.8.2
-Release:        8%{?dist}
+Version:        4.11
+Release:        1%{?dist}
 Epoch:          0
 Summary:        Java regression test package
 License:        CPL
 URL:            http://www.junit.org/
 Group:          Development/Tools
 # git clone --bare git://github.com/KentBeck/junit.git junit.git
-# mkdir junit-4.8.2
-# git --git-dir=junit.git --work-tree=junit-4.8.2 checkout r4.8.2
-# tar cjf junit-4.8.2.tar.bz2 junit-4.8.2/
+# mkdir junit-4.11
+# git --git-dir=junit.git --work-tree=junit-4.11 checkout r4.11
+# tar cjf junit-4.11.tar.bz2 junit-4.11/
 Source0:        junit-%{version}.tar.bz2
-Source1:        http://repo1.maven.org/maven2/junit/junit-dep/4.8.2/junit-dep-4.8.2.pom
+Source1:        http://repo1.maven.org/maven2/junit/junit/4.11/junit-4.11.pom
+Source2:        http://repo1.maven.org/maven2/junit/junit-dep/4.11/junit-dep-4.11.pom
 Requires(post): jpackage-utils >= 0:1.7.5
 Requires(postun): jpackage-utils >= 0:1.7.5
-Requires:       hamcrest = 0:1.1
+Requires:       hamcrest13
 Requires:       java-1.6.0
 BuildRequires:  ant >= 0:1.7.1
 BuildRequires:  jpackage-utils >= 0:1.7.5
 BuildRequires:  java-1.6.0-devel
-BuildRequires:  hamcrest = 0:1.1
+BuildRequires:  hamcrest13 
+BuildRequires:  hamcrest13-devel
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
@@ -92,8 +94,10 @@
 %prep
 %setup -q -n junit-%{version}
 %{_bindir}/find -type f -name "*.jar" | %{_bindir}/xargs -t %{__rm}
-ln -s $(build-classpath hamcrest/core) lib/hamcrest-core-1.1.jar
+ln -s $(build-classpath hamcrest13/all) lib/hamcrest-core-1.3.jar
+ln -s $(build-classpath hamcrest13/all-sources.jar) lib/hamcrest-core-1.3-sources.jar
 perl -pi -e 's/\r$//g' stylesheet.css
+cp %{SOURCE1} pom.xml
 
 %build
 export CLASSPATH=
@@ -105,8 +109,8 @@
 
 # jars
 install -d -m 755 %{buildroot}%{_javadir}
-install -m 644 junit%{version}/junit-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
-install -m 644 junit%{version}/junit-dep-%{version}.jar %{buildroot}%{_javadir}/%{name}-dep-%{version}.jar
+install -m 644 junit%{version}-SNAPSHOT/junit-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
+install -m 644 junit%{version}-SNAPSHOT/junit-dep-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}-dep-%{version}.jar
 pushd %{buildroot}%{_javadir} 
 ln -s %{name}-%{version}.jar %{name}.jar
 ln -s %{name}-%{version}.jar junit-%{version}.jar
@@ -116,20 +120,20 @@
 
 # pom
 install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
-install -m 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
+install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
 %add_to_maven_depmap junit junit %{version} JPP %{name}
-install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}-dep.pom
+install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}-dep.pom
 %add_to_maven_depmap junit junit-dep %{version} JPP %{name}-dep
 
 # javadoc
 install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
-cp -pr junit%{version}/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
+cp -pr junit%{version}-SNAPSHOT/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
 ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
 
 # demo
 install -d -m 755 %{buildroot}%{_datadir}/%{name}/demo/junit # Not using %%name for last part because it is 
                                                                 # part of package name
-cp -pr junit%{version}/junit/* %{buildroot}%{_datadir}/%{name}/demo/junit
+cp -pr junit%{version}-SNAPSHOT/junit/* %{buildroot}%{_datadir}/%{name}/demo/junit
 
 %clean
 rm -rf %{buildroot}
@@ -157,9 +161,12 @@
 
 %files manual
 %defattr(0644,root,root,0755)
-%doc junit%{version}/doc/*
+%doc junit%{version}-SNAPSHOT/doc/*
 
 %changelog
+* Wed Dec 26 2012 Ralph Apel <[email protected]> 4.11-1
+- 4.11
+
 * Thu Nov 01 2012 Will Tatam <[email protected]> 4.8.2-8
 - Auto rebuild for JPackage 6 in centos5 mock