]> git.pld-linux.org Git - packages/eclipse.git/blame - eclipse.spec
- minor fixes
[packages/eclipse.git] / eclipse.spec
CommitLineData
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
11Summary: eclipse
12Summary(pl): eclipse
0525a2f6 13Name: eclipse
14Version: %{_ver}
15Release: 0.%{_milestone}.1
22af25e3 16License: Common Public Licence
17Group: Development/Tools
0525a2f6 18Source0: http://www.eclipse.ps.pl/downloads/drops/S-%{_buildname}-%{_buildid}/eclipse-sourceBuild-srcIncluded-%{_buildname}.zip
19# Source0-md5: 12c9b31cf8605e58cf857715ac6ff5c3
31f1a10a 20Source1: %{name}.desktop
d0fe9857 21URL: http://www.eclipse.org/
0525a2f6 22Obsoletes: eclipse-SDK
2b804e44 23BuildRequires: jdk
0525a2f6 24BuildRequires: unzip
2b804e44 25BuildRequires: jakarta-ant >= 1.4
26BuildRequires: gtk+2-devel
27Requires: jdk
22af25e3 28Requires: jakarta-ant
2b804e44 29#BuildArch: noarch
22af25e3 30ExclusiveArch: %{ix86}
2b804e44 31BuildRoot: %{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 43JAVA_HOME=/usr/lib/java
44export JAVA_HOME
0525a2f6 45./build -os linux -ws gtk -arch x86 -target compile
2b804e44 46
47%install
48rm -rf $RPM_BUILD_ROOT
31f1a10a 49install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_datadir}/%{name}}
2b804e44 50
0525a2f6 51./build -os linux -ws gtk -arch x86 -target install
2b804e44 52
0525a2f6 53unzip result/linux-gtk-x86-sdk.zip -d $RPM_BUILD_ROOT%{_datadir}
22af25e3 54install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
2b804e44 55
56#wrapper
57install -d $RPM_BUILD_ROOT%{_bindir}
58cat > $RPM_BUILD_ROOT%{_bindir}/eclipse << EOF
59#!/bin/sh
22af25e3 60exec %{_datadir}/%{name}/eclipse \$*
2b804e44 61EOF
62
63%clean
64rm -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]*
This page took 0.06811 seconds and 4 git commands to generate.