]>
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 | |
b77a3baa JR |
8 | %define eversion kepler |
9 | %define erelease SR1 | |
002762f5 | 10 | Version: 4.3.1 |
b77a3baa | 11 | Release: 2 |
8f8da232 | 12 | License: EPL v1.0 |
13 | Group: Development/Tools | |
e473b508 | 14 | %if %{with ix86} |
b77a3baa JR |
15 | Source0: ftp://ftp.uninett.no/pub/eclipse/technology/epp/downloads/release/%{eversion}/%{erelease}/eclipse-jee-%{eversion}-%{erelease}-linux-gtk.tar.gz |
16 | # Source0-md5: ae270acfc89b6c15f5e80b3b24922bc2 | |
e473b508 | 17 | %endif |
18 | %if %{with x86_64} | |
b77a3baa JR |
19 | Source1: ftp://ftp.uninett.no/pub/eclipse/technology/epp/downloads/release/%{eversion}/%{erelease}/eclipse-jee-%{eversion}-%{erelease}-linux-gtk-x86_64.tar.gz |
20 | # Source1-md5: 1134caead591b42a96642131186cb069 | |
e473b508 | 21 | %endif |
1ec31d0e | 22 | Source2: eclipse.desktop |
8f8da232 | 23 | URL: http://www.eclipse.org/ |
2302a46d | 24 | BuildRequires: rpm-pythonprov |
8f8da232 | 25 | BuildRequires: unzip |
8f8da232 | 26 | Requires: ant |
27 | Requires: jdk >= 1.4 | |
28 | Obsoletes: eclipse-SDK | |
c327f2ea | 29 | Obsoletes: eclipse |
30 | Provides: eclipse = %{version}-%{release} | |
9c21afd2 | 31 | Provides: eclipse-dtp |
c5aeb001 | 32 | Provides: eclipse-gef |
9c21afd2 | 33 | Provides: eclipse-plugin-webtools |
8f8da232 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %define eclipse_arch %(echo %{_target_cpu} | sed 's/i.86\\|athlon\\|pentium/x86/;s/amd64/x86_64/') | |
37 | %define no_install_post_chrpath 1 | |
38 | ||
39 | # list of script capabilities (regexps) not to be used in Provides | |
40 | %define _noautoprov libcairo.so.2 | |
41 | ||
42 | %description | |
43 | Eclipse is a kind of universal tool platform - an open extensible IDE | |
44 | for anything and nothing in particular. | |
45 | ||
46 | %description -l pl.UTF-8 | |
47 | Eclipse to rodzaj uniwersalnej platformy narzędziowej - otwarte, | |
48 | rozszerzalne IDE (zintegrowane środowisko programistyczne) do | |
49 | wszystkiego i niczego w szczególności. | |
50 | ||
51 | %prep | |
52 | %ifarch %{ix86} | |
53 | %setup -q -T -c -a0 | |
54 | %endif | |
55 | %ifarch %{x8664} | |
56 | %setup -q -T -c -a1 | |
57 | %endif | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
f7933bf1 JR |
61 | install -d $RPM_BUILD_ROOT{{%{_libdir},%{_datadir}}/eclipse/dropins,%{_bindir}} \ |
62 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_sysconfdir}/eclipse} | |
9bab56ee | 63 | |
64 | cd eclipse | |
b77a3baa | 65 | cp -a features p2 configuration plugins eclipse $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/eclipse |
8f8da232 | 100 | %attr(755,root,root) %{_bindir}/eclipse |
3a410374 | 101 | |
9c21afd2 | 102 | %dir %{_datadir}/eclipse |
f7933bf1 | 103 | %dir %{_datadir}/eclipse/dropins |
9c21afd2 | 104 | %{_datadir}/eclipse/.eclipseextension |