- %{_eclipsedir} fixed.
[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 Summary(pl):    CDT - zestaw wtyczek do ¶rodowiska Eclipse implementuj±cy IDE C/C++
3 Name:           eclipse-plugin-cdt
4 %define         _ver_major      2.0
5 %define         _ver_minor      2
6 Version:        %{_ver_major}.%{_ver_minor}
7 Release:        2
8 License:        CPL v0.5
9 Group:          Development/Languages
10 Source0:        http://download.eclipse.org/tools/cdt/releases/new/zips/org.eclipse.cdt-%{version}-linux.x86.zip
11 # Source0-md5:  c6e3c5f74fddae54a8ff242b42de4ade
12 # Source0-size: 8486704
13 URL:            http://www.eclipse.org/cdt/
14 Requires:       eclipse >= 3.0
15 ExclusiveArch:  %{ix86} ppc
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _eclipse_arch   %(echo %{_target_cpu} | sed 's/i.86/x86/;s/athlon/x86/;s/pentium./x86/')
19 %define         _eclipsedir     %{_libdir}/eclipse
20
21 %description
22 The CDT project adds a C/C++ Perspective to the Eclipse Workbench that
23 supports C/C++ development with a number of views, wizards, a powerful
24 editor, and a debugger.
25
26 %description -l pl
27 Projekt CDT rozszerza zintegrowane ¶rodowisko programistyczne Eclipse
28 o nowe elementy wspomagaj±ce tworzenie aplikacji w jêzykach C i C++.
29
30 %prep
31 %setup -q -c
32
33 %build
34 %ifarch %{ix86}
35 rm -r eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ppc
36 %endif
37 %ifarch ppc
38 rm -r eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86
39 %endif
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_eclipsedir}/{features,plugins}
44
45 cp -r * $RPM_BUILD_ROOT%{_libdir}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %{_eclipsedir}/features/*
53 %dir %{_eclipsedir}/plugins
54 %{_eclipsedir}/plugins/org.eclipse.cdt_*.*.*
55 %{_eclipsedir}/plugins/org.eclipse.cdt.core_*.*.*
56
57 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*
58 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/os
59 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/os/linux
60 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/os/linux/%{_eclipse_arch}
61 %attr(755,root,root) %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/os/linux/%{_eclipse_arch}/*.so
62 %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.jar
63 %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.xml
64
65 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.core_*.*.*
66 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.mi.core_*.*.*
67 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.mi.ui_*.*.*
68 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.ui_*.*.*
69 %{_eclipsedir}/plugins/org.eclipse.cdt.doc.user_*.*.*
70 %{_eclipsedir}/plugins/org.eclipse.cdt.launch_*.*.*
71 %{_eclipsedir}/plugins/org.eclipse.cdt.make.core_*.*.*
72 %{_eclipsedir}/plugins/org.eclipse.cdt.make.ui_*.*.*
73 %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.core_*.*.*
74 %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.ui_*.*.*
75 %{_eclipsedir}/plugins/org.eclipse.cdt.ui_*.*.*
This page took 0.038826 seconds and 4 git commands to generate.