]> git.pld-linux.org Git - packages/eclipse-plugin-cdt.git/blob - eclipse-plugin-cdt.spec
- initial release.
[packages/eclipse-plugin-cdt.git] / eclipse-plugin-cdt.spec
1 Summary:        CDT - a set of plugins for Eclipse that implement a C/C++ IDE
2 Name:           eclipse-plugin-cdt
3 %define         _ver_major      2.0
4 %define         _ver_minor      0
5 Version:        %{_ver_major}
6 Release:        0.1
7 License:        CPL
8 Group:          Development/Languages
9 Source0:        http://download.eclipse.org/tools/cdt/releases/new/zips/org.eclipse.cdt-%{version}-linux.gtk.x86.zip
10 # Source0-md5:  15fbefa22a0baf1e9ed4139ce219ade4
11 URL:            http://www.eclipse.org/cdt/
12 Requires:       eclipse >= 3.0
13 ExclusiveArch:  %{ix86} ppc
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _eclipsedir  %{_datadir}/eclipse
17
18 %description
19 The CDT project provides a set of plugins that implement a C/C++ IDE.
20 It adds a C/C++ Perspective to the Eclipse Workbench that supports
21 C/C++ development with a number of views, wizards, a powerful editor,
22 and a debugger.
23
24 %prep
25 %setup -q -c
26
27 %build
28 %ifarch %{ix86}
29 rm -r eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ppc
30 %endif
31 %ifarch ppc
32 rm -r eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86
33 %endif
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37
38 install -d $RPM_BUILD_ROOT%{_eclipsedir}/{features,plugins}
39 cp -r * $RPM_BUILD_ROOT%{_datadir}
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %{_eclipsedir}/features/*
47 %{_eclipsedir}/plugins/*
This page took 0.049656 seconds and 3 git commands to generate.