- updated to 3.0.0rc1, only ix86 tho, i dont care much about other archs
[packages/eclipse-plugin-cdt.git] / eclipse-plugin-cdt.spec
1 %bcond_with     incall  #include all tarballs
2 %define         need_x86        0
3 %define         need_ppc        0
4 %define         need_ia64       0
5 %define         need_x8664      0
6
7 %if %{with incall}
8 %define         need_x86        1
9 %define         need_ppc        1
10 %define         need_x64        1
11 %define         need_x8664      1
12 %else
13 %ifarch %{ix86}
14 %define         need_x86        1
15 %endif
16 %ifarch ppc
17 %define         need_ppc        1
18 %endif
19 %ifarch ia64
20 %define         need_ia64       1
21 %endif
22 %ifarch %{x8664}
23 %define         need_x8664      1
24 %endif
25 %endif
26
27 %define         _rc     RC1
28 Summary:        CDT - a set of plugins for Eclipse that implement a C/C++ IDE
29 Summary(pl):    CDT - zestaw wtyczek do ¶rodowiska Eclipse implementuj±cy IDE C/C++
30 Name:           eclipse-plugin-cdt
31 %define         _ver_major      3.0
32 %define         _ver_minor      0
33 Version:        %{_ver_major}.%{_ver_minor}
34 Release:        0.%{_rc}.1
35 License:        CPL v1.0
36 Group:          Development/Languages
37 %if %{need_x86}
38 Source0:        http://download.eclipse.org/tools/cdt/builds/%{version}/%{_rc}/org.eclipse.cdt-%{version}-%{_rc}-linux.x86.tar.gz
39 # Source0-md5:  454b6e0279c83fd209d6ac839a459134
40 %endif
41 %if %{need_ppc}
42 Source1:        http://download.eclipse.org/tools/cdt/builds/%{version}/%{_rc}/org.eclipse.cdt-%{version}-%{_rc}-linux.ppc.tar.gz
43 # Source1-md5:  f16a8cbe6de0989c2adca4723a8d8af6
44 %endif
45 %if %{need_ia64}
46 Source2:        http://download.eclipse.org/tools/cdt/builds/%{version}/%{_rc}/org.eclipse.cdt-%{version}-%{_rc}-linux.ia64.tar.gz
47 # Source2-md5:  0e078e332170794b3623d8e5078c1829
48 %endif
49 %if %{need_x8664}
50 Source3:        http://download.eclipse.org/tools/cdt/builds/%{version}/%{_rc}/org.eclipse.cdt-%{version}-%{_rc}-linux.x86_64.tar.gz
51 # Source3-md5:  0e078e332170794b3623d8e5078c1829
52 %endif
53 URL:            http://www.eclipse.org/cdt/
54 BuildRequires:  unzip
55 Requires:       eclipse >= 3.0
56 ExclusiveArch:  %{ix86} ppc ia64
57 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59 %define         _eclipse_arch   %(echo %{_target_cpu} | sed 's/i.86/x86/;s/athlon/x86/;s/pentium./x86/')
60 %define         _eclipsedir     %{_libdir}/eclipse
61
62 %description
63 The CDT project adds a C/C++ Perspective to the Eclipse Workbench that
64 supports C/C++ development with a number of views, wizards, a powerful
65 editor, and a debugger.
66
67 %description -l pl
68 Projekt CDT rozszerza zintegrowane ¶rodowisko programistyczne Eclipse
69 o nowe elementy wspomagaj±ce tworzenie aplikacji w jêzykach C i C++.
70
71 %prep
72 %ifarch %{ix86}
73 %setup -q -c -T -b0
74 %endif
75 %ifarch ppc
76 %setup -q -c -T -b1
77 %endif
78 %ifarch ia64
79 %setup -q -c -T -b2
80 %endif
81 %ifarch %{x8664}
82 %setup -q -c -T -b3
83 %endif
84
85 %build
86 %ifnarch %{ix86}
87 rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86
88 %endif
89 %ifnarch ppc
90 rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ppc
91 %endif
92 %ifnarch ia64
93 rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ia64
94 %endif
95 %ifnarch %{x8664}
96 rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86_64
97 %endif
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT%{_eclipsedir}/{features,plugins}
102
103 cp -r * $RPM_BUILD_ROOT%{_libdir}
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %files
109 %defattr(644,root,root,755)
110 %{_eclipsedir}/features/*
111 %dir %{_eclipsedir}/plugins
112 %{_eclipsedir}/plugins/org.eclipse.cdt_*.*.*
113 %{_eclipsedir}/plugins/org.eclipse.cdt.core_*.*.*
114
115 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*
116 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os
117 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os/linux
118 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os/linux/%{_eclipse_arch}
119 %attr(755,root,root) %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os/linux/%{_eclipse_arch}/*.so
120 %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.jar
121 %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.xml
122 %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.html
123 %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/*.xml
124 %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/*.html
125
126 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.core_*.*.*
127 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.mi.core_*.*.*
128 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.mi.ui_*.*.*
129 %{_eclipsedir}/plugins/org.eclipse.cdt.debug.ui_*.*.*
130 %{_eclipsedir}/plugins/org.eclipse.cdt.doc.user_*.*.*
131 %{_eclipsedir}/plugins/org.eclipse.cdt.launch_*.*.*
132 %{_eclipsedir}/plugins/org.eclipse.cdt.make.core_*.*.*
133 %{_eclipsedir}/plugins/org.eclipse.cdt.make.ui_*.*.*
134 %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.core_*.*.*
135 %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.gnu.ui_*.*.*
136 %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.ui_*.*.*
137 %{_eclipsedir}/plugins/org.eclipse.cdt.refactoring_*.*.*
138 %{_eclipsedir}/plugins/org.eclipse.cdt.ui_*.*.*
This page took 0.095061 seconds and 3 git commands to generate.