]>
Commit | Line | Data |
---|---|---|
17425ea9 AM |
1 | # TODO: |
2 | # - fix bash substitution | |
48edbe02 | 3 | # |
4fc18828 AM |
4 | %bcond_with java_sun |
5 | # | |
17425ea9 | 6 | Summary: OpenJDK and GNU Classpath code |
48edbe02 | 7 | SummarY(pl.UTF-8): Kod OpenJDK i GNU Classpath |
17425ea9 | 8 | Name: icedtea |
1a097517 AM |
9 | Version: 1.6 |
10 | Release: 0.1 | |
17425ea9 AM |
11 | License: GPL |
12 | Group: Development/Languages/Java | |
1a097517 AM |
13 | Source0: http://icedtea.classpath.org/download/source/%{name}-%{version}.tar.gz |
14 | # Source0-md5: 99343f82b3a642a3be3e96816608ae23 | |
15 | # Create this one by running make openjdk-dist (needs mercurial + mercurial forest extension) | |
16 | Source1: openjdk-b24.zip | |
17 | # Source1-md5: 339618d385930f6dc07a7524541cae54 | |
17425ea9 | 18 | URL: http://icedtea.classpath.org/wiki/Main_Page |
365a3e15 | 19 | BuildRequires: alsa-lib-devel |
17425ea9 AM |
20 | BuildRequires: bash |
21 | BuildRequires: cups-devel | |
22 | BuildRequires: eclipse-ecj | |
365a3e15 AM |
23 | BuildRequires: freetype-devel |
24 | BuildRequires: gcc-java | |
25 | BuildRequires: giflib-devel | |
26 | BuildRequires: glib2-devel | |
27 | BuildRequires: gtk+2-devel | |
cb5d7c4d | 28 | BuildRequires: jdk |
17425ea9 | 29 | BuildRequires: libgcj |
365a3e15 AM |
30 | BuildRequires: libjpeg-devel |
31 | BuildRequires: libpng-devel | |
cb5d7c4d | 32 | BuildRequires: libstdc++-devel |
17425ea9 AM |
33 | BuildRequires: motif-devel |
34 | BuildRequires: unzip | |
35 | BuildRequires: xalan-j | |
36 | BuildRequires: xerces-j | |
37 | BuildRequires: xorg-lib-libX11-devel | |
365a3e15 | 38 | BuildRequires: xorg-lib-libXinerama-devel |
17425ea9 | 39 | BuildRequires: xorg-lib-libXt-devel |
365a3e15 | 40 | BuildRequires: xorg-lib-libXtst-devel |
17425ea9 AM |
41 | BuildRequires: xorg-proto-printproto-devel |
42 | BuildRequires: xorg-proto-xproto-devel | |
365a3e15 AM |
43 | BuildRequires: xulrunner-devel |
44 | BuildRequires: zlib-devel | |
4fc18828 AM |
45 | %if %{with java_sun} |
46 | BuildRequires: java-sun-jre | |
47 | BuildRequires: jpackage-utils | |
48 | %endif | |
17425ea9 AM |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
51 | %description | |
52 | The IcedTea project provides a harness to build the source code from | |
48edbe02 | 53 | http://openjdk.java.net/ using Free Software build tools and provides |
17425ea9 AM |
54 | replacements libraries for the binary plugs with code from the GNU |
55 | Classpath project. | |
56 | ||
48edbe02 JB |
57 | %description -l pl.UTF-8 |
58 | Projekt IcedTea daje możliwość kompilacji kodu źródłowego z | |
59 | http://openjdk.java.net/ przy użyciu wolnodostępnych narzędzi oraz | |
60 | dostarcza zamienniki biblioteczne binarnych wtyczek pochodzące z | |
61 | projektu GNU Classpath. | |
62 | ||
17425ea9 | 63 | %prep |
1a097517 | 64 | %setup -q |
17425ea9 | 65 | |
4fc18828 AM |
66 | find . -name '*.gmk' -exec sed -i -e 's#^PRINTF.*=.*#PRINTF = /bin/printf#g' "{}" ";" |
67 | ||
17425ea9 | 68 | %build |
365a3e15 | 69 | unset JAVA_HOME || : |
17425ea9 | 70 | %configure \ |
34759b81 | 71 | --with-gcj-home=%{_prefix} \ |
17425ea9 AM |
72 | --with-ecj-jar=%{_javadir}/ecj.jar \ |
73 | --with-libgcj-jar=%{_javadir}/libgcj.jar \ | |
74 | --with-xalan2-jar=%{_javadir}/xalan.jar \ | |
cb5d7c4d | 75 | --with-xalan2-serializer-jar=%{_javadir}/serializer.jar \ |
17425ea9 AM |
76 | --with-xerces2-jar=%{_javadir}/xerces.jar \ |
77 | --with-openjdk-src-zip=%{SOURCE1} \ | |
78 | --with-openjdk-src=${PWD}/openjdk | |
79 | ||
365a3e15 | 80 | %{__make} -j1 \ |
4fc18828 | 81 | %{?with_java_sun:BOOTDIR=%{java_home}} \ |
365a3e15 | 82 | SHELL=/bin/bash |
17425ea9 AM |
83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) |