up to 8.2.1
[packages/eclipse-plugin-cdt.git] / eclipse-plugin-cdt.spec
1 %define         plugin_name     cdt
2 Summary:        CDT - a set of plugins for Eclipse that implement a C/C++ IDE
3 Summary(pl.UTF-8):      CDT - zestaw wtyczek do środowiska Eclipse implementujący IDE C/C++
4 Name:           eclipse-plugin-%{plugin_name}
5 Version:        8.2.1
6 Release:        1
7 License:        CPL v1.0
8 Group:          Development/Languages
9 Source0:        http://download.eclipse.org/tools/cdt/releases/kepler/sr1/cdt-master-%{version}.zip
10 # Source0-md5:  c45a575ebafa29e748b19d643d77cdbf
11 URL:            http://www.eclipse.org/cdt/
12 BuildRequires:  unzip
13 Requires:       eclipse >= 3.6
14 ExclusiveArch:  %{ix86} %{x8664} ia64 ppc
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _plugindir      %{_libdir}/eclipse/dropins/%{plugin_name}
18
19 %description
20 The CDT project adds a C/C++ Perspective to the Eclipse Workbench that
21 supports C/C++ development with a number of views, wizards, a powerful
22 editor, and a debugger.
23
24 %description -l pl.UTF-8
25 Projekt CDT rozszerza zintegrowane środowisko programistyczne Eclipse
26 o nowe elementy wspomagające tworzenie aplikacji w językach C i C++.
27
28 %prep
29 %setup -qc
30
31 rm -rfv plugins/org.eclipse.cdt.core.aix*_*.*
32 rm -rfv plugins/org.eclipse.cdt.core.macosx*_*.*
33 rm -rfv plugins/org.eclipse.cdt.core.solaris*_*.*
34 rm -rfv plugins/org.eclipse.cdt.core.win32*_*.*
35 %ifnarch %{ix86}
36 rm -rfv plugins/org.eclipse.cdt.core.linux.x86_?.*
37 %endif
38 %ifnarch ppc ppc64
39 rm -rfv plugins/org.eclipse.cdt.core.linux.ppc64_*.*
40 %endif
41 %ifnarch %{x8664}
42 rm -rfv plugins/org.eclipse.cdt.core.linux.x86_64_*.*
43 %endif
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_plugindir}/{features,plugins}
48 cp -a * $RPM_BUILD_ROOT%{_plugindir}
49
50 rm $RPM_BUILD_ROOT%{_plugindir}/artifacts.jar
51 rm $RPM_BUILD_ROOT%{_plugindir}/content.jar
52 rm -r $RPM_BUILD_ROOT%{_plugindir}/binary
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %dir %{_plugindir}
60 %dir %{_plugindir}/features
61 %dir %{_plugindir}/plugins
62 %{_plugindir}/META-INF
63 %{_plugindir}/features/*.jar*
64 %{_plugindir}/plugins/net.sourceforge.lpg*.jar*
65 %{_plugindir}/plugins/org.eclipse.linuxtools.cdt.*.jar*
66 %{_plugindir}/plugins/org.eclipse.cdt*.jar*
This page took 0.077087 seconds and 3 git commands to generate.