/[packages]/backports/5/java-1.8.0-openjfx/current/SPECS/java-1.8.0-openjfx.spec
ViewVC logotype

Contents of /backports/5/java-1.8.0-openjfx/current/SPECS/java-1.8.0-openjfx.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1084362 - (show annotations) (download)
Tue Jan 31 08:43:04 2017 UTC (7 years, 5 months ago) by ns80
File size: 4838 byte(s)
- SILENT: rename patches that have been updated

1 Name: java-1.8.0-openjfx
2 Version: 1.8.0.121
3 Release: %mkrel 1.b13.1
4 Summary: OpenJFX runtime libraries and documentation
5 Group: Development/Java
6 License: GPLv2 with exceptions
7 URL: https://wiki.openjdk.java.net/dashboard.action
8
9 Epoch: 1
10
11 %global openjfx_version 8u121-b13
12 %global openjdk8_short_version 1.8.0.121-%mkrel 1.b14.1
13 # hg clone http://hg.openjdk.java.net/openjfx/8u-dev/rt %{name}-%{version} -r %{openjfx_version}
14 # tar --exclude ".hg*" -cJf %{name}-%{version}.tar.xz %{name}-%{version}
15 Source0: %{name}-%{version}.tar.xz
16 Source1: http://services.gradle.org/distributions/gradle-1.8-bin.zip
17 Patch0: %{name}-1.8.0.72-mga-correct-copy-file.patch
18 Patch1: %{name}-1.8.0.101-set-antlr-timeout.patch
19 Patch2: %{name}-1.8.0.101-disable-architecture-verification.patch
20 Patch3: %{name}-1.8.0.101-disable-assembler-on-unsupported-archs.patch
21 Patch4: %{name}-1.8.0.101-disable-sse2-for-arm.patch
22 Patch6: %{name}-1.8.0.121-fix-arm64-build.patch
23 Patch7: %{name}-1.8.0.101-fix-arm32-build.patch
24 Patch8: %{name}-1.8.0.102-build-flags.patch
25 Patch9: %{name}-1.8.0.121-use-system-libs-for-sqlite-and-icu.patch
26 Patch10: %{name}-1.8.0.102-use-system-jars.patch
27
28 BuildRequires: java-1.8.0-openjdk-devel
29 BuildRequires: bison
30 BuildRequires: flex
31 BuildRequires: gperf
32 BuildRequires: pkgconfig
33 BuildRequires: pkgconfig(libpng12)
34 BuildRequires: libjpeg-devel
35 BuildRequires: libxml2-devel
36 BuildRequires: libxslt-devel
37 BuildRequires: systemd-devel
38 BuildRequires: glib2-devel
39 BuildRequires: gtk2-devel
40 BuildRequires: pkgconfig(xtst)
41 BuildRequires: pango-devel
42 BuildRequires: freetype-devel
43 BuildRequires: alsa-lib-devel
44 BuildRequires: qt4-devel
45 BuildRequires: pkgconfig(gstreamer-0.10)
46 BuildRequires: ffmpeg-devel
47 BuildRequires: perl
48 BuildRequires: perl-version
49 BuildRequires: perl-Digest
50 BuildRequires: perl-Digest-MD5
51 BuildRequires: coreutils
52 BuildRequires: xz
53 BuildRequires: binutils
54 BuildRequires: libstdc++-static-devel
55 BuildRequires: ruby
56 BuildRequires: pkgconfig(sqlite3)
57 BuildRequires: icu-devel
58 BuildRequires: antlr
59 BuildRequires: hamcrest
60 BuildRequires: junit
61 BuildRequires: antlr3
62 BuildRequires: stringtemplate
63 BuildRequires: eclipse-swt
64 Requires: java-1.8.0-openjdk = %{epoch}:%{openjdk8_short_version}
65
66 %description
67 OpenJFX is an open source, next generation client application platform for
68 desktop and embedded systems based on JavaSE. It is a collaborative effort
69 by many individuals and companies with the goal of producing a modern,
70 efficient, and fully featured toolkit for developing rich client applications.
71 This is the open source project where we develop JavaFX.
72
73 %global openjdk8_version java-1.8.0-openjdk-%{openjdk8_short_version}.%{_arch}
74 %global openjdk8_install_dir %{buildroot}/usr/lib/jvm/%{openjdk8_version}
75 %global openjfx_srcdir %{_builddir}/%{name}-%{version}
76
77 # There is no need for a debug package (for now)
78 %global debug_package %{nil}
79
80 %ifarch %{ix86}
81 %global archinstall i386
82 %endif
83 %ifarch x86_64
84 %global archinstall amd64
85 %endif
86 %ifarch %{arm}
87 %global archinstall arm
88 %endif
89
90 %prep
91 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
92 %setup -T -q -n gradle-1.8 -b 1
93 %setup -q
94
95 %define gradle_properties %{openjfx_srcdir}/gradle.properties
96 echo "COMPILE_WEBKIT = true" >> %{gradle_properties}
97 echo "COMPILE_MEDIA = true" >> %{gradle_properties}
98 echo "BUILD_JAVADOC = true" >> %{gradle_properties}
99 echo "BUILD_SRC_ZIP = true" >> %{gradle_properties}
100
101 %patch0 -p1
102 %patch1 -p1
103 %patch2 -p1
104 %patch3 -p1
105 %ifarch %{arm}
106 %patch4 -p1
107 %endif
108 %patch6 -p1
109 %patch7 -p1
110 %patch8 -p1
111 %patch9 -p1
112 %patch10 -p1
113
114 %build
115 %{_builddir}/gradle-1.8/bin/gradle
116
117 chmod a-x build/javadoc/javafx/scene/layout/doc-files/borderpane.png
118 chmod a-x build/javadoc/javafx/scene/paint/doc-files/ImagePattern.png
119 chmod a-x build/javadoc/javafx/scene/media/doc-files/mediaplayerstatus.png
120
121 %install
122 %global sdkdir build/sdk
123 mkdir -p build/sdk
124 chmod -R +x %{sdkdir}
125 mkdir -p %{openjdk8_install_dir}/{lib,bin,jre/lib/ext}
126 mkdir -p %{buildroot}/%{_mandir}/man1
127 mkdir -p %{openjdk8_install_dir}/jre/lib/%{archinstall}
128
129 # JDK libraries
130 install -m644 %{sdkdir}/lib/* %{openjdk8_install_dir}/lib/
131 install -m755 %{sdkdir}/bin/* %{openjdk8_install_dir}/bin/
132 install -m644 %{sdkdir}/man/man1/* %{buildroot}/%{_mandir}/man1/
133
134 # JRE libraries
135 install -m644 %{sdkdir}/rt/lib/*.* %{openjdk8_install_dir}/jre/lib/
136 install -m644 %{sdkdir}/rt/lib/ext/* %{openjdk8_install_dir}/jre/lib/ext/
137 install -m755 %{sdkdir}/rt/lib/%{archinstall}/* %{openjdk8_install_dir}/jre/lib/%{archinstall}/
138
139 xz %{buildroot}/%{_mandir}/man1/*
140
141 strip %{openjdk8_install_dir}/jre/lib/%{archinstall}/*.so
142
143 %files
144 %doc build/javadoc
145 /usr/lib/jvm/%{openjdk8_version}/lib/*
146 /usr/lib/jvm/%{openjdk8_version}/bin/*
147 %{_mandir}/man1/*
148 /usr/lib/jvm/%{openjdk8_version}/jre/lib/*

  ViewVC Help
Powered by ViewVC 1.1.30