File openjfx.spec of Package openjfx
#
# spec file for "openjfx"
#
# Copyright (c) 2019 tz
#
# 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/
#
%global _openjfxdir %{_jvmdir}/%{name}
%global debug_package %{nil}
Name: openjfx
Version: 17+git1622030814.7b7050c462
Release: 1
License: GPL-2.0
Summary: Rich client application platform for Java
Url: http://openjdk.java.net/projects/%{name}/
Group: Development/Libraries/Java
Source0: %{name}-%{version}.tar.xz
Source1: %{name}-bootstrap-%{version}.tar.xz
Patch1: %{name}-001.patch
#Patch2: %%{name}-002.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison
BuildRequires: cmake >= 3.8.2
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: gperf
BuildRequires: java-11-openjdk-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(gdk-2.0)
BuildRequires: pkgconfig(gdk-3.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xxf86vm)
BuildRequires: python >= 2.7.0
BuildRequires: python-xml
BuildRequires: ruby >= 1.9
BuildRequires: xz
ExclusiveArch: x86_64
Requires: java-11-openjdk
%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.
%package javadoc
Summary: Javadocs for %{name}
Group: Development/Languages/Java
BuildRequires: java-11-openjdk-javadoc
BuildRequires: fdupes
Requires: jpackage-utils
BuildArch: noarch
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -b1 -q
%patch1 -p1
#%%patch2 -p1
#%%{__sed} -i -e 's/^jfx.build.jdk.buildnum.min=28/jfx.build.jdk.buildnum.min=24/' build.properties
%build
%{__rm} -rf /tmp/gradle*
%{__mv} -f ../%{name}-bootstrap-%{version}/* /tmp
sh gradlew \
--offline \
--gradle-user-home /tmp/gradle \
--project-cache-dir /tmp/gradle-project \
-x test \
-x check \
-PJDK_DOCS_LINK=file:%{_javadocdir}/java \
-PCOMPILE_WEBKIT=true \
-PCOMPILE_MEDIA=true \
-PBUILD_TIMESTAMP=2021-05-28-09:21:02 \
sdk javadoc
%install
export NO_BRP_CHECK_BYTECODE_VERSION=true
%{__install} -dm0755 %{buildroot}%{_openjfxdir}/{rt/lib,bin}
%{__install} -Dm0755 build/sdk/lib/*.so %{buildroot}%{_openjfxdir}/rt/lib
%{__install} -Dm0644 build/sdk/lib/*.{jar,properties} %{buildroot}%{_openjfxdir}/rt/lib
%{__install} -dm0755 %{buildroot}%{_javadocdir}/%{name}
%{__cp} -r build/javadoc/* %{buildroot}%{_javadocdir}/%{name}
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files
%defattr(-,root,root)
%{_openjfxdir}
%license {LICENSE,ADDITIONAL_LICENSE_INFO,ASSEMBLY_EXCEPTION}
%doc {README,CONTRIBUTING}.md
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}
%changelog