- up to 3.6.2
[packages/eclipse-platform-bin.git] / eclipse-platform-bin.spec
1 %bcond_without  ix86    # don't download ix86 source
2 %bcond_without  x86_64  # don't download x86_64 source
3
4 Summary:        Eclipse - an open extensible IDE
5 Summary(pl.UTF-8):      Eclipse - otwarte, rozszerzalne środowisko programistyczne
6 Name:           eclipse-platform-bin
7 Version:        3.6.2
8 Release:        0.1
9 License:        EPL v1.0
10 Group:          Development/Tools
11 %if %{with ix86}
12 Source0:        http://download.eclipse.org/eclipse/downloads/drops/R-3.6.2-201102101200/eclipse-platform-%{version}-linux-gtk.tar.gz
13 # Source0-md5:  6e68f49d0fc8954c5c35cdfc9355242f
14 %endif
15 %if %{with x86_64}
16 Source1:        http://download.eclipse.org/eclipse/downloads/drops/R-3.6.2-201102101200/eclipse-platform-%{version}-linux-gtk-x86_64.tar.gz
17 # Source1-md5:  001b3b657ba4b7ff82d76a5d36afe1b0
18 %endif
19 Source2:        eclipse.desktop
20 Source3:        eclipse.ini
21 URL:            http://www.eclipse.org/
22 BuildRequires:  rpm-pythonprov
23 BuildRequires:  unzip
24 Requires:       ant
25 Requires:       jdk >= 1.4
26 Provides:       eclipse = %{version}-%{release}
27 Obsoletes:      eclipse
28 Obsoletes:      eclipse-SDK
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 This package provides core runtime enviroment without any additional
42 plugins.
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 Ten pakiet dostarcza podstawowe środowisko uruchomieniowe bez żadnych
50 dodatkowych rozszerzeń.
51
52 %prep
53 %ifarch %{ix86}
54 %setup -q -T -c -a0
55 %endif
56 %ifarch %{x8664}
57 %setup -q -T -c -a1
58 %endif
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_libdir}/eclipse{,/dropins},%{_bindir},%{_desktopdir},%{_pixmapsdir},%{_sysconfdir}/eclipse}
63
64 cd eclipse
65 cp -a features p2 configuration plugins \
66       libcairo-swt.so eclipse \
67       $RPM_BUILD_ROOT%{_libdir}/eclipse
68
69 install -p icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/eclipse-icon.xpm
70
71 install -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
72 install -p eclipse.ini $RPM_BUILD_ROOT%{_sysconfdir}/eclipse/eclipse.ini
73
74 ln -s %{_libdir}/eclipse/eclipse $RPM_BUILD_ROOT%{_bindir}
75 ln -s %{_sysconfdir}/eclipse/eclipse.ini $RPM_BUILD_ROOT%{_libdir}/eclipse/eclipse.ini
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc eclipse/{about_files,readme,*html}
83 %dir %{_libdir}/eclipse
84 %dir %{_libdir}/eclipse/dropins
85 %{_libdir}/eclipse/features
86 %{_libdir}/eclipse/p2
87 %{_libdir}/eclipse/configuration
88 %{_libdir}/eclipse/plugins
89 %{_libdir}/eclipse/eclipse.ini
90 %{_desktopdir}/eclipse.desktop
91 %{_pixmapsdir}/eclipse-icon.xpm
92 %dir %{_sysconfdir}/eclipse
93 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/eclipse/eclipse.ini
94 %attr(755,root,root) %{_libdir}/eclipse/libcairo-swt.so
95 %attr(755,root,root) %{_libdir}/eclipse/eclipse
96 %attr(755,root,root) %{_bindir}/eclipse
This page took 0.052767 seconds and 3 git commands to generate.