]>
Commit | Line | Data |
---|---|---|
d77d5c98 AM |
1 | Summary: Eclipse Compiler for Java |
2 | Name: eclipse-ecj | |
3 | Version: 3.2.2 | |
4 | Release: 0.1 | |
5 | License: EPL v1.0 | |
6 | Group: Development/Tools | |
7 | Source0: http://distro.ibiblio.org:/pub/linux/distributions/gentoo/distfiles/eclipse-ecj-3.2.2.tar.bz2 | |
8 | # Source0-md5: 21f55de66c2deec51b6714b607b6793f | |
9 | Patch0: %{name}-gentoo.patch | |
10 | URL: http://www.eclipse.org/ | |
11 | BuildRequires: ant >= 1.6.1 | |
12 | BuildRequires: jdk >= 1.4 | |
13 | BuildRequires: pkgconfig | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.300 | |
16 | BuildRequires: unzip | |
17 | BuildRequires: zip | |
18 | Requires: ant | |
19 | Requires: jdk >= 1.4 | |
20 | ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664} | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define _eclipse_arch %(echo %{_target_cpu} | sed 's/i.86\\|athlon\\|pentium/x86/;s/amd64/x86_64/') | |
24 | %define no_install_post_chrpath 1 | |
25 | ||
26 | %description | |
27 | Eclipse Compiler for Java. | |
28 | ||
29 | %prep | |
30 | %setup -q | |
31 | %patch0 -p1 | |
32 | ||
33 | %build | |
34 | unset CLASSPATH || : | |
35 | export JAVA_HOME=%{java_home} | |
36 | ||
37 | ant -f compilejdtcorewithjavac.xml | |
38 | ant -lib ecj.jar -f compilejdtcore.xml compile | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_libdir}/%{name}} | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %attr(755,root,root) %{_bindir}/eclipse | |
50 | %attr(755,root,root) %{_libdir}/%{name}/eclipse | |
51 | %attr(755,root,root) %{_libdir}/%{name}/lib*.so | |
52 | %{_desktopdir}/eclipse.desktop | |
53 | %{_pixmapsdir}/eclipse-icon.xpm | |
54 | %dir %{_libdir}/%{name} | |
55 | %{_libdir}/%{name}/.eclipseproduct | |
56 | %{_libdir}/%{name}/configuration | |
57 | %{_libdir}/%{name}/eclipse.ini |