SPECS (junit-3_8): junit.spec - last version that compiles with ja...

glen glen at pld-linux.org
Tue Apr 10 21:01:39 CEST 2007


Author: glen                         Date: Tue Apr 10 19:01:39 2007 GMT
Module: SPECS                         Tag: junit-3_8
---- Log message:
- last version that compiles with java 1.4

---- Files affected:
SPECS:
   junit.spec (1.16 -> 1.16.4.1) 

---- Diffs:

================================================================
Index: SPECS/junit.spec
diff -u SPECS/junit.spec:1.16 SPECS/junit.spec:1.16.4.1
--- SPECS/junit.spec:1.16	Sat Mar 11 18:13:02 2006
+++ SPECS/junit.spec	Tue Apr 10 21:01:33 2007
@@ -1,4 +1,5 @@
 # $Revision$, $Date$
+%include	/usr/lib/rpm/macros.java
 Summary:	JUnit - regression testing framework
 Summary(pl):	JUnit - środowisko do testów regresji
 Name:		junit
@@ -14,8 +15,6 @@
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_javalibdir	%{_datadir}/java
-
 %description
 JUnit - regression testing framework.
 
@@ -33,14 +32,33 @@
 %description doc -l pl
 Dokumentacja do JUnit.
 
+%package javadoc
+Summary:	Javadoc documentation for JUnit
+Summary(pl):	Dokumentacja javadoc dla JUnit
+Group:		Development/Languages/Java
+
+%description javadoc
+JUnit API documentation.
+
 %prep
 %setup -q -n %{name}%{version}
+install -d build
+unzip -q src.jar -d build
+
+%build
+cd build
+%javac $(find -name '*.java')
+%jar -cvf %{name}-%{version}.jar $(find -type f '!' -name '*.java')
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_javalibdir}
-install junit.jar $RPM_BUILD_ROOT%{_javalibdir}/junit-%{version}.jar
-ln -sf junit-%{version}.jar $RPM_BUILD_ROOT%{_javalibdir}/junit.jar
+install -d $RPM_BUILD_ROOT%{_javadir}
+install build/junit-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/junit-%{version}.jar
+ln -sf junit-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/junit.jar
+
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -48,11 +66,15 @@
 %files
 %defattr(644,root,root,755)
 %doc README.html cpl-v10.html
-%{_javalibdir}/*.jar
+%{_javadir}/*.jar
 
 %files doc
 %defattr(644,root,root,755)
-%doc doc javadoc junit
+%doc doc/* junit/*
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -60,8 +82,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16.4.1  2007/04/10 19:01:33  glen
+- last version that compiles with java 1.4
+
 Revision 1.16  2006/03/11 17:13:02  pluto
-= updated to 3.8.2.
+- updated to 3.8.2.
 
 Revision 1.15  2004/12/14 15:45:02  baggins
 - DON'T hardoce paths!
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/junit.spec?r1=1.16&r2=1.16.4.1&f=u



More information about the pld-cvs-commit mailing list