Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates-src > by-pkgid > 32c337e63ebaebafa0dd617c75543e98 > files > 21

java-1.8.0-openjfx-1.8.0.191-1.b10.8.mga6.src.rpm

Name:		java-1.8.0-openjfx
Epoch:		1
Version:	1.8.0.191
Release:	%mkrel 1.b10.8
Summary:	OpenJFX runtime libraries and documentation
Group:		Development/Java
License:	GPLv2 with exceptions
URL:		https://wiki.openjdk.java.net/dashboard.action

%ifarch %{arm} aarch64
%define _smp_ncpus_max 2
%endif

%global openjfx_version 8u191-b10
# hg clone http://hg.openjdk.java.net/openjfx/8u-dev/rt %{name}-%{version} -r %{openjfx_version}
# tar --exclude ".hg*" -cJf %{name}-%{version}.tar.xz %{name}-%{version}
Source0:	%{name}-%{version}.tar.xz
Source1:	apps.tar.xz
Patch1:		%{name}-1.8.0.101-set-antlr-timeout.patch
Patch2:		%{name}-1.8.0.101-disable-architecture-verification.patch
Patch3:		%{name}-1.8.0.101-disable-assembler-on-unsupported-archs.patch
Patch4:		%{name}-1.8.0.191-disable-sse2-for-arm.patch
Patch6:		%{name}-1.8.0.191-fix-arm64-build.patch
Patch7:		%{name}-1.8.0.191-fix-arm32-build.patch
Patch8:		%{name}-1.8.0.191-build-flags.patch
Patch10:	%{name}-1.8.0.152-use-system-jars.patch
Patch11:	%{name}-1.8.0.141-mga-correct-ruby-detection.patch
Patch12:	%{name}-1.8.0.152-gcc6-compatibility.patch
Patch13:	%{name}-1.8.0.191-disable-webkit-sampling-profiler.patch
Patch15:	%{name}-1.8.0.152-JDK-8185792-accented-characters-support.patch
Patch16:	%{name}-1.8.0.191-webcore-linker-flags.patch
Patch17:	%{name}-1.8.0.152-disable-buildSrc-tests.patch
Patch18:	%{name}-1.8.0.171-webkit-debug-level.patch
Patch19:	%{name}-1.8.0.152-disable-webkit-jit-for-armv4.patch
Patch20:	%{name}-1.8.0.172-mga-do-not-try-to-download-lucene.patch
Patch22:	%{name}-1.8.0.191-fix-arm32-build-2nd-part.patch

BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gperf
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(libpng12)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	glib2-devel
BuildRequires:	gtk2-devel
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(pango)
BuildRequires:	freetype-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	ffmpeg-devel
BuildRequires:	perl
BuildRequires:	perl(version)
BuildRequires:	perl(Digest)
BuildRequires:	perl(Digest::MD5)
BuildRequires:	coreutils
BuildRequires:	xz
BuildRequires:	binutils
BuildRequires:	libstdc++-static-devel
BuildRequires:	ruby(rubygems)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	icu-devel
BuildRequires:	gradle
BuildRequires:	antlr3
BuildRequires:	stringtemplate
BuildRequires:	eclipse-swt
BuildRequires:	cmake
BuildRequires:  hamcrest
Requires:	java-1.8.0-openjdk
Requires:	java-1.8.0-openjdk-openjfx
Requires:	java-1.8.0-openjdk-openjfx-devel
Provides:	openjfx%{?_isa}
Provides:	openjfx-devel%{?_isa}

%description
OpenJFX is an open source, next generation client application platform for
desktop and embedded systems based on JavaSE. It is a collaborative effort
by many individuals and companies with the goal of producing a modern,
efficient, and fully featured toolkit for developing rich client applications.
This is the open source project where we develop JavaFX.

%global openjfx_path %{buildroot}/%{_jvmdir}/openjfx
%global openjfx_srcdir %{_builddir}/%{name}-%{version}

# There is no need for a debug package (for now)
%global debug_package %{nil}

%ifarch %{ix86}
%global archinstall i386
%endif
%ifarch x86_64
%global archinstall amd64
%endif
%ifarch %{arm}
%global archinstall arm
%endif
%ifarch aarch64
%global archinstall aarch64
%endif

