genodeftest / rpms / openjfx

Forked from rpms/openjfx 6 years ago
Clone

Blame openjfx.spec

4a762df
%global openjfxdir %{_jvmdir}/%{name}
4a762df
4a762df
Name:           openjfx
4a762df
Version:        8.0.152
b3c0e9e
Release:        12.b04%{?dist}
4a762df
Summary:        Rich client application platform for Java
4a762df
4a762df
#fxpackager is BSD
4a762df
License:        GPL v2 with exceptions and BSD
4a762df
URL:            http://openjdk.java.net/projects/openjfx/
4a762df
4a762df
Source0:        http://hg.openjdk.java.net/openjfx/8u-dev/rt/archive/8u152-b04.tar.bz2
4a762df
Source1:        README.fedora
4a762df
4a762df
Patch0:         0001-Fix-wait-call-in-PosixPlatform.patch
4a762df
Patch1:         0002-Bulid-in-Gradle-local-mode.patch
4a762df
c9d09df
ExclusiveArch:  %{ix86} x86_64
4a762df
4a762df
Requires:       javapackages-tools
4a762df
Requires:       java
4a762df
4a762df
BuildRequires:  gradle-local
4a762df
BuildRequires:  mvn(antlr:antlr)
4a762df
BuildRequires:  mvn(junit:junit)
4a762df
BuildRequires:  mvn(org.antlr:antlr:3.1.3)
4a762df
BuildRequires:  mvn(org.antlr:stringtemplate)
4a762df
BuildRequires:  mvn(org.apache.ant:ant)
4a762df
BuildRequires:  mvn(org.eclipse.swt:swt)
4a762df
4a762df
BuildRequires:  pkgconfig(gtk+-2.0)
4a762df
BuildRequires:  pkgconfig(gthread-2.0)
4a762df
BuildRequires:  pkgconfig(xtst)
4a762df
BuildRequires:  pkgconfig(libjpeg)
4a762df
4a762df
BuildRequires:  bison
4a762df
BuildRequires:  flex
4a762df
BuildRequires:  gperf
4a762df
4a762df
%description
4a762df
JavaFX/OpenJFX is a set of graphics and media APIs that enables Java
4a762df
developers to design, create, test, debug, and deploy rich client
4a762df
applications that operate consistently across diverse platforms.
4a762df
4a762df
The media and web module have been removed due to missing dependencies.
4a762df
4a762df
%package devel
4a762df
Requires: %{name}%{?_isa} = %{version}-%{release}
4a762df
Requires: java-devel
4a762df
Summary: OpenJFX development tools and libraries
4a762df
4a762df
%description devel
4a762df
%{summary}.
4a762df
4a762df
%package src
4a762df
Requires: %{name}%{?_isa} = %{version}-%{release}
4a762df
Summary: OpenJFX Source Bundle
4a762df
4a762df
%description src
4a762df
%{summary}.
4a762df
4a762df
%package javadoc
4a762df
BuildArch: noarch
4a762df
Summary: Javadoc for %{name}
4a762df
4a762df
%description javadoc
4a762df
This package contains javadoc for %{name}.
4a762df
4a762df
4a762df
%prep
4a762df
%setup -q -n rt-8u152-b04
4a762df
%patch0 -p1
4a762df
%patch1 -p1
4a762df
4a762df
cp %{SOURCE1} .
4a762df
4a762df
cat > gradle.properties << EOF
4a762df
COMPILE_WEBKIT = false
4a762df
COMPILE_MEDIA = false
4a762df
BUILD_JAVADOC = true
4a762df
BUILD_SRC_ZIP = true
4a762df
GRADLE_VERSION_CHECK = false
4a762df
EOF
4a762df
4a762df
find -name '*.class' -delete
4a762df
find -name '*.jar' -delete
4a762df
4a762df
#Bundled libraries
4a762df
rm -rf modules/media/src/main/native/gstreamer/3rd_party/glib
4a762df
rm -rf modules/media/src/main/native/gstreamer/gstreamer-lite
4a762df
rm -rf modules/graphics/src/main/native-iio/libjpeg*
4a762df
4a762df
%build
4a762df
#Tests do not run by default, tests in web fails and one test in graphics fail:
4a762df
#UnsatisfiedLinkError: libjavafx_iio.so: undefined symbol: jpeg_resync_to_restart
4a762df
gradle-local --no-daemon --offline
4a762df
4a762df
4a762df
%install
4a762df
install -d -m 755 %{buildroot}%{openjfxdir}
4a762df
cp -a build/sdk/{bin,lib,rt} %{buildroot}%{openjfxdir}
4a762df
4a762df
install -d -m 755 %{buildroot}%{_mandir}/man1
4a762df
install -m 644 build/sdk/man/man1/* %{buildroot}%{_mandir}/man1
4a762df
4a762df
install -d -m 755 %{buildroot}%{_mandir}/ja_JP/man1
4a762df
install -m 644 build/sdk/man/ja_JP.UTF-8/man1/* %{buildroot}%{_mandir}/ja_JP/man1
4a762df
4a762df
install -m 644 build/sdk/javafx-src.zip %{buildroot}%{openjfxdir}/javafx-src.zip
4a762df
4a762df
install -d 755 %{buildroot}%{_javadocdir}/%{name}
4a762df
cp -a build/sdk/docs/api/. %{buildroot}%{_javadocdir}/%{name}
4a762df
4a762df
mkdir -p %{buildroot}%{_bindir}
4a762df
ln -s %{openjfxdir}/bin/javafxpackager %{buildroot}%{_bindir}
4a762df
ln -s %{openjfxdir}/bin/javapackager %{buildroot}%{_bindir}
4a762df
4a762df
%files
4a762df
%dir %{openjfxdir}
4a762df
%{openjfxdir}/rt
4a762df
%license LICENSE
4a762df
%doc README
4a762df
%doc README.fedora
4a762df
4a762df
%files devel
4a762df
%{openjfxdir}/lib
4a762df
%{openjfxdir}/bin
4a762df
%{_bindir}/javafxpackager
4a762df
%{_bindir}/javapackager
4a762df
%{_mandir}/man1/javafxpackager.1*
4a762df
%{_mandir}/man1/javapackager.1*
4a762df
%{_mandir}/ja_JP/man1/javafxpackager.1*
4a762df
%{_mandir}/ja_JP/man1/javapackager.1*
4a762df
%license LICENSE
4a762df
%doc README
4a762df
%doc README.fedora
4a762df
4a762df
%files src
4a762df
%{openjfxdir}/javafx-src.zip
4a762df
4a762df
%files javadoc
4a762df
%{_javadocdir}/%{name}
4a762df
%license LICENSE
4a762df
4a762df
%changelog
b3c0e9e
* Thu Jun 15 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-12.b04
b3c0e9e
- Removed BuildArch: noarch for subpackages that requires the parent package
b3c0e9e
c9d09df
* Thu Jun 15 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-11.b04
8324df4
- Build on i686 too
c9d09df
4a762df
* Wed May 31 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-10.b04
4a762df
- Update to upstream version 8.0.152b04
4a762df
4a762df
* Wed May 31 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-9.b03
4a762df
- Added requires on java and java-devel
4a762df
- Updated license
4a762df
4a762df
* Thu May 18 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-8.b03
4a762df
- Added requires on javapackages-tools
4a762df
- Added requires on parent package for subpackages devel and src
4a762df
4a762df
* Fri May 12 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-7.b03
4a762df
- Introduce sub-package devel
4a762df
4a762df
* Mon May 08 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-6.b03
4a762df
- Update to upstream version 8.0.152b03
4a762df
4a762df
* Mon May 01 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-5.b02
4a762df
- Update to upstream version 8.0.152b02
4a762df
4a762df
* Wed Apr 05 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-4.b00
4a762df
- Only build for x86 and x86_64, will fail to build on other platforms
4a762df
4a762df
* Thu Jan 19 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-3.b00
4a762df
- Include javadoc sub-package
4a762df
4a762df
* Tue Jan 17 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-2.b00
4a762df
- Include src sub-package
4a762df
4a762df
* Fri Dec 30 2016 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-1.b00
4a762df
- Update to upstream version 8.0.152b00
4a762df
4a762df
* Tue Apr 26 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 8.0.91-1
4a762df
- Update to upstream version 8.0.91
4a762df
4a762df
* Tue Apr 26 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 8.0.60-1
4a762df
- Update to upstream version 8.0.60
4a762df
4a762df
* Mon Jul  6 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 8.0.40-1
4a762df
- Initial packaging