Name: gluegen2 Version: 2.3.2 Release: 4%{?dist} %global src_name gluegen-v%{version} Summary: Java/JNI glue code generator to call out to ANSI C Group: Development/Libraries License: BSD URL: http://jogamp.org/ Source0: http://jogamp.org/deployment/v%{version}/archive/Sources/%{src_name}.tar.xz Source1: http://jogamp.org/deployment/v%{version}/archive/Sources/jcpp-v%{version}.tar.xz Patch1: %{name}-0001-renamed-library.patch # gluegen2.spec: W: patch-not-applied Patch2: 0002-use-fedora-jni.patch # Applied with %%{_libdir} and %%{name} resolved Patch2: %{name}-0002-use-fedora-jni.patch Patch3: %{name}-0003-disable-executable-tmp-tests.patch Patch4: %{name}-0004-add-antlr-jar-to-all-targets.patch Patch5: %{name}-0005-use-system-antlib.patch Patch6: %{name}-0006-disable-static-libgcc.patch Patch7: %{name}-0007-add-ppc64-aarch64.patch Patch8: %{name}-0008-jcpp-remove-javax-api.patch BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: ant-antlr BuildRequires: ant-contrib BuildRequires: ant-junit BuildRequires: cpptasks BuildRequires: maven-local Requires: java-headless Requires: jpackage-utils %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 devel Summary: GlueGen2 devel utilities required to build JOGL2 Group: Development/Libraries BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: ant-antlr Requires: ant-contrib Requires: ant-junit Requires: cpptasks %description devel GlueGen devel utilities provide some ant targets and shared files to build application. %package javadoc Summary: Javadoc for GlueGen2 Group: Documentation BuildArch: noarch %description javadoc Javadoc for GlueGen2. %package doc Summary: GlueGen's user manual Group: Documentation BuildArch: noarch %description doc GlueGen's user manual. %prep %setup -n %{src_name} tar -xJf %{SOURCE1} -C jcpp --strip 1 %patch1 -p1 sed -e "s|%%{_libdir}|%{_libdir}|;s|%%{name}|%{name}|" %{PATCH2} \ >use-fedora-jni.patch /usr/bin/patch -s -p1 --fuzz=0 - 2.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Dec 04 2015 Marcin Juszkiewicz - 2.3.2-3 - Update secondary archs patch to build jogl2 on aarch64. * Wed Dec 02 2015 Clément David - 2.3.2-2 - Preserve the shipped OpenGL API * Tue Dec 01 2015 Clément David - 2.3.2-1 - Update version * Thu Nov 26 2015 Dan Horák - 2.2.4-4 - fix build on ppc arches (#1267269) * Wed Jun 17 2015 Fedora Release Engineering - 2.2.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Feb 18 2015 Peter Robinson 2.2.4-2 - Add support for aarch64/ppc64 * Tue Sep 09 2014 Clément David - 2.2.4-1 - Update version - Disable the use of static-libgcc - Enable ant verbose build to trace native compilation calls * Sat Aug 16 2014 Fedora Release Engineering - 2.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Feb 27 2014 Clément David - 2.0.2-3 - Change R:java to R:java-headless (Bug 1068109). * Tue Jan 07 2014 Clément David - 2.0.2-2 - Fix bug #1001254 about docdir issue - Allow the user to install javadoc without the main package * Mon Sep 09 2013 Clément David - 2.0.2-1 - Update to the stable 2.0.2 version * Tue Aug 20 2013 Clément David - 2.0-0.11.rc12 - Fix the build for armv7hl with only configuration - log the ant arguments to stderr * Fri Aug 02 2013 Clément David - 2.0-0.10.rc12 - Fix the build for armv7hl * Wed Jul 10 2013 Clément David - 2.0-0.9.rc12 - Update to rc12 * Wed Feb 06 2013 Java SIG - 2.0-0.8.rc11 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Fri Jan 25 2013 Clément David - 2.0-0.7.rc11 - Upgrade to the Java packaging draft (JNI jar/so location) * Thu Jan 03 2013 Clément David - 2.0-0.6.rc11 - Update version * Wed Dec 19 2012 Stanislav Ochotnicky - 2.0-0.5.rc10.1 - revbump after jnidir change - Fix symlink for JNI jar * Mon Oct 01 2012 Clément David - 2.0-0.4.rc10 - Prefix patches with package name - Use /usr/share/gluegen2 devel files * Thu Sep 27 2012 Clément David - 2.0-0.3.rc10 - Patch to use System.load(..) - Use devel subpackage for gluegen2 ant task * Thu Sep 20 2012 Clément David - 2.0-0.2.rc10 - Add javadoc subpackage - Provide maven pom files * Mon Sep 10 2012 Clément David - 2.0-0.1.rc10 - Initial package with inspiration on gluegen spec