- updated to 2.1.0.
[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.1
5 %define         _ver_minor      0
6 Version:        %{_ver_major}.%{_ver_minor}
7 Release:        1
8 License:        CPL v1.0
9 Group:          Development/Languages
10 %define         _eclipse_arch   %(echo %{_target_cpu} | sed 's/i.86/x86/;s/athlon/x86/;s/pentium./x86/')
11 Source0:        http://download.eclipse.org/tools/cdt/releases/new/zips/%{version}/org.eclipse.cdt-%{version}-linux.%{_eclipse_arch}.zip
12 # Source0-md5:  1542dee90e6c4451d51a8135f2860f41
13 URL:            http://www.eclipse.org/cdt/
14 BuildRequires:  unzip
15 Requires:       eclipse >= 3.0
16 ExclusiveArch:  %{ix86} ppc ia64
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
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 %ifnarch %{ix86}
35 rm -r eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86
36 %endif
37 %ifnarch ppc
38 rm -r eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ppc
39 %endif
40 %ifnarch ia64
41 rm -r eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ia64
42 %endif
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_eclipsedir}/{features,plugins}
47
48 cp -r * $RPM_BUILD_ROOT%{_libdir}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %{_eclipsedir}/features/*
56 %dir %{_eclipsedir}/plugins
57 %{_eclipsedir}/plugins/org.eclipse.cdt_*.*.*
58 %{_eclipsedir}/plugins/org.eclipse.cdt.core_*.*.*
59
60 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*
61 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/os
62 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/os/linux
63 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/os/linux/%{_eclipse_arch}
64 %attr(755,root,root) %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/os/linux/%{_eclipse_arch}/*.so
65 %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.jar
66 %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.xml
67
68 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.core_*.*.*
69 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.mi.core_*.*.*
70 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.mi.ui_*.*.*
71 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.ui_*.*.*
72 %{_eclipsedir}/plugins/org.eclipse.cdt.doc.user_*.*.*
73 %{_eclipsedir}/plugins/org.eclipse.cdt.launch_*.*.*
74 %{_eclipsedir}/plugins/org.eclipse.cdt.make.core_*.*.*
75 %{_eclipsedir}/plugins/org.eclipse.cdt.make.ui_*.*.*
76 %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.core_*.*.*
77 %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.ui_*.*.*
78 %{_eclipsedir}/plugins/org.eclipse.cdt.ui_*.*.*
This page took 0.042414 seconds and 4 git commands to generate.