%prep
rpm -q %{name} && echo "You need to uninstall the previously built openjfx package before proceeding (this sounds stupid, but it actually makes sense!)" && exit 1
%setup -q
tar xJf %{SOURCE1}

%define gradle_properties %{openjfx_srcdir}/gradle.properties
echo "COMPILE_WEBKIT = true" >> %{gradle_properties}
echo "COMPILE_MEDIA = true" >> %{gradle_properties}
echo "BUILD_JAVADOC = true" >> %{gradle_properties}
echo "BUILD_SRC_ZIP = true" >> %{gradle_properties}
%ifarch %{arm} aarch64
echo "NUM_COMPILE_THREADS = 2" >> %{gradle_properties}
%endif

%patch1 -p1
%patch2 -p1
%patch3 -p1
%ifarch %{arm} aarch64
%patch4 -p1
%endif
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%patch19 -p1
%patch20 -p1
%ifarch %{arm}
%patch22 -p1
%endif

%build
# Copy the ICU and sqlite libraries required by JavaScriptCore
mkdir -p modules/web/build/linux/import/lib/
cp %{_libdir}/libicui18n.so modules/web/build/linux/import/lib/libicui18n.a
cp %{_libdir}/libicuuc.so   modules/web/build/linux/import/lib/libicuuc.a
cp %{_libdir}/libicudata.so modules/web/build/linux/import/lib/libicudata.a
cp %{_libdir}/libsqlite3.so modules/web/build/linux/import/lib/libsqlite3.a

gradle

chmod a-x build/javadoc/javafx/scene/layout/doc-files/borderpane.png
chmod a-x build/javadoc/javafx/scene/paint/doc-files/ImagePattern.png
chmod a-x build/javadoc/javafx/scene/media/doc-files/mediaplayerstatus.png

%install
%global sdkdir build/sdk
mkdir -p build/sdk
chmod -R +x %{sdkdir}
mkdir -p %{openjfx_path}/{lib,bin,rt/lib/ext}
mkdir -p %{buildroot}/%{_mandir}/man1
mkdir -p %{openjfx_path}/rt/lib/%{archinstall}

