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