]>
Commit | Line | Data |
---|---|---|
2b804e44 | 1 | # TODO: |
22af25e3 | 2 | # - conditional build with motif |
385528fc | 3 | # - .so binaries should be removed and linked with PLD one... |
31f1a10a | 4 | # (we really need them here?) |
2b804e44 | 5 | |
0525a2f6 | 6 | %define _buildid 200307181617 |
0525a2f6 | 7 | %define _ver 3.0 |
8 | %define _milestone M2 | |
9 | %define _buildname %{_ver}%{_milestone} | |
2b804e44 | 10 | |
11 | Summary: eclipse | |
12 | Summary(pl): eclipse | |
0525a2f6 | 13 | Name: eclipse |
14 | Version: %{_ver} | |
15 | Release: 0.%{_milestone}.1 | |
22af25e3 | 16 | License: Common Public Licence |
17 | Group: Development/Tools | |
0525a2f6 | 18 | Source0: http://www.eclipse.ps.pl/downloads/drops/S-%{_buildname}-%{_buildid}/eclipse-sourceBuild-srcIncluded-%{_buildname}.zip |
19 | # Source0-md5: 12c9b31cf8605e58cf857715ac6ff5c3 | |
31f1a10a | 20 | Source1: %{name}.desktop |
d0fe9857 | 21 | URL: http://www.eclipse.org/ |
0525a2f6 | 22 | Obsoletes: eclipse-SDK |
2b804e44 | 23 | BuildRequires: jdk |
0525a2f6 | 24 | BuildRequires: unzip |
2b804e44 | 25 | BuildRequires: jakarta-ant >= 1.4 |
26 | BuildRequires: gtk+2-devel | |
27 | Requires: jdk | |
22af25e3 | 28 | Requires: jakarta-ant |
2b804e44 | 29 | #BuildArch: noarch |
22af25e3 | 30 | ExclusiveArch: %{ix86} |
2b804e44 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %define _javalibdir /usr/share/java | |
2b804e44 | 34 | |
2b804e44 | 35 | %description |
36 | ||
37 | %description -l pl | |
38 | ||
39 | %prep | |
a04ac78e | 40 | %setup -q -c |
2b804e44 | 41 | |
42 | %build | |
ac78c087 | 43 | JAVA_HOME=/usr/lib/java |
44 | export JAVA_HOME | |
0525a2f6 | 45 | ./build -os linux -ws gtk -arch x86 -target compile |
2b804e44 | 46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
31f1a10a | 49 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_datadir}/%{name}} |
2b804e44 | 50 | |
0525a2f6 | 51 | ./build -os linux -ws gtk -arch x86 -target install |
2b804e44 | 52 | |
0525a2f6 | 53 | unzip result/linux-gtk-x86-sdk.zip -d $RPM_BUILD_ROOT%{_datadir} |
22af25e3 | 54 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
2b804e44 | 55 | |
56 | #wrapper | |
57 | install -d $RPM_BUILD_ROOT%{_bindir} | |
58 | cat > $RPM_BUILD_ROOT%{_bindir}/eclipse << EOF | |
59 | #!/bin/sh | |
22af25e3 | 60 | exec %{_datadir}/%{name}/eclipse \$* |
2b804e44 | 61 | EOF |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
2b804e44 | 68 | %attr(755,root,root) %{_bindir}/eclipse |
69 | %attr(755,root,root) %{_datadir}/%{name}/eclipse | |
f4a571c1 | 70 | %{_desktopdir}/eclipse.desktop |
22af25e3 | 71 | %dir %{_datadir}/%{name} |
72 | %{_datadir}/%{name}/.[^.]* | |
73 | %{_datadir}/%{name}/[^e]* |