%global openjfxdir %{_jvmdir}/%{name} %global rtdir jfx-17.0.0.1-1 Name: openjfx Epoch: 3 Version: 17.0.0.1 Release: 6%{?dist} Summary: Rich client application platform for Java License: GPL v2 with exceptions and BSD URL: http://openjdk.java.net/projects/openjfx/ Source0: hg.openjdk.java.net/openjfx/11-dev/rt/archive/jfx-17.0.0.1-1.zip Source1: pom-base.xml Source2: pom-controls.xml Source3: pom-fxml.xml Source4: pom-graphics.xml Source5: pom-graphics_antlr.xml Source6: pom-graphics_decora.xml Source7: pom-graphics_compileJava.xml Source8: pom-graphics_compileJava-decora.xml Source9: pom-graphics_compileJava-java.xml Source10: pom-graphics_compileJava-prism.xml Source11: pom-graphics_graphics.xml Source12: pom-graphics_libdecora.xml Source13: pom-graphics_libglass.xml Source14: pom-graphics_libglassgtk2.xml Source15: pom-graphics_libglassgtk3.xml Source16: pom-graphics_libjavafx_font.xml Source17: pom-graphics_libjavafx_font_freetype.xml Source18: pom-graphics_libjavafx_font_pango.xml Source19: pom-graphics_libjavafx_iio.xml Source20: pom-graphics_libprism_common.xml Source21: pom-graphics_libprism_es2.xml Source22: pom-graphics_libprism_sw.xml Source23: pom-graphics_prism.xml Source24: pom-media.xml Source25: pom-openjfx.xml Source26: pom-swing.xml Source27: pom-swt.xml Source28: pom-web.xml Source29: build.xml ExclusiveArch: %{java_arches} Requires: (java-11-openjdk or java-17-openjdk or java-latest-openjdk) BuildRequires: javapackages-tools BuildRequires: java-11-openjdk-devel BuildRequires: maven-local BuildRequires: ant BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: libstdc++-static BuildRequires: mvn(org.eclipse.swt:swt) BuildRequires: mvn(org.antlr:antlr) BuildRequires: mvn(org.antlr:antlr4-maven-plugin) BuildRequires: mvn(org.antlr:stringtemplate) BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.codehaus.mojo:native-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(xtst) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(xxf86vm) BuildRequires: pkgconfig(gl) BuildRequires: cmake BuildRequires: gperf BuildRequires: perl BuildRequires: python3 BuildRequires: ruby-devel BuildRequires: rubygem-json %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 module have been removed due to missing dependencies. %global debug_package %{nil} %prep %setup -q -n %{rtdir} #Drop *src/test folders rm -rf modules/javafx.{base,controls,fxml,graphics,media,swing,swt,web}/src/test/ rm -rf modules/jdk.packager/src/test/ #prep for javafx.graphics cp -a modules/javafx.graphics/src/jslc/antlr modules/javafx.graphics/src/main/antlr3 cp -a modules/javafx.graphics/src/main/resources/com/sun/javafx/tk/quantum/*.properties modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum find -name '*.class' -delete find -name '*.jar' -delete #copy maven files cp -a %{_sourcedir}/pom-*.xml . mv pom-openjfx.xml pom.xml for MODULE in base controls fxml graphics media swing swt web do mv pom-$MODULE.xml ./modules/javafx.$MODULE/pom.xml done mkdir ./modules/javafx.graphics/mvn-{antlr,decora,compileJava,graphics,libdecora,libglass,libglassgtk2,libglassgtk3,libjavafx_font,libjavafx_font_freetype,libjavafx_font_pango,libjavafx_iio,libprism_common,libprism_es2,libprism_sw,prism} for GRAPHMOD in antlr decora compileJava graphics libdecora libglass libglassgtk2 libglassgtk3 libjavafx_font libjavafx_font_freetype libjavafx_font_pango libjavafx_iio libprism_common libprism_es2 libprism_sw prism do mv pom-graphics_$GRAPHMOD.xml ./modules/javafx.graphics/mvn-$GRAPHMOD/pom.xml done mkdir ./modules/javafx.graphics/mvn-compileJava/mvn-{decora,java,prism} for SUBMOD in decora java prism do mv pom-graphics_compileJava-$SUBMOD.xml ./modules/javafx.graphics/mvn-compileJava/mvn-$SUBMOD/pom.xml done #set VersionInfo cp -a %{_sourcedir}/build.xml . ant -f build.xml mkdir -p ./modules/javafx.graphics/mvn-antlr/src/main mv ./modules/javafx.graphics/src/main/antlr3 ./modules/javafx.graphics/mvn-antlr/src/main/antlr4 rm -rf ./modules/javafx.web/src/main/native/Source/WTF/icu rm -rf ./modules/javafx.web/src/main/native/Source/ThirdParty/icu %build #set openjdk11 for build export JAVA_HOME=%{_jvmdir}/java-11-openjdk export CFLAGS="${RPM_OPT_FLAGS}" export CXXFLAGS="${RPM_OPT_FLAGS}" %mvn_build --skip-javadoc # Disable libjfxwebkit build. It fails since F36 #{cmake} -DPORT="Java" --icu-unicode --64-bit --cmakeargs= -DENABLE_TOOLS=1 -DCMAKE_C_COMPILER='gcc' -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_C_FLAGS='-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS' -DCMAKE_CXX_FLAGS='-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS' -DCMAKE_SHARED_LINKER_FLAGS='-static-libgcc -static-libstdc++ -shared -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS -z relro -Wl,--gc-sections' -DCMAKE_EXE_LINKER_FLAGS='-static-libgcc -static-libstdc++ -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS -z relro -Wl,--gc-sections' -DJAVAFX_RELEASE_VERSION=17 ./modules/javafx.web/src/main/native #{cmake} -DPORT="Java" -DENABLE_TOOLS=1 -DCMAKE_C_COMPILER='gcc' -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_C_FLAGS='-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS' -DCMAKE_CXX_FLAGS='-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS' -DCMAKE_SHARED_LINKER_FLAGS='-static-libgcc -static-libstdc++ -shared -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS -z relro -Wl,--gc-sections' -DCMAKE_EXE_LINKER_FLAGS='-static-libgcc -static-libstdc++ -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS -z relro -Wl,--gc-sections' -DJAVAFX_RELEASE_VERSION=17 -S ./modules/javafx.web/src/main/native . #{cmake_build} #strip -g %{_builddir}/%{rtdir}/%_target_platform/lib/libjfxwebkit.so %install install -d -m 755 %{buildroot}%{openjfxdir} cp -a modules/javafx.{base,controls,fxml,media,swing,swt,web}/target/*.jar %{buildroot}%{openjfxdir} cp -a modules/javafx.graphics/mvn-compileJava/mvn-java/target/*.jar %{buildroot}%{openjfxdir} cp -a modules/javafx.graphics/mvn-lib{decora,javafx_font,javafx_font_freetype,javafx_font_pango,glass,glassgtk2,glassgtk3,javafx_iio,prism_common,prism_es2,prism_sw}/target/*.so %{buildroot}%{openjfxdir} #cp -a %_target_platform/lib/libjfxwebkit.so %{buildroot}%{openjfxdir} %files %dir %{openjfxdir} %{openjfxdir}/ %license LICENSE %license ADDITIONAL_LICENSE_INFO %license ASSEMBLY_EXCEPTION %doc README.md %changelog * Thu Jan 19 2023 Fedora Release Engineering - 3:17.0.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Nov 24 2022 Nicolas De Amicis - 3:17.0.0.1-5 - Conditional requires between openjdk 11, 17 or latest packages * Sat Jul 30 2022 Nicolas De Amicis - 3:17.0.0.1-4 - Build for all java arches * Fri Jul 22 2022 Fedora Release Engineering - 3:17.0.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jul 18 2022 Nicolas De Amicis - 3:17.0.0.1-2 - Rebuilt for use new macro java_arches and drop devel package * Thu Jun 02 2022 Nicolas De Amicis - 3:17.0.0.1-1 - Update to openjfx 17. libjfxwebkit build is disabled * Tue Mar 08 2022 Nicolas De Amicis - 3:11.0.9.2-10 - Fix cmake arguments * Wed Feb 16 2022 Mamoru TASAKA - 3:11.0.9.2-9 - g++12 fix with more header inclusion * Sat Feb 05 2022 Jiri Vanek - 3:11.0.9.2-8 - Rebuilt for java-17-openjdk as system jdk * Thu Jan 20 2022 Fedora Release Engineering - 3:11.0.9.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Nicolas De Amicis - 3:11.0.9.2-6 - Change target_platform variable in spec file * Fri Jun 11 2021 Nicolas De Amicis - 3:11.0.9.2-5 - Replace tasks by target needed by new version of maven-antrun-plugin and modifications needed by new version of cmake * Tue Jan 26 2021 Fedora Release Engineering - 3:11.0.9.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Nov 3 15:34:08 CET 2020 Nicolas De Amicis - 3:11.0.9.2-3 - Add Epoch value to Requires instruction for devel package (see bug 1893783) * Mon Nov 2 14:35:32 CET 2020 Nicolas De Amicis - 3:11.0.9.2-2 - Add Epoch value to avoid conflict with openjfx8 (see bug 1893422) * Tue Oct 20 2020 Nicolas De Amicis - 11.0.9.2-1 - Update to openjfx-11.0.9+2 * Tue Oct 06 2020 Nicolas De Amicis - 11.0.3-2 - Adding web module * Tue Jul 28 2020 Fedora Release Engineering - 11.0.3-1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Aug 14 2019 Nicolas De Amicis - 11.0.3-0 - Initial packaging