]>
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 |
d8aa66d1 | 9 | Release: 2 |
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 |
711fde2d | 21 | Source3: eclipse.ini |
8f8da232 | 22 | URL: http://www.eclipse.org/ |
8f8da232 | 23 | BuildRequires: unzip |
8f8da232 | 24 | Requires: ant |
25 | Requires: jdk >= 1.4 | |
26 | Obsoletes: eclipse-SDK | |
c327f2ea | 27 | Obsoletes: eclipse |
28 | Provides: eclipse = %{version}-%{release} | |
8f8da232 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %define eclipse_arch %(echo %{_target_cpu} | sed 's/i.86\\|athlon\\|pentium/x86/;s/amd64/x86_64/') | |
32 | %define no_install_post_chrpath 1 | |
33 | ||
34 | # list of script capabilities (regexps) not to be used in Provides | |
35 | %define _noautoprov libcairo.so.2 | |
36 | ||
37 | %description | |
38 | Eclipse is a kind of universal tool platform - an open extensible IDE | |
39 | for anything and nothing in particular. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Eclipse to rodzaj uniwersalnej platformy narzędziowej - otwarte, | |
43 | rozszerzalne IDE (zintegrowane środowisko programistyczne) do | |
44 | wszystkiego i niczego w szczególności. | |
45 | ||
46 | %prep | |
47 | %ifarch %{ix86} | |
48 | %setup -q -T -c -a0 | |
49 | %endif | |
50 | %ifarch %{x8664} | |
51 | %setup -q -T -c -a1 | |
52 | %endif | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
711fde2d | 56 | install -d $RPM_BUILD_ROOT{%{_libdir}/eclipse,%{_bindir},%{_desktopdir},%{_pixmapsdir},%{_sysconfdir}/eclipse} |
9bab56ee | 57 | |
58 | cd eclipse | |
59 | cp -a features p2 configuration plugins \ | |
1ec31d0e | 60 | libcairo-swt.so eclipse \ |
9bab56ee | 61 | $RPM_BUILD_ROOT%{_libdir}/eclipse |
8f8da232 | 62 | |
1ec31d0e | 63 | install -p icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/eclipse-icon.xpm |
64 | ||
711fde2d | 65 | install -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
1c778c7d | 66 | install -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/eclipse.ini |
1ec31d0e | 67 | |
9bab56ee | 68 | ln -s %{_libdir}/eclipse/eclipse $RPM_BUILD_ROOT%{_bindir} |
1c778c7d | 69 | ln -s %{_sysconfdir}/eclipse/eclipse.ini $RPM_BUILD_ROOT%{_libdir}/eclipse/eclipse.ini |
8f8da232 | 70 | |
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
9bab56ee | 76 | %doc eclipse/{about_files,readme,*html} |
77 | %dir %{_libdir}/eclipse | |
78 | %{_libdir}/eclipse/features | |
79 | %{_libdir}/eclipse/p2 | |
80 | %{_libdir}/eclipse/configuration | |
81 | %{_libdir}/eclipse/plugins | |
1c778c7d | 82 | %{_libdir}/eclipse/eclipse.ini |
1ec31d0e | 83 | %{_desktopdir}/eclipse.desktop |
84 | %{_pixmapsdir}/eclipse-icon.xpm | |
711fde2d | 85 | %config(noreplace) %verify(not md5 mtime size) %attr(644,root,root) %{_sysconfdir}/eclipse |
9bab56ee | 86 | %attr(755,root,root) %{_libdir}/eclipse/libcairo-swt.so |
87 | %attr(755,root,root) %{_libdir}/eclipse/eclipse | |
8f8da232 | 88 | %attr(755,root,root) %{_bindir}/eclipse |