The package rpms/openjfx.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/openjfx.git/commit/?id=4a762df375....
Change:
+ExclusiveArch: x86 x86_64
Thanks.
Full change:
============
commit 4a762df375e8422038e1605077c0beaf10ea84c3
Author: Jonny Heggheim <hegjon(a)gmail.com>
Date: Fri Jun 2 19:22:58 2017 +0200
Inital import (#1438673)
diff --git a/.gitignore b/.gitignore
index e69de29..96bd0fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/8u152-b04.tar.bz2
diff --git a/0001-Fix-wait-call-in-PosixPlatform.patch
b/0001-Fix-wait-call-in-PosixPlatform.patch
new file mode 100644
index 0000000..76b6233
--- /dev/null
+++ b/0001-Fix-wait-call-in-PosixPlatform.patch
@@ -0,0 +1,36 @@
+From d669f51a6c44ff8a18166b795433926beda207cc Mon Sep 17 00:00:00 2001
+From: Mikolaj Izdebski <mizdebsk(a)redhat.com>
+Date: Tue, 26 Apr 2016 12:44:07 +0200
+Subject: [PATCH 1/2] Fix wait() call in PosixPlatform
+
+---
+ modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
b/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
+index 95d8a3d..0ef03c6 100644
+--- a/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
++++ b/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
+@@ -41,6 +41,7 @@
+ #include <assert.h>
+ #include <stdbool.h>
+ #include <sys/types.h>
++#include <sys/wait.h>
+ #include <unistd.h>
+ #include <sys/sysctl.h>
+ #include <iostream>
+@@ -231,10 +232,7 @@ bool PosixProcess::Wait() {
+ pid_t wpid = 0;
+
+ //TODO Use waitpid instead of wait
+-#ifdef LINUX
+- wait();
+-#endif
+-#ifdef MAC
++#if defined(LINUX) || defined(MAC)
+ wpid = wait(&status);
+ #endif
+
+--
+2.9.3
+
diff --git a/0002-Bulid-in-Gradle-local-mode.patch
b/0002-Bulid-in-Gradle-local-mode.patch
new file mode 100644
index 0000000..6a6015c
--- /dev/null
+++ b/0002-Bulid-in-Gradle-local-mode.patch
@@ -0,0 +1,47 @@
+From 2e703578a21f16e53b5969030bb540f23bfa2843 Mon Sep 17 00:00:00 2001
+From: Mikolaj Izdebski <mizdebsk(a)redhat.com>
+Date: Tue, 7 Jul 2015 01:20:59 +0200
+Subject: [PATCH 2/2] Bulid in Gradle local mode
+
+---
+ build.gradle | 4 ++--
+ buildSrc/build.gradle | 1 +
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/build.gradle b/build.gradle
+index 3a209b4..aa76184 100644
+--- a/build.gradle
++++ b/build.gradle
+@@ -1299,7 +1299,7 @@ project(":graphics") {
+
+ dependencies {
+ compile project(":base"), BUILD_SRC
+- compile name: SWT_FILE_NAME
++ compile group: "org.eclipse.swt", name: "swt", version:
"3.104.0"
+ stubCompile group: "junit", name: "junit", version:
"4.8.2",
+ project(":base").sourceSets.test.output, sourceSets.main.output
+ antlr3 group: "org.antlr", name: "antlr", version:
"3.1.3"
+@@ -1680,7 +1680,7 @@ project(":swt") {
+ }
+ dependencies {
+ compile BUILD_SRC, project(":base"), project(":graphics")
+- compile name: SWT_FILE_NAME
++ compile group: "org.eclipse.swt", name: "swt", version:
"3.104.0"
+ }
+ }
+
+diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
+index 979dab9..8f8d8a9 100644
+--- a/buildSrc/build.gradle
++++ b/buildSrc/build.gradle
+@@ -57,6 +57,7 @@ apply plugin: "java"
+
+
+ repositories {
++ xmvn()
+ if (buildClosed) {
+ ivy {
+ url jfxRepositoryURL
+--
+2.9.3
+
diff --git a/README.fedora b/README.fedora
new file mode 100644
index 0000000..75ff6e6
--- /dev/null
+++ b/README.fedora
@@ -0,0 +1,18 @@
+This Fedora package installs JavaFX in a JDK/JRE-independent way. It is
+up to each JDK/JRE to make use of it correctly. In general, you want to symlink
+the shared object and the jar into somehwere where the JDK/JRE can find it.
+
+The process looks something like this:
+openjfx_dir=/usr/lib/jvm/openjfx
+
+jdk_files=$(find $openjfx_dir/{bin,lib} -type f -print)
+for file in $jdk_files; do
+ relative=${file#$openjfx_dir/}
+ ln -sfv "$openjfx_dir/$relative" "/usr/lib/jvm/java/$relative"
+done
+
+jre_files=$(find $openjfx_dir/rt -type f -print)
+for file in $jre_files; do
+ relative=${file#$openjfx_dir/rt/}
+ ln -sfv "$openjfx_dir/rt/$relative" "/usr/lib/jvm/jre/$relative"
+done
diff --git a/openjfx.spec b/openjfx.spec
new file mode 100644
index 0000000..de98cea
--- /dev/null
+++ b/openjfx.spec
@@ -0,0 +1,187 @@
+%global openjfxdir %{_jvmdir}/%{name}
+
+Name: openjfx
+Version: 8.0.152
+Release: 10.b04%{?dist}
+Summary: Rich client application platform for Java
+
+#fxpackager is BSD
+License: GPL v2 with exceptions and BSD
+URL:
http://openjdk.java.net/projects/openjfx/
+
+Source0:
http://hg.openjdk.java.net/openjfx/8u-dev/rt/archive/8u152-b04.tar.bz2
+Source1: README.fedora
+
+Patch0: 0001-Fix-wait-call-in-PosixPlatform.patch
+Patch1: 0002-Bulid-in-Gradle-local-mode.patch
+
+ExclusiveArch: x86 x86_64
+
+Requires: javapackages-tools
+Requires: java
+
+BuildRequires: gradle-local
+BuildRequires: mvn(antlr:antlr)
+BuildRequires: mvn(junit:junit)
+BuildRequires: mvn(org.antlr:antlr:3.1.3)
+BuildRequires: mvn(org.antlr:stringtemplate)
+BuildRequires: mvn(org.apache.ant:ant)
+BuildRequires: mvn(org.eclipse.swt:swt)
+
+BuildRequires: pkgconfig(gtk+-2.0)
+BuildRequires: pkgconfig(gthread-2.0)
+BuildRequires: pkgconfig(xtst)
+BuildRequires: pkgconfig(libjpeg)
+
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: gperf
+
+%description
+JavaFX/OpenJFX is a set of graphics and media APIs that enables Java
+developers to design, create, test, debug, and deploy rich client
+applications that operate consistently across diverse platforms.
+
+The media and web module have been removed due to missing dependencies.
+
+%package devel
+BuildArch: noarch
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: java-devel
+Summary: OpenJFX development tools and libraries
+
+%description devel
+%{summary}.
+
+%package src
+BuildArch: noarch
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Summary: OpenJFX Source Bundle
+
+%description src
+%{summary}.
+
+%package javadoc
+BuildArch: noarch
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+
+%prep
+%setup -q -n rt-8u152-b04
+%patch0 -p1
+%patch1 -p1
+
+cp %{SOURCE1} .
+
+cat > gradle.properties << EOF
+COMPILE_WEBKIT = false
+COMPILE_MEDIA = false
+BUILD_JAVADOC = true
+BUILD_SRC_ZIP = true
+GRADLE_VERSION_CHECK = false
+EOF
+
+find -name '*.class' -delete
+find -name '*.jar' -delete
+
+#Bundled libraries
+rm -rf modules/media/src/main/native/gstreamer/3rd_party/glib
+rm -rf modules/media/src/main/native/gstreamer/gstreamer-lite
+rm -rf modules/graphics/src/main/native-iio/libjpeg*
+
+%build
+#Tests do not run by default, tests in web fails and one test in graphics fail:
+#UnsatisfiedLinkError: libjavafx_iio.so: undefined symbol: jpeg_resync_to_restart
+gradle-local --no-daemon --offline
+
+
+%install
+install -d -m 755 %{buildroot}%{openjfxdir}
+cp -a build/sdk/{bin,lib,rt} %{buildroot}%{openjfxdir}
+
+install -d -m 755 %{buildroot}%{_mandir}/man1
+install -m 644 build/sdk/man/man1/* %{buildroot}%{_mandir}/man1
+
+install -d -m 755 %{buildroot}%{_mandir}/ja_JP/man1
+install -m 644 build/sdk/man/ja_JP.UTF-8/man1/* %{buildroot}%{_mandir}/ja_JP/man1
+
+install -m 644 build/sdk/javafx-src.zip %{buildroot}%{openjfxdir}/javafx-src.zip
+
+install -d 755 %{buildroot}%{_javadocdir}/%{name}
+cp -a build/sdk/docs/api/. %{buildroot}%{_javadocdir}/%{name}
+
+mkdir -p %{buildroot}%{_bindir}
+ln -s %{openjfxdir}/bin/javafxpackager %{buildroot}%{_bindir}
+ln -s %{openjfxdir}/bin/javapackager %{buildroot}%{_bindir}
+
+%files
+%dir %{openjfxdir}
+%{openjfxdir}/rt
+%license LICENSE
+%doc README
+%doc README.fedora
+
+%files devel
+%{openjfxdir}/lib
+%{openjfxdir}/bin
+%{_bindir}/javafxpackager
+%{_bindir}/javapackager
+%{_mandir}/man1/javafxpackager.1*
+%{_mandir}/man1/javapackager.1*
+%{_mandir}/ja_JP/man1/javafxpackager.1*
+%{_mandir}/ja_JP/man1/javapackager.1*
+%license LICENSE
+%doc README
+%doc README.fedora
+
+%files src
+%{openjfxdir}/javafx-src.zip
+
+%files javadoc
+%{_javadocdir}/%{name}
+%license LICENSE
+
+%changelog
+* Wed May 31 2017 Jonny Heggheim <hegjon(a)gmail.com> - 8.0.152-10.b04
+- Update to upstream version 8.0.152b04
+
+* Wed May 31 2017 Jonny Heggheim <hegjon(a)gmail.com> - 8.0.152-9.b03
+- Added requires on java and java-devel
+- Updated license
+
+* Thu May 18 2017 Jonny Heggheim <hegjon(a)gmail.com> - 8.0.152-8.b03
+- Added requires on javapackages-tools
+- Added requires on parent package for subpackages devel and src
+
+* Fri May 12 2017 Jonny Heggheim <hegjon(a)gmail.com> - 8.0.152-7.b03
+- Introduce sub-package devel
+
+* Mon May 08 2017 Jonny Heggheim <hegjon(a)gmail.com> - 8.0.152-6.b03
+- Update to upstream version 8.0.152b03
+
+* Mon May 01 2017 Jonny Heggheim <hegjon(a)gmail.com> - 8.0.152-5.b02
+- Update to upstream version 8.0.152b02
+
+* Wed Apr 05 2017 Jonny Heggheim <hegjon(a)gmail.com> - 8.0.152-4.b00
+- Only build for x86 and x86_64, will fail to build on other platforms
+
+* Thu Jan 19 2017 Jonny Heggheim <hegjon(a)gmail.com> - 8.0.152-3.b00
+- Include javadoc sub-package
+
+* Tue Jan 17 2017 Jonny Heggheim <hegjon(a)gmail.com> - 8.0.152-2.b00
+- Include src sub-package
+
+* Fri Dec 30 2016 Jonny Heggheim <hegjon(a)gmail.com> - 8.0.152-1.b00
+- Update to upstream version 8.0.152b00
+
+* Tue Apr 26 2016 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 8.0.91-1
+- Update to upstream version 8.0.91
+
+* Tue Apr 26 2016 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 8.0.60-1
+- Update to upstream version 8.0.60
+
+* Mon Jul 6 2015 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 8.0.40-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..a4c9bf1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (8u152-b04.tar.bz2) =
032745dbc9ca2b143d82610f9472f42ba9a41371bd19c67f8e2b38b418b7be2d14f6fc72a9d7d3c2fea635725579cc5285b77954e79a257310aee354fffe0329