3 %bcond_without incall # don't include all tarballs in .src.rpm
5 %define plugin_name cdt
31 Summary: CDT - a set of plugins for Eclipse that implement a C/C++ IDE
32 Summary(pl.UTF-8): CDT - zestaw wtyczek do środowiska Eclipse implementujący IDE C/C++
33 Name: eclipse-plugin-%{plugin_name}
34 %define _ver_major 7.0
36 Version: %{_ver_major}.%{_ver_minor}
39 Group: Development/Languages
40 Source0: http://download.eclipse.org/tools/cdt/releases/helios/dist/cdt-master-%{version}.zip
41 # Source0-md5: 01a34887d24bded98769f44fccc51282
42 URL: http://www.eclipse.org/cdt/
44 Requires: eclipse >= 3.6
45 ExclusiveArch: %{ix86} %{x8664} ia64 ppc
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 %define _plugindir %{_libdir}/eclipse/dropins/%{plugin_name}
51 The CDT project adds a C/C++ Perspective to the Eclipse Workbench that
52 supports C/C++ development with a number of views, wizards, a powerful
53 editor, and a debugger.
55 %description -l pl.UTF-8
56 Projekt CDT rozszerza zintegrowane środowisko programistyczne Eclipse
57 o nowe elementy wspomagające tworzenie aplikacji w językach C i C++.
63 rm -rf plugins/org.eclipse.cdt.*aix*_%{_ver_major}.*
64 rm -rf plugins/org.eclipse.cdt.*macosx*_%{_ver_major}.*
65 rm -rf plugins/org.eclipse.cdt.*qnx*_%{_ver_major}.*
66 rm -rf plugins/org.eclipse.cdt.*solaris*_%{_ver_major}.*
67 rm -rf plugins/org.eclipse.cdt.*win32*_%{_ver_major}.*
69 rm -rf plugins/org.eclipse.cdt.*.x86_%{_ver_major}.*
72 rm -rf plugins/org.eclipse.cdt.*.ppc_%{_ver_major}.*
75 rm -rf plugins/org.eclipse.cdt.*.ia64_%{_ver_major}.*
78 rm -rf plugins/org.eclipse.cdt.*.x86_64_%{_ver_major}.*
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT%{_plugindir}/{features,plugins}
85 cp -r * $RPM_BUILD_ROOT%{_plugindir}
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
93 %dir %{_plugindir}/features
94 %dir %{_plugindir}/plugins
95 %{_plugindir}/features/*.jar
96 %{_plugindir}/plugins/net.sourceforge.lpg*.jar
97 %{_plugindir}/plugins/org.eclipse.ant.*.jar
98 %{_plugindir}/plugins/org.eclipse.cdt*.jar
99 %{_plugindir}/plugins/org.eclipse.test*.jar
100 %{_plugindir}/plugins/org.eclipse.tm.tcf*.jar