Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ierturk:scilab
gluegen2
gluegen2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gluegen2.spec of Package gluegen2
# # spec file for package gluegen2 # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: gluegen2 Version: 2.0.2 Release: 0 License: BSD-2-Clause Summary: Tool for automatic generation the Java and JNI code Url: http://jogamp.org/gluegen/www/ Group: Development/Libraries/Java Source0: %{name}-%{version}.tar.bz2 # git clone git://jogamp.org/srv/scm/gluegen.git && cd gluegen # git archive v2.0.2 --prefix=gluegen2-2.0.2/ | bzip2 > ../gluegen2-2.0.2.tar.bz2 Patch0: gluegen2-jar-paths.patch Patch1: gluegen2-0001-renamed-library.patch Patch2: gluegen2-0003-disable-executable-tmp-tests.patch Patch3: gluegen2-0004-add-antlr-jar-to-all-targets.patch BuildRequires: ant BuildRequires: ant-antlr BuildRequires: ant-contrib BuildRequires: ant-junit BuildRequires: cpptasks BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: junit4 >= 4.8 BuildRequires: p7zip Requires: ant-antlr Requires: ant-contrib Requires: java Requires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-build %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. It has the ability to perform significant transformations on the IR before glue code emission. GlueGen is currently powerful enough to bind even low-level APIs such as the Java Native Interface (JNI) and the AWT Native Interface (JAWT) back up to the Java programming language. %package devel Group: Development/Libraries/Java Summary: Tool for automatic generation the Java and JNI code BuildArch: noarch Requires: %{name} = %{version} Requires: ant-antlr Requires: ant-contrib Requires: ant-junit Requires: cpptasks Requires: junit4 %description devel This package contains gluegen source code needed to build packages. %prep %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 # Remove any JNI files # rm -fr make/stub_includes/jni # Fix wrong-script-end-of-line-encoding rm make/scripts/*.bat # Fix spurious-executable-perm chmod -x LICENSE.txt chmod -x doc/manual/index.html #chmod -x make/stub_includes/*/* find make/stub_includes/ -type f -print -exec chmod -x {} \; find make/stub_includes/ -type d -print -exec chmod +x {} \; #chmod -x src/native/*/* find src/native/ -type f -print -exec chmod -x {} \; find src/native/ -type f -print -exec chmod +x {} \; find src/java/ -type f -exec chmod -x {} \; find make/scripts -type f -not -name "*.sh" -print -exec chmod -x {} \; # Fix non-executable-script find make/scripts -type f -name "*.sh" -print -exec chmod +x {} \; # Fix script-without-shebang find make/scripts -type f -name "*.sh" -print -exec sed -i -e '1i#!/bin/sh' {} \; # Remove bundled dependencies find -name "*.jar" -type f -print -exec rm {} \; find -name "*.apk" -type f -print -exec rm {} \; rm -fr make/lib # Remove hardcoded classpath sed -i '/Class-Path/I d' make/Manifest # git executable should not be used, use true (to avoid checkout) instead sed -i 's/executable="git"/executable="true"/' make/build.xml # 7z executable is not provided, use true (to avoid archive) instead sed -i 's/executable="7z"/executable="true"/' make/jogamp-archivetasks.xml # mvn executable should not be used, use true (to avoid install) instead sed -i 's/executable="mvn"/executable="true"/' make/build.xml %build cd make ant -Djavacdebug=true \ -Djavacdebuglevel=lines,vars,source \ -Dc.compiler.debug=true \ \ all \ junit.run %install # arch independent jars install -Dm 644 build/gluegen.jar %{buildroot}%{_javadir}/%{name}.jar install -Dm 644 build/gluegen-rt.jar %{buildroot}%{_javadir}/%{name}-rt.jar # arch specific jars install -Dm 644 build/gluegen-rt-natives-*.jar %{buildroot}%{_jnidir}/%{name}-rt-natives.jar # native libraries install -Dm 755 build/obj/libgluegen-rt.so %{buildroot}%{_libdir}/lib%{name}-rt.so # source code %global gluegen_devel_dir %{_datadir}/%{name} %global inst_srcdir %{buildroot}%{gluegen_devel_dir} mkdir -p %{inst_srcdir} %{inst_srcdir}/build cp -rdf -t %{inst_srcdir} make find %{inst_srcdir} -name '*.orig' -type f -delete -print cp build/artifact.properties %{inst_srcdir}/build/artifact.properties %files %defattr(-,root,root) %doc LICENSE.txt %{_javadir}/%{name}-rt.jar %{_jnidir}/%{name}-rt-natives.jar %{_libdir}/lib%{name}-rt.so %files devel %defattr(-,root,root) %doc LICENSE.txt %{_javadir}/%{name}.jar %{gluegen_devel_dir}/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor