]>
Commit | Line | Data |
---|---|---|
e473b508 | 1 | |
2 | %bcond_without ix86 # don't download ix86 source | |
3 | %bcond_without x86_64 # don't download x86_64 source | |
4 | ||
8f8da232 | 5 | Summary: Eclipse - an open extensible IDE |
6 | Summary(pl.UTF-8): Eclipse - otwarte, rozszerzalne środowisko programistyczne | |
7 | Name: eclipse-bin | |
9bab56ee | 8 | Version: 3.5.1 |
9 | Release: 0.1 | |
8f8da232 | 10 | License: EPL v1.0 |
11 | Group: Development/Tools | |
e473b508 | 12 | %if %{with ix86} |
8f8da232 | 13 | Source0: ftp://eclipse.bluage.com/technologySR1/eclipse-jee-galileo-SR1-linux-gtk.tar.gz |
9bab56ee | 14 | # Source0-md5: 8c1e4f8cc967cfc847ddd8150407d8cd |
e473b508 | 15 | %endif |
16 | %if %{with x86_64} | |
8f8da232 | 17 | Source1: ftp://eclipse.bluage.com/technologySR1/eclipse-jee-galileo-SR1-linux-gtk-x86_64.tar.gz |
9bab56ee | 18 | # Source1-md5: f7a468512be47b9119ce1b92d25d9c7e |
e473b508 | 19 | %endif |
1ec31d0e | 20 | Source2: eclipse.desktop |
8f8da232 | 21 | URL: http://www.eclipse.org/ |
8f8da232 | 22 | BuildRequires: unzip |
8f8da232 | 23 | Requires: ant |
24 | Requires: jdk >= 1.4 | |
25 | Obsoletes: eclipse-SDK | |
26 | ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664} | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %define eclipse_arch %(echo %{_target_cpu} | sed 's/i.86\\|athlon\\|pentium/x86/;s/amd64/x86_64/') | |
30 | %define no_install_post_chrpath 1 | |
31 | ||
32 | # list of script capabilities (regexps) not to be used in Provides | |
33 | %define _noautoprov libcairo.so.2 | |
34 | ||
35 | %description | |
36 | Eclipse is a kind of universal tool platform - an open extensible IDE | |
37 | for anything and nothing in particular. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | Eclipse to rodzaj uniwersalnej platformy narzędziowej - otwarte, | |
41 | rozszerzalne IDE (zintegrowane środowisko programistyczne) do | |
42 | wszystkiego i niczego w szczególności. | |
43 | ||
44 | %prep | |
45 | %ifarch %{ix86} | |
46 | %setup -q -T -c -a0 | |
47 | %endif | |
48 | %ifarch %{x8664} | |
49 | %setup -q -T -c -a1 | |
50 | %endif | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
1ec31d0e | 54 | install -d $RPM_BUILD_ROOT{%{_libdir}/eclipse,%{_bindir},%{_desktopdir},%{_pixmapsdir}} |
9bab56ee | 55 | |
56 | cd eclipse | |
57 | cp -a features p2 configuration plugins \ | |
1ec31d0e | 58 | libcairo-swt.so eclipse \ |
9bab56ee | 59 | $RPM_BUILD_ROOT%{_libdir}/eclipse |
8f8da232 | 60 | |
1ec31d0e | 61 | install -p icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/eclipse-icon.xpm |
62 | ||
63 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} | |
64 | ||
9bab56ee | 65 | ln -s %{_libdir}/eclipse/eclipse $RPM_BUILD_ROOT%{_bindir} |
8f8da232 | 66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
9bab56ee | 72 | %doc eclipse/{about_files,readme,*html} |
73 | %dir %{_libdir}/eclipse | |
74 | %{_libdir}/eclipse/features | |
75 | %{_libdir}/eclipse/p2 | |
76 | %{_libdir}/eclipse/configuration | |
77 | %{_libdir}/eclipse/plugins | |
1ec31d0e | 78 | %{_desktopdir}/eclipse.desktop |
79 | %{_pixmapsdir}/eclipse-icon.xpm | |
9bab56ee | 80 | %attr(755,root,root) %{_libdir}/eclipse/libcairo-swt.so |
81 | %attr(755,root,root) %{_libdir}/eclipse/eclipse | |
8f8da232 | 82 | %attr(755,root,root) %{_bindir}/eclipse |