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