[Jpackage-commits] dist/java3d/JPP-6 Makefile, NONE, 1.1 java3d.spec, NONE, 1.1 sources, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Sun Jun 13 18:04:47 CEST 2010

Update of /home/projects/jpackage/cvs/dist/java3d/JPP-6
In directory ryu.zarb.org:/tmp/cvs-serv27360/JPP-6

Added Files:
	Makefile java3d.spec sources 
Log Message:
Import java3d into JPP-6

--- NEW FILE: sources ---
a2117c9a93133ac968a0cd81cc16a0e6  java3d-1.5.2.tgz

--- NEW FILE: Makefile ---
# Makefile for source rpm: java3d
# $Id: Makefile,v 1.1 2010/06/13 16:04:44 jpackage Exp $
NAME := java3d
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done

MAKEFILE_COMMON := $(shell $(find-makefile-common))

# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))


--- NEW FILE: java3d.spec ---

#%define maj				1
#%define min				5
#%define rel				2

#%ifarch %ix86
#%define target_cpu		i586
#%define short_cpu		x86
#%define aka_cpu			i386

#%ifarch x86_64
#%define target_cpu		amd64
#%define short_cpu		amd64
#%define aka_cpu			amd64

#%ifarch ppc
#%define target_cpu		???
#%define short_cpu		???
#%define aka_cpu			???

#%define my_requires		/tmp/my-requires
#%define _binary_dist	0
#%ifarch %ix86 x86_64
#%define _with_Cg		1
#%define _with_Cg		0

Summary:		Java 3D
URL:			https://java3d.dev.java.net/
Name:			java3d
License:		GPL
Group:			Development/Libraries
Version:		1.5.2
Release:		1%{?dist}
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot

# cvs -d :pserver:guest at cvs.dev.java.net:/cvs login
# cvs -d :pserver:guest at cvs.dev.java.net:/cvs export -r rel-1_5_2-fcs vecmath-test
# cvs -d :pserver:guest at cvs.dev.java.net:/cvs export -r rel-1_5_2-fcs vecmath
# cvs -d :pserver:guest at cvs.dev.java.net:/cvs export -r rel-1_5_2-fcs j3d-optional-utils
# cvs -d :pserver:guest at cvs.dev.java.net:/cvs export -r rel-1_5_2-fcs j3d-examples
# cvs -d :pserver:guest at cvs.dev.java.net:/cvs export -r rel-1_5_2-fcs j3d-core-utils
# cvs -d :pserver:guest at cvs.dev.java.net:/cvs export -r rel-1_5_2-fcs j3d-core
# tar czf ../SOURCES/java3d-1.5.2.tgz j3d-core j3d-core-utils j3d-examples j3d-optional-utils  vecmath vecmath-test
Source0:		java3d-%{version}.tgz

BuildRequires:	ant
BuildRequires:	ant-nodeps
BuildRequires:	java-devel >= 0:1.6.0
BuildRequires:	jpackage-utils >= 0:5.0.0

The Java 3D API provides a set of object-oriented interfaces that
support a simple, high-level programming model you can use to
build, render, and control the behavior of 3D objects and visual
environments. With the Java 3D API, you can incorporate high quality,
scalable, platform-independent 3D graphics into applications andvecmath
applets based on Java technology.

%package javadoc
Summary:	Javadoc for java3d
Group:		Documentation

%description javadoc

%setup -q -c -n %{name}

pushd vecmath
	%ant jar-opt

pushd j3d-core
	# to avoid Out of heap memory on "small" machines ...
	export ANT_OPTS=-Xmx256m
	%ant \
		-Dbuild.type=stable \
		jar-opt docs-public


%__install -dm 755 %{buildroot}%{_javadir}/%{name}
%__install -dm 755 %{buildroot}%{_libdir}
%__install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}

# jars
%__install -m 644 vecmath/build/opt/lib/ext/vecmath.jar \
%__install -m 644 j3d-core/build/default/opt/lib/ext/*.jar \

# libs
%__install -m 644 j3d-core/build/default/opt/native/*.so \

# javadoc
%__cp -a j3d-core/build/*/javadocs/docs-public/* \

ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} # ghost symlink

## exclude libjawt.so from the requires-list (it is NOT provided by java ...)
#%__cat << EOF > %{my_requires}
#%{__find_requires} | grep -v "libjawt.so"
#%__chmod 755 %{my_requires}
#%define __find_requires %{my_requires}

#[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}
#%__rm -f %{my_requires}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%doc j3d-core/*.txt
%doc j3d-core/*.html
%doc j3d-core/docs
%dir %{_javadir}/%{name}

%files javadoc
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

* Wed Feb 24 2010 Ralph Apel <r.apel at r-apel.de> - 1.5.2-1
- Adapt to JPP-6

* Wed Jul 02 2008 Toni Graffy <toni at links2linux.de> - 1.5.2-0.pm.1
- update to 1.5.2
- build now from sources
- licence changed to GPLv2
* Sat May 24 2008 Toni Graffy <toni at links2linux.de> - 0.5.1-0.pm.2
- rebuild with new Cg-packages
* Fri Jun 29 2007 Toni Graffy <toni at links2linux.de> - 1.5.1-0.pm.1
- update to 1.5.1
* Mon May 28 2007 Toni Graffy <toni at links2linux.de> - 1.5.0-0.pm.1
- update to 1.5.0
* Sun Feb 11 2007 Toni Graffy <toni at links2linux.de> -
- as Cg is provided via packman, the package contains now the libj3dcore-ogl-cg.so
* Thu Nov 16 2006 Toni Graffy <toni at links2linux.de> -
- build for packman
- based on jpackage-spec

More information about the JPackage-commits mailing list