]>
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 | |
db72935b | 8 | Version: 3.7.2 |
3bf21910 | 9 | Release: 1 |
8f8da232 | 10 | License: EPL v1.0 |
11 | Group: Development/Tools | |
e473b508 | 12 | %if %{with ix86} |
db72935b MB |
13 | Source0: ftp://ftp.uninett.no/pub/eclipse/technology/epp/downloads/release/indigo/SR2/eclipse-jee-indigo-SR2-linux-gtk.tar.gz |
14 | # Source0-md5: 9aa26403a82436a9170e73ae243fbd76 | |
e473b508 | 15 | %endif |
16 | %if %{with x86_64} | |
db72935b MB |
17 | Source1: ftp://ftp.uninett.no/pub/eclipse/technology/epp/downloads/release/indigo/SR2/eclipse-jee-indigo-SR2-linux-gtk-x86_64.tar.gz |
18 | # Source1-md5: 50920c321037aa0c19bf9f6fd80ad2dc | |
e473b508 | 19 | %endif |
1ec31d0e | 20 | Source2: eclipse.desktop |
8f8da232 | 21 | URL: http://www.eclipse.org/ |
2302a46d | 22 | BuildRequires: rpm-pythonprov |
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} | |
9c21afd2 | 29 | Provides: eclipse-dtp |
c5aeb001 | 30 | Provides: eclipse-gef |
9c21afd2 | 31 | Provides: eclipse-plugin-webtools |
8f8da232 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %define eclipse_arch %(echo %{_target_cpu} | sed 's/i.86\\|athlon\\|pentium/x86/;s/amd64/x86_64/') | |
35 | %define no_install_post_chrpath 1 | |
36 | ||
37 | # list of script capabilities (regexps) not to be used in Provides | |
38 | %define _noautoprov libcairo.so.2 | |
39 | ||
40 | %description | |
41 | Eclipse is a kind of universal tool platform - an open extensible IDE | |
42 | for anything and nothing in particular. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Eclipse to rodzaj uniwersalnej platformy narzędziowej - otwarte, | |
46 | rozszerzalne IDE (zintegrowane środowisko programistyczne) do | |
47 | wszystkiego i niczego w szczególności. | |
48 | ||
49 | %prep | |
50 | %ifarch %{ix86} | |
51 | %setup -q -T -c -a0 | |
52 | %endif | |
53 | %ifarch %{x8664} | |
54 | %setup -q -T -c -a1 | |
55 | %endif | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
f7933bf1 JR |
59 | install -d $RPM_BUILD_ROOT{{%{_libdir},%{_datadir}}/eclipse/dropins,%{_bindir}} \ |
60 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_sysconfdir}/eclipse} | |
9bab56ee | 61 | |
62 | cd eclipse | |
63 | cp -a features p2 configuration plugins \ | |
1ec31d0e | 64 | libcairo-swt.so eclipse \ |
9bab56ee | 65 | $RPM_BUILD_ROOT%{_libdir}/eclipse |
8f8da232 | 66 | |
1ec31d0e | 67 | install -p icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/eclipse-icon.xpm |
68 | ||
3a410374 ER |
69 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
70 | cp -p eclipse.ini $RPM_BUILD_ROOT%{_sysconfdir}/eclipse/eclipse.ini | |
1ec31d0e | 71 | |
9bab56ee | 72 | ln -s %{_libdir}/eclipse/eclipse $RPM_BUILD_ROOT%{_bindir} |
1c778c7d | 73 | ln -s %{_sysconfdir}/eclipse/eclipse.ini $RPM_BUILD_ROOT%{_libdir}/eclipse/eclipse.ini |
8f8da232 | 74 | |
3a410374 | 75 | # place for arch independent plugins |
9c21afd2 JR |
76 | install -d $RPM_BUILD_ROOT%{_datadir}/eclipse/{features,plugins} |
77 | cat <<-'EOF'> $RPM_BUILD_ROOT%{_datadir}/eclipse/.eclipseextension | |
3a410374 ER |
78 | id=org.eclipse.platform name=Eclipse Platform |
79 | version=%{version} | |
80 | EOF | |
81 | ||
8f8da232 | 82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
9bab56ee | 87 | %doc eclipse/{about_files,readme,*html} |
88 | %dir %{_libdir}/eclipse | |
3b9202a1 | 89 | %dir %{_libdir}/eclipse/dropins |
9bab56ee | 90 | %{_libdir}/eclipse/features |
91 | %{_libdir}/eclipse/p2 | |
92 | %{_libdir}/eclipse/configuration | |
93 | %{_libdir}/eclipse/plugins | |
1c778c7d | 94 | %{_libdir}/eclipse/eclipse.ini |
1ec31d0e | 95 | %{_desktopdir}/eclipse.desktop |
96 | %{_pixmapsdir}/eclipse-icon.xpm | |
3b9202a1 JP |
97 | %dir %{_sysconfdir}/eclipse |
98 | %config(noreplace) %verify(not md5 mtime size) %attr(644,root,root) %{_sysconfdir}/eclipse/eclipse.ini | |
9bab56ee | 99 | %attr(755,root,root) %{_libdir}/eclipse/libcairo-swt.so |
100 | %attr(755,root,root) %{_libdir}/eclipse/eclipse | |
8f8da232 | 101 | %attr(755,root,root) %{_bindir}/eclipse |
3a410374 | 102 | |
9c21afd2 | 103 | %dir %{_datadir}/eclipse |
f7933bf1 | 104 | %dir %{_datadir}/eclipse/dropins |
9c21afd2 | 105 | %{_datadir}/eclipse/.eclipseextension |