SPECS: openjdk.spec (NEW) - new, sun's GPLv2 licensed jdk/jre

glen glen at pld-linux.org
Tue Apr 10 00:31:45 CEST 2007


Author: glen                         Date: Mon Apr  9 22:31:45 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new, sun's GPLv2 licensed jdk/jre

---- Files affected:
SPECS:
   openjdk.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/openjdk.spec
diff -u /dev/null SPECS/openjdk.spec:1.1
--- /dev/null	Tue Apr 10 00:31:45 2007
+++ SPECS/openjdk.spec	Tue Apr 10 00:31:40 2007
@@ -0,0 +1,63 @@
+# $Revision$, $Date$
+# TODO
+# - all
+Summary:	Open-source JDK, an implementation of the Java Platform
+Name:		openjdk
+Version:	1.7.0
+Release:	0.1
+License:	GPL v2
+Group:		Development/Languages/Java
+Source0:	http://www.java.net/download/openjdk/jdk7/promoted/b10/compiler-7-ea-src-b10-21_mar_2007.zip
+# Source0-md5:	a7be9da818adff098c00b00a983b0e40
+Source1:	http://www.java.net/download/openjdk/jdk7/promoted/b10/hotspot-7-ea-src-b10-21_mar_2007.zip
+# Source1-md5:	df51d7e061c3e97adf7a61a406c42d74
+Source2:	http://www.java.net/download/openjdk/jdk7/promoted/b10/jtreg_bin-3_2_2_01-fcs-bin-b03-21_Mar_2007.zip
+# Source2-md5:	1b501642684b7cfe8aff3fa60c5a2083
+URL:		https://openjdk.dev.java.net/
+BuildRequires:	jpackage-utils
+BuildRequires:	rpmbuild(macros) >= 1.357
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Today this project contains two significant components of the JDK:
+- The HotSpot Virtual Machine
+- The Java programming-language compiler (javac), with complete
+  NetBeans project metadata
+
+%prep
+%setup -qc -a1 -a2
+cat <<'EOF' > javac
+#!/bin/sh
+exec java -jar %{_javadir}/javac-%{version}.jar ${1:+"$@"}
+EOF
+
+%build
+cd compiler
+%ant
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_javadir},%{_bindir}}
+cp -a compiler/dist/lib/javac.jar $RPM_BUILD_ROOT%{_javadir}/javac-%{version}.jar
+ln -s javac-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/javac.jar
+install javac $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc compiler/doc/*
+%attr(755,root,root) %{_bindir}/javac
+%{_javadir}/javac-%{version}.jar
+%{_javadir}/javac.jar
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/04/09 22:31:40  glen
+- new, sun's GPLv2 licensed jdk/jre
+
================================================================


More information about the pld-cvs-commit mailing list