ecd97361c65c623a53d147abc52666b4449b125b
[packages/eclipse-plugin-cdt.git] / eclipse-plugin-cdt.spec
1 #
2 # Conditional build:
3 %bcond_without  incall  # don't include all tarballs in .src.rpm
4 #
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
13 %define         need_ia64       1
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
30 Summary:        CDT - a set of plugins for Eclipse that implement a C/C++ IDE
31 Summary(pl.UTF-8):      CDT - zestaw wtyczek do środowiska Eclipse implementujący IDE C/C++
32 Name:           eclipse-plugin-cdt
33 %define         _ver_major      3.1
34 %define         _ver_minor      2
35 Version:        %{_ver_major}.%{_ver_minor}
36 Release:        0.5
37 License:        CPL v1.0
38 Group:          Development/Languages
39 %if %{need_x86}
40 Source0:        http://download.eclipse.org/tools/cdt/releases/callisto/dist/%{version}/org.eclipse.cdt-%{version}-linux.x86.tar.gz
41 # Source0-md5:  27bfed95ce118e6a11a1350b8b38fd3e
42 %endif
43 %if %{need_ppc}
44 Source1:        http://download.eclipse.org/tools/cdt/releases/callisto/dist/%{version}/org.eclipse.cdt-%{version}-linux.ppc.tar.gz
45 # Source1-md5:  cb61bc3d0eabf7a21f02a8237fdf9c94
46 %endif
47 %if %{need_ia64}
48 Source2:        http://download.eclipse.org/tools/cdt/releases/callisto/dist/%{version}/org.eclipse.cdt-%{version}-linux.ia64.tar.gz
49 # Source2-md5:  b1448fadfc299db039042ea10e522eca
50 %endif
51 %if %{need_x8664}
52 Source3:        http://download.eclipse.org/tools/cdt/releases/callisto/dist/%{version}/org.eclipse.cdt-%{version}-linux.x86_64.tar.gz
53 # Source3-md5:  b221d7a78f77ce33de7fce6b60e3b782
54 %endif
55 URL:            http://www.eclipse.org/cdt/
56 BuildRequires:  unzip
57 Requires:       eclipse >= 3.0
58 ExclusiveArch:  %{ix86} %{x8664} ia64 ppc
59 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60
61 %define         _eclipse_arch   %(echo %{_target_cpu} | sed 's/i.86/x86/;s/athlon/x86/;s/pentium./x86/')
62 %define         _eclipsedir     %{_libdir}/eclipse
63
64 %description
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
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++.
72
73 %prep
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
83 %ifarch %{x8664}
84 %setup -q -c -T -b3
85 %endif
86
87 %build
88 %ifnarch %{ix86}
89 rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86
90 %endif
91 %ifnarch ppc
92 rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ppc
93 %endif
94 %ifnarch ia64
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
99 %endif
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103 install -d $RPM_BUILD_ROOT%{_eclipsedir}/{features,plugins}
104
105 cp -r * $RPM_BUILD_ROOT%{_libdir}
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %files
111 %defattr(644,root,root,755)
112 %{_eclipsedir}/features/*
113 %dir %{_eclipsedir}/plugins
114 %{_eclipsedir}/plugins/org.eclipse.cdt_*.*.*
115 %{_eclipsedir}/plugins/org.eclipse.cdt.core_*.*.*
116
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
122 %dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*
123 %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.jar
124 %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.xml
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
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_*.*.*
138 %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.gnu.ui_*.*.*
139 %{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.ui_*.*.*
140 %{_eclipsedir}/plugins/org.eclipse.cdt.refactoring_*.*.*
141 %{_eclipsedir}/plugins/org.eclipse.cdt.ui_*.*.*
This page took 0.030016 seconds and 2 git commands to generate.