rpms/gluegen/devel antlr-properties.patch, NONE, 1.1 debug-on.patch, NONE, 1.1 gluegen.spec, NONE, 1.1 import.log, NONE, 1.1 no-solaris.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Henrique Junior
lspooky at fedoraproject.org
Thu Apr 29 02:40:31 UTC 2010
Author: lspooky
Update of /cvs/pkgs/rpms/gluegen/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv5663/devel
Modified Files:
.cvsignore sources
Added Files:
antlr-properties.patch debug-on.patch gluegen.spec import.log
no-solaris.patch
Log Message:
This is the first package of gluegen that is a Java/JNI glue code generator to call out to ANSI C
antlr-properties.patch:
gluegen.properties | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- NEW FILE antlr-properties.patch ---
--- gluegen/make/gluegen.properties 2008-02-08 20:47:30.000000000 -0200
+++ gluegen/make/gluegen.properties 2010-02-20 17:08:16.891443000 -0200
@@ -8,9 +8,9 @@
# including the name of the jar
#
# Windows
-antlr.jar=C:/Users/kbr/ANTLR/antlr-2.7.2/antlr.jar
+#antlr.jar=C:/Users/kbr/ANTLR/antlr-2.7.2/antlr.jar
# Linux
-# antlr.jar=/home/kbr/antlr-2.7.2/antlr.jar
+ antlr.jar=/usr/share/java/antlr.jar
# Mac OS X
# antlr.jar=/Users/kbr/antlr-2.7.2/antlr.jar
# Solaris
@@ -21,7 +21,7 @@
# you can choose an alternate compiler with which to build the native
# code. Valid strings here are "vc6", "vc7", "vc8", "vc8_x64", and
# "mingw".
-win32.c.compiler=vc6
+#win32.c.compiler=vc6
# If you are building the native code for the GlueGen run-time library
# on a Mac OS X system supporting cross-compilation and want to
debug-on.patch:
build.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- NEW FILE debug-on.patch ---
--- gluegen/make/build.xml 2010-02-25 15:28:00.000000000 -0300
+++ gluegen/make/build.xml 2010-04-03 15:48:12.570570323 -0300
@@ -322,7 +322,7 @@
<echo message="Output lib name = ${output.lib.name}" />
<!-- NOTE: the value of the debug and optimise attributes will not be overridden if already set externally -->
- <property name="c.compiler.debug" value="false" />
+ <property name="c.compiler.debug" value="true" />
<!-- Optimise flags one of { none, size, speed, minimal, full, aggressive, extreme, unsafe } -->
<property name="c.compiler.optimise" value="none" />
@@ -337,7 +337,7 @@
objdir="../build/obj"
outfile="../build/obj/${output.lib.name}"
optimize="${c.compiler.optimise}"
- debug="${c.compiler.debug}"
+ debug="on"
multithreaded="true"
exceptions="false"
rtti="false">
--- NEW FILE gluegen.spec ---
Name: gluegen
Version: 1
Release: 0.20102502svn9%{?dist}
Summary: Java/JNI glue code generator to call out to ANSI C
Group: Development/Libraries
License: BSD and APSL 2.0
URL: https://gluegen.dev.java.net/
# The source for this package was pulled from upstream's vcs.
#We are removing dynamic-linker.h due to license issues (AT&T)
#Use the following commands to generate the tarball:
#svn checkout https://gluegen.dev.java.net/svn/gluegen/tags/1.0b06a \
#gluegen --username login
#cd gluegen && find -name '.svn' | xargs rm -rf
#rm make/stub_includes/unix/dynamic-linker.h
#tar -zcvf gluegen-1.0.20102502svn.tar.gz gluegen
Source0: gluegen-1.0.20102502svn.tar.gz
Patch0: antlr-properties.patch
Patch1: no-solaris.patch
Patch2: debug-on.patch
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: ant-antlr
BuildRequires: cpptasks
BuildRequires: jpackage-utils
Requires: java >= 1:1.6.0
Requires: jpackage-utils
Requires: antlr
%description
GlueGen is a tool which automatically generates the Java and JNI
code necessary to call C libraries. It reads as input ANSI C header
files and separate configuration files which provide control over
many aspects of the glue code generation. GlueGen uses a complete
ANSI C parser and an internal representation (IR) capable of
representing all C types to represent the APIs for which it
generates interfaces.
%package source
Summary: GlueGen source code required to build JOGL
Group: Development/Libraries
BuildArch: noarch
%description source
GlueGen source code required to build JOGL
%package manual
Summary: GlueGen's user manual
Group: Development/Libraries
BuildArch: noarch
%description manual
GlueGen's user manual
%prep
%setup -q -n %{name}
%patch0 -p1 -b .antlr-properties.patch
%patch1 -p1 -b .no-solaris.patch
%patch2 -p1 -b .debug-on.patch
#Remove bundled .jar
find -name "*.jar" -type f -exec rm {} \;
#Remove hardcoded classpath
sed -i -e 's|Class-Path: antlr.jar||' make/Manifest
#Preserve the source code to generate gluegen-source
cp -rdf ../%{name} ../%{name}-source
rm -rdf ../%{name}-source/{doc,www,LICENSE.txt,gluegen}
#Solve script-without-shebang
chmod 644 ../%{name}-source/src/java/net/highteq/nativetaglet/NativeTaglet.java
chmod 644 ../%{name}-source/make/dynlink-unix-CustomJavaCode.java
chmod 644 ../%{name}-source/make/build.xml
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/BufferFactory.java.javame_cdc_fp
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/StructAccessor.java.javame_cdc_fp
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/UnixDynamicLinkerImpl.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/opengl/GLJavaMethodBindingEmitter.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java
chmod 644 ../%{name}-source/make/gluegen.properties.antlr-properties.patch
chmod 644 ../%{name}-source/make/validate-properties.xml
chmod 644 ../%{name}-source/make/dynlink-windows-CustomJavaCode.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/procaddress/ProcAddressConfiguration.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/procaddress/ProcAddressEmitter.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/DynamicLookupHelper.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/NativeLibLoader.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/DynamicLinker.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/BufferFactoryInternal.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/opengl/GLConfiguration.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/StructAccessor.java.javase
chmod 644 ../%{name}-source/make/Manifest
chmod 644 ../%{name}-source/make/dynlink-unix.cfg
chmod 644 ../%{name}-source/make/gluegen.properties
chmod 644 ../%{name}-source/make/dynlink-macosx.cfg
chmod 644 ../%{name}-source/make/gluegen-cpptasks.xml
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/nativesig/NativeSignatureEmitter.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/MacOSXDynamicLinkerImpl.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/nativesig/NativeSignatureJavaMethodBindingEmitter.java
chmod 644 ../%{name}-source/make/lib/cpptasks-version.txt
chmod 644 ../%{name}-source/make/dynlink-windows.cfg
chmod 644 ../%{name}-source/make/gluegen-cpptasks.xml.no-solaris.patch
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/procaddress/ProcAddressJavaMethodBindingEmitter.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/CPU.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/pcpp/ConcatenatingReader.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/cgram/types/SizeThunk.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/WindowsDynamicLinkerImpl.java
chmod 644 ../%{name}-source/src/java/com/sun/gluegen/runtime/NativeLibrary.java
chmod 644 ../%{name}-source/make/build.xml.debug-on.patch
#Solve the spurious-executable-perm
chmod 644 LICENSE.txt
chmod 644 doc/manual/index.html
chmod 644 src/native/unix/UnixDynamicLinkerImpl_JNI.c
chmod 644 ../%{name}-source/src/native/windows/WindowsDynamicLinkerImpl_JNI.c
chmod 644 ../%{name}-source/src/native/unix/UnixDynamicLinkerImpl_JNI.c
chmod 644 ../%{name}-source/make/stub_includes/windows/dynamic-linker.h
chmod 644 ../%{name}-source/make/stub_includes/macosx/dynamic-linker.h
chmod 644 ../%{name}-source/src/native/macosx/MacOSXDynamicLinkerImpl_JNI.c
%if 0
#Wip - Try to get rid of the internal cpptasks
sed -i -e 's|${gluegen.root}/make/lib/cpptasks.jar|%{_javadir}/cpptasks.jar|' make/gluegen-cpptasks.xml
sed -i -e 's/gluegen.cpptasks/cpptasks/g' make/build.xml make/gluegen-cpptasks.xml
sed -i -e 's|cpptasks.xml|gluegen-cpptasks.xml|' make/build.xml
%endif
%build
cd make
ant \
-Dantlr.jar=$(build-classpath antlr)
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_javadir}/%{name}
install -D build/gluegen.jar %{buildroot}%{_javadir}/%{name}/gluegen-%{version}.jar
install -D build/gluegen-rt.jar %{buildroot}%{_javadir}/%{name}/gluegen-rt-%{version}.jar
install -D build/obj/libgluegen-rt.so %{buildroot}%{_libdir}/java/libgluegen-rt.so
# Make the source package. This package is essencial to build JOGL
%define gluegen_source_dir %{_datadir}/gluegen-source
%define inst_srcdir %{buildroot}/%{gluegen_source_dir}
mkdir -p %{inst_srcdir}/%{name}
cp -rdf ../%{name}-source/{make,src} %{inst_srcdir}/%{name}
# Make the manual package
mkdir -p %{buildroot}/%{_docdir}/%{name}
cp -rdf doc/manual/* %{buildroot}/%{_docdir}/%{name}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE.txt
%{_javadir}/%{name}/*.jar
%{_libdir}/java/libgluegen-rt.so
%files source
%defattr(-, root, root, -)
%doc LICENSE.txt
%{gluegen_source_dir}
%files manual
%defattr(-, root, root, -)
%{_docdir}/%{name}/*
%changelog
* Fri Apr 23 2010 Henrique Junior <lspooky at fedoraproject.org> - 1-0.20102502svn9
- Removing dynamic-linker.h to avoid AT&T license
* Fri Apr 23 2010 Henrique Junior <lspooky at fedoraproject.org> - 1-0.20102502svn8
- License fixes. doc added to gluegen-source
* Tue Apr 6 2010 Henrique Junior <lspooky at fedoraproject.org> - 1-0.20102502svn7
- License fixes. doc added to gluegen-source
* Fri Apr 2 2010 Henrique Junior <lspooky at fedoraproject.org> - 1.0.20102502svn-6
- Changed permission in gluegen-source to 644, jogl now will "cp" the source
- Fixed the debuginfo issue by creating debug-on.patch
* Thu Apr 1 2010 Henrique Junior <lspooky at fedoraproject.org> - 1.0.20102502svn-5
- Removing the .svn files and directories from tarball
- Making the manual package
- Solve permission issues
* Tue Mar 9 2010 Henrique Junior <lspooky at fedoraproject.org> - 1.0.20102502svn-4
- Fixing some url issues and changing directories to guideline
* Tue Mar 9 2010 Henrique Junior <lspooky at fedoraproject.org> - 1.0.20102502svn-3
- Now, making gluegen-source for JOGL
* Thu Feb 22 2010 Henrique Junior <lspooky at fedoraproject.org> - 1.0.20102502svn-2
- Change to SVN version
- Some refinements to .spec
* Sun Feb 21 2010 Henrique Junior <lspooky at fedoraproject.org> - 1.1.1-1
- Initial package with inspiration on Kwizart's spec
- Gluegen and JOGL came from the same source (repackaged)
- antlr-properties.patch points to the right location in Fedora
- no-solaris.patch looks the "no sun cc" crash
--- NEW FILE import.log ---
gluegen-1-0_20102502svn9_fc12:HEAD:gluegen-1-0.20102502svn9.fc12.src.rpm:1272584347
no-solaris.patch:
gluegen-cpptasks.xml | 27 ---------------------------
1 file changed, 27 deletions(-)
--- NEW FILE no-solaris.patch ---
--- gluegen/make/gluegen-cpptasks.xml 2008-02-08 20:47:30.000000000 -0200
+++ gluegen/make/gluegen-cpptasks.xml 2010-02-21 00:07:56.459441701 -0300
@@ -397,22 +397,6 @@
<compilerarg value="-fPIC"/>
</compiler>
- <compiler id="compiler.cfg.solaris" name="suncc">
- </compiler>
-
- <compiler id="compiler.cfg.solaris.sparcv9" name="suncc">
- <compilerarg value="-fast" />
- <compilerarg value="-xchip=ultra" />
- <compilerarg value="-xarch=v9a" />
- </compiler>
-
- <compiler id="compiler.cfg.solaris.amd64" name="suncc">
- <compilerarg value="-fast" />
- <compilerarg value="-xchip=opteron" />
- <compilerarg value="-xarch=amd64" />
- <!-- <compilerarg value="-xcache=64/64/2:1024/64/16" /> -->
- </compiler>
-
<compiler id="compiler.cfg.win32.mingw" name="gcc">
<defineset>
<define name="_DEBUG" if="c.compiler.use-debug"/>
@@ -496,17 +480,6 @@
<linker id="linker.cfg.linux.amd64" name="gcc">
</linker>
- <linker id="linker.cfg.solaris" name="suncc">
- </linker>
-
- <linker id="linker.cfg.solaris.sparcv9" name="suncc">
- <linkerarg value="-xarch=v9a" />
- </linker>
-
- <linker id="linker.cfg.solaris.amd64" name="suncc">
- <linkerarg value="-xarch=amd64" />
- </linker>
-
<linker id="linker.cfg.win32.mingw" name="gcc" incremental="false">
<linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names -->
</linker>
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/gluegen/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 29 Apr 2010 02:15:03 -0000 1.1
+++ .cvsignore 29 Apr 2010 02:40:29 -0000 1.2
@@ -0,0 +1 @@
+gluegen-1.0.20102502svn.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/gluegen/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 29 Apr 2010 02:15:03 -0000 1.1
+++ sources 29 Apr 2010 02:40:31 -0000 1.2
@@ -0,0 +1 @@
+94eb18cd20e285722993110f6a0cbee2 gluegen-1.0.20102502svn.tar.gz
More information about the scm-commits
mailing list