]>
Commit | Line | Data |
---|---|---|
17425ea9 AM |
1 | # TODO: |
2 | # - fix bash substitution | |
48edbe02 | 3 | # |
17425ea9 | 4 | Summary: OpenJDK and GNU Classpath code |
48edbe02 | 5 | SummarY(pl.UTF-8): Kod OpenJDK i GNU Classpath |
17425ea9 | 6 | Name: icedtea |
531f6b8a | 7 | Version: 1.7 |
1a097517 | 8 | Release: 0.1 |
17425ea9 AM |
9 | License: GPL |
10 | Group: Development/Languages/Java | |
1a097517 | 11 | Source0: http://icedtea.classpath.org/download/source/%{name}-%{version}.tar.gz |
531f6b8a AM |
12 | # Source0-md5: 0d97865e26528182e01929917166dd26 |
13 | # Create this one by running make dist-openjdk (needs mercurial + mercurial forest extension) | |
14 | Source1: openjdk-b26.zip | |
15 | # Source1-md5: 7a5d2da503fde6ba09df9773d7df27ca | |
17425ea9 | 16 | URL: http://icedtea.classpath.org/wiki/Main_Page |
365a3e15 | 17 | BuildRequires: alsa-lib-devel |
17425ea9 AM |
18 | BuildRequires: bash |
19 | BuildRequires: cups-devel | |
20 | BuildRequires: eclipse-ecj | |
531f6b8a | 21 | BuildRequires: freetype-devel >= 2.3 |
c31cf24c | 22 | BuildRequires: gcc-java >= 6:4.3 |
365a3e15 AM |
23 | BuildRequires: giflib-devel |
24 | BuildRequires: glib2-devel | |
25 | BuildRequires: gtk+2-devel | |
531f6b8a | 26 | BuildRequires: gdk-pixbuf-devel |
cb5d7c4d | 27 | BuildRequires: jdk |
17425ea9 | 28 | BuildRequires: libgcj |
365a3e15 AM |
29 | BuildRequires: libjpeg-devel |
30 | BuildRequires: libpng-devel | |
cb5d7c4d | 31 | BuildRequires: libstdc++-devel |
17425ea9 AM |
32 | BuildRequires: motif-devel |
33 | BuildRequires: unzip | |
34 | BuildRequires: xalan-j | |
35 | BuildRequires: xerces-j | |
36 | BuildRequires: xorg-lib-libX11-devel | |
365a3e15 | 37 | BuildRequires: xorg-lib-libXinerama-devel |
531f6b8a | 38 | BuildRequires: xorg-lib-libXp-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 | |
17425ea9 AM |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
48 | The IcedTea project provides a harness to build the source code from | |
48edbe02 | 49 | http://openjdk.java.net/ using Free Software build tools and provides |
17425ea9 AM |
50 | replacements libraries for the binary plugs with code from the GNU |
51 | Classpath project. | |
52 | ||
48edbe02 JB |
53 | %description -l pl.UTF-8 |
54 | Projekt IcedTea daje możliwość kompilacji kodu źródłowego z | |
55 | http://openjdk.java.net/ przy użyciu wolnodostępnych narzędzi oraz | |
56 | dostarcza zamienniki biblioteczne binarnych wtyczek pochodzące z | |
57 | projektu GNU Classpath. | |
58 | ||
17425ea9 | 59 | %prep |
49e8e641 AM |
60 | # source1 should unpack itself into the same dir |
61 | # as specified in --with-openjdk-src= | |
55b056fa | 62 | %setup -q -a1 |
17425ea9 | 63 | |
49e8e641 AM |
64 | sed -i -e 's#^PRINTF.*=.*#PRINTF = /bin/printf#g' \ |
65 | openjdk/*/make/common/shared/Defs-utils.gmk | |
4fc18828 | 66 | |
17425ea9 | 67 | %build |
365a3e15 | 68 | unset JAVA_HOME || : |
17425ea9 | 69 | %configure \ |
34759b81 | 70 | --with-gcj-home=%{_prefix} \ |
531f6b8a | 71 | --with-ecj=%{_bindir}/ecj \ |
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 | 76 | --with-xerces2-jar=%{_javadir}/xerces.jar \ |
17425ea9 AM |
77 | --with-openjdk-src=${PWD}/openjdk |
78 | ||
365a3e15 AM |
79 | %{__make} -j1 \ |
80 | SHELL=/bin/bash | |
17425ea9 AM |
81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) |