# JDK libraries
install -m644 %{sdkdir}/lib/* %{openjfx_path}/lib/
install -m755 %{sdkdir}/bin/* %{openjfx_path}/bin/
install -m644 %{sdkdir}/man/man1/* %{buildroot}/%{_mandir}/man1/

# JRE libraries
install -m644 %{sdkdir}/rt/lib/*.* %{openjfx_path}/rt/lib/
install -m644 %{sdkdir}/rt/lib/ext/* %{openjfx_path}/rt/lib/ext/
install -m755 %{sdkdir}/rt/lib/%{archinstall}/* %{openjfx_path}/rt/lib/%{archinstall}/

xz %{buildroot}/%{_mandir}/man1/*

strip %{openjfx_path}/rt/lib/%{archinstall}/*.so

%files
%doc build/javadoc
%{_jvmdir}/openjfx/lib/*
%{_jvmdir}/openjfx/bin/*
%{_mandir}/man1/*
%{_jvmdir}/openjfx/rt/lib/*


%changelog
* Tue Nov 13 2018 ns80 <ns80> 1:1.8.0.191-1.b10.8.mga6
+ Revision: 1329783
- fix path for jre lib
- change openjfx packaging
- new version u191b10
- new version u181b12
- new version u172b11
- correct patch fix-arm32-build
- new version u171b11
- new version u161b12
- correct required version of java-1.8.0-openjdk
- new version u152b16
- new version u141b14

* Sat May 27 2017 neoclust <neoclust> 1:1.8.0.131-1.b11.5.mga6
+ Revision: 1105098
- Fix BuildRequires

* Tue May 02 2017 akien <akien> 1:1.8.0.131-1.b11.4.mga6
+ Revision: 1098291
- Rebuild for ffmpeg 3.3

* Wed Apr 26 2017 ns80 <ns80> 1:1.8.0.131-1.b11.3.mga6
+ Revision: 1097481
- revert last change as it also disables assembler for armv7hl and it causes build failure for both armv5tl and armv7hl

* Tue Apr 25 2017 ns80 <ns80> 1:1.8.0.131-1.b11.2.mga6
+ Revision: 1097327
- try to disable assembler for armv5tl

* Fri Apr 21 2017 ns80 <ns80> 1:1.8.0.131-1.b11.1.mga6
+ Revision: 1096988
- new version u131b11

* Wed Mar 15 2017 mrambo3501 <mrambo3501> 1:1.8.0.121-1.b13.3.mga6
+ Revision: 1092702
- Rebuild for icu-58.2

* Wed Mar 08 2017 akien <akien> 1:1.8.0.121-1.b13.2.mga6
+ Revision: 1089863
- Rebuild for ffmpeg 3.2.4

* Tue Jan 31 2017 ns80 <ns80> 1:1.8.0.121-1.b13.1.mga6
+ Revision: 1084377
- new version u121b13

* Tue Jan 17 2017 ns80 <ns80> 1:1.8.0.111-1.b14.4.mga6
+ Revision: 1082131
- rebuild for new java-1.8.0-openjdk

* Tue Jan 10 2017 ns80 <ns80> 1:1.8.0.111-1.b14.3.mga6
+ Revision: 1080821
- rebuild for new java-1.8.0-openjdk

* Tue Oct 25 2016 ns80 <ns80> 1:1.8.0.111-1.b14.2.mga6
+ Revision: 1063464
- bump release to rebuild

* Fri Oct 21 2016 ns80 <ns80> 1:1.8.0.111-1.b14.1.mga6
+ Revision: 1062880
- new version u111b14

* Mon Oct 03 2016 ns80 <ns80> 1:1.8.0.102-1.b14.4.mga6
+ Revision: 1058253
- add a patch to prevent downloading JArs when building and use the ones provided by Mageia

* Wed Sep 14 2016 ns80 <ns80> 1:1.8.0.102-1.b14.3.mga6
+ Revision: 1052899
- add a patch to use system libs for sqlite and icu

* Tue Sep 13 2016 ns80 <ns80> 1:1.8.0.102-1.b14.2.mga6
+ Revision: 1051850
- add a patch adding Mga build and link flags for ARM

* Sun Sep 11 2016 ns80 <ns80> 1:1.8.0.102-1.b14.1.mga6
+ Revision: 1051560
- new version u102b14

* Fri Sep 09 2016 ns80 <ns80> 1:1.8.0.101-1.b13.3.mga6
+ Revision: 1051157
- add another patch from Debian to allow building on ARM

* Fri Sep 09 2016 ns80 <ns80> 1:1.8.0.101-1.b13.2.mga6
+ Revision: 1051037
- add patches from Debian to allow building on ARM

* Fri Jul 29 2016 ns80 <ns80> 1:1.8.0.101-1.b13.1.mga6
+ Revision: 1043873
- new version u101b13

* Wed Jul 27 2016 tmb <tmb> 1:1.8.0.91-1.b14.4.mga6
+ Revision: 1043739
- rebuild for new java-1.8.0-openjdk

* Wed Jul 06 2016 ns80 <ns80> 1:1.8.0.91-1.b14.3.mga6
+ Revision: 1039082
- rebuild to match java-1.8.0-openjdk

* Fri May 27 2016 ns80 <ns80> 1:1.8.0.91-1.b14.2.mga6
+ Revision: 1018979
- rebuild to match java-1.8.0-openjdk

* Fri Apr 22 2016 ns80 <ns80> 1:1.8.0.91-1.b14.1.mga6
+ Revision: 1005190
- new version u91b14

* Wed Apr 06 2016 ns80 <ns80> 1:1.8.0.76-1.b04.2.mga6
+ Revision: 998989
- rebuild with openjdk 8u77

* Mon Apr 04 2016 ns80 <ns80> 1:1.8.0.76-1.b04.1.mga6
+ Revision: 998373
- new version u76b04

* Fri Feb 12 2016 ns80 <ns80> 1:1.8.0.72-1.b15.1.mga6
+ Revision: 957100
- imported package java-1.8.0-openjfx