]>
Commit | Line | Data |
---|---|---|
9896cc05 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without incall # don't include all tarballs in .src.rpm | |
4 | # | |
6c15ca5a | 5 | %define need_x86 0 |
6 | %define need_ppc 0 | |
7 | %define need_ia64 0 | |
8 | %define need_x8664 0 | |
9 | ||
10 | %if %{with incall} | |
11 | %define need_x86 1 | |
12 | %define need_ppc 1 | |
297d9431 | 13 | %define need_ia64 1 |
6c15ca5a | 14 | %define need_x8664 1 |
15 | %else | |
16 | %ifarch %{ix86} | |
17 | %define need_x86 1 | |
18 | %endif | |
19 | %ifarch ppc | |
20 | %define need_ppc 1 | |
21 | %endif | |
22 | %ifarch ia64 | |
23 | %define need_ia64 1 | |
24 | %endif | |
25 | %ifarch %{x8664} | |
26 | %define need_x8664 1 | |
27 | %endif | |
28 | %endif | |
29 | ||
6a99fdd9 | 30 | Summary: CDT - a set of plugins for Eclipse that implement a C/C++ IDE |
39e0137e | 31 | Summary(pl.UTF-8): CDT - zestaw wtyczek do środowiska Eclipse implementujący IDE C/C++ |
6a99fdd9 | 32 | Name: eclipse-plugin-cdt |
b765e41b | 33 | %define _ver_major 3.1 |
e60bb911 | 34 | %define _ver_minor 2 |
b7220099 | 35 | Version: %{_ver_major}.%{_ver_minor} |
e60bb911 | 36 | Release: 0.5 |
d767739f | 37 | License: CPL v1.0 |
6a99fdd9 | 38 | Group: Development/Languages |
6c15ca5a | 39 | %if %{need_x86} |
b765e41b | 40 | Source0: http://download.eclipse.org/tools/cdt/releases/callisto/dist/%{version}/org.eclipse.cdt-%{version}-linux.x86.tar.gz |
e60bb911 | 41 | # Source0-md5: 27bfed95ce118e6a11a1350b8b38fd3e |
6c15ca5a | 42 | %endif |
43 | %if %{need_ppc} | |
b765e41b | 44 | Source1: http://download.eclipse.org/tools/cdt/releases/callisto/dist/%{version}/org.eclipse.cdt-%{version}-linux.ppc.tar.gz |
e60bb911 | 45 | # Source1-md5: cb61bc3d0eabf7a21f02a8237fdf9c94 |
6c15ca5a | 46 | %endif |
47 | %if %{need_ia64} | |
b765e41b | 48 | Source2: http://download.eclipse.org/tools/cdt/releases/callisto/dist/%{version}/org.eclipse.cdt-%{version}-linux.ia64.tar.gz |
e60bb911 | 49 | # Source2-md5: b1448fadfc299db039042ea10e522eca |
6c15ca5a | 50 | %endif |
51 | %if %{need_x8664} | |
b765e41b | 52 | Source3: http://download.eclipse.org/tools/cdt/releases/callisto/dist/%{version}/org.eclipse.cdt-%{version}-linux.x86_64.tar.gz |
e60bb911 | 53 | # Source3-md5: b221d7a78f77ce33de7fce6b60e3b782 |
6c15ca5a | 54 | %endif |
6a99fdd9 | 55 | URL: http://www.eclipse.org/cdt/ |
e78630c3 | 56 | BuildRequires: unzip |
6a99fdd9 | 57 | Requires: eclipse >= 3.0 |
9896cc05 | 58 | ExclusiveArch: %{ix86} %{x8664} ia64 ppc |
6a99fdd9 PS |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
60 | ||
44cf1b12 | 61 | %define _eclipse_arch %(echo %{_target_cpu} | sed 's/i.86/x86/;s/athlon/x86/;s/pentium./x86/') |
79772637 | 62 | %define _eclipsedir %{_libdir}/eclipse |
6a99fdd9 PS |
63 | |
64 | %description | |
9bdcb683 PS |
65 | The CDT project adds a C/C++ Perspective to the Eclipse Workbench that |
66 | supports C/C++ development with a number of views, wizards, a powerful | |
67 | editor, and a debugger. | |
68 | ||
ccc7e2e4 JR |
69 | %description -l pl.UTF-8 |
70 | Projekt CDT rozszerza zintegrowane środowisko programistyczne Eclipse | |
71 | o nowe elementy wspomagające tworzenie aplikacji w językach C i C++. | |
6a99fdd9 PS |
72 | |
73 | %prep | |
44cf1b12 PS |
74 | %ifarch %{ix86} |
75 | %setup -q -c -T -b0 | |
76 | %endif | |
77 | %ifarch ppc | |
78 | %setup -q -c -T -b1 | |
79 | %endif | |
80 | %ifarch ia64 | |
81 | %setup -q -c -T -b2 | |
82 | %endif | |
6c15ca5a | 83 | %ifarch %{x8664} |
84 | %setup -q -c -T -b3 | |
85 | %endif | |
6a99fdd9 PS |
86 | |
87 | %build | |
d767739f | 88 | %ifnarch %{ix86} |
6c15ca5a | 89 | rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86 |
d767739f PS |
90 | %endif |
91 | %ifnarch ppc | |
6c15ca5a | 92 | rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ppc |
6a99fdd9 | 93 | %endif |
d767739f | 94 | %ifnarch ia64 |
6c15ca5a | 95 | rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ia64 |
96 | %endif | |
97 | %ifnarch %{x8664} | |
98 | rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86_64 | |
6a99fdd9 PS |
99 | %endif |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
6a99fdd9 | 103 | install -d $RPM_BUILD_ROOT%{_eclipsedir}/{features,plugins} |
0944af9e | 104 | |
79772637 | 105 | cp -r * $RPM_BUILD_ROOT%{_libdir} |
6a99fdd9 PS |
106 | |
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
112 | %{_eclipsedir}/features/* | |
79772637 PS |
113 | %dir %{_eclipsedir}/plugins |
114 | %{_eclipsedir}/plugins/org.eclipse.cdt_*.*.* | |
115 | %{_eclipsedir}/plugins/org.eclipse.cdt.core_*.*.* | |
116 | ||
6c15ca5a | 117 | %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.* |
118 | %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os | |
119 | %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os/linux | |
120 | %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os/linux/%{_eclipse_arch} | |
121 | %attr(755,root,root) %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os/linux/%{_eclipse_arch}/*.so | |
27585bff | 122 | %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.* |
79772637 PS |
123 | %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.jar |
124 | %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.xml | |
6c15ca5a | 125 | %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.html |
126 | %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/*.xml | |
127 | %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/*.html | |
79772637 PS |
128 | |
129 | %{_eclipsedir}/plugins/org.eclipse.cdt.debug.core_*.*.* | |
130 | %{_eclipsedir}/plugins/org.eclipse.cdt.debug.mi.core_*.*.* | |
131 | %{_eclipsedir}/plugins/org.eclipse.cdt.debug.mi.ui_*.*.* | |
132 | %{_eclipsedir}/plugins/org.eclipse.cdt.debug.ui_*.*.* | |
133 | %{_eclipsedir}/plugins/org.eclipse.cdt.doc.user_*.*.* | |
134 | %{_eclipsedir}/plugins/org.eclipse.cdt.launch_*.*.* | |
135 | %{_eclipsedir}/plugins/org.eclipse.cdt.make.core_*.*.* | |
136 | %{_eclipsedir}/plugins/org.eclipse.cdt.make.ui_*.*.* | |
137 | %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.core_*.*.* | |
6c15ca5a | 138 | %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.gnu.ui_*.*.* |
79772637 | 139 | %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.ui_*.*.* |
6c15ca5a | 140 | %{_eclipsedir}/plugins/org.eclipse.cdt.refactoring_*.*.* |
79772637 | 141 | %{_eclipsedir}/plugins/org.eclipse.cdt.ui_*.*.* |