X-Git-Url: http://git.pld-linux.org/?p=packages%2Feclipse-plugin-cdt.git;a=blobdiff_plain;f=eclipse-plugin-cdt.spec;h=a78df39641f4d80d3cb2915f622edd5c25b90255;hp=5dc6744d8caefd67224e2731d639d9a5a6ca33d4;hb=357c5e6da1a23a722d079074c510b1fc948b6273;hpb=05f1040d3fd3b2f4cd1ef7168dca0fad9d87865a diff --git a/eclipse-plugin-cdt.spec b/eclipse-plugin-cdt.spec index 5dc6744..a78df39 100644 --- a/eclipse-plugin-cdt.spec +++ b/eclipse-plugin-cdt.spec @@ -1,51 +1,100 @@ +# +# Conditional build: +%bcond_without incall # don't include all tarballs in .src.rpm +# +%define plugin_name cdt +%define need_x86 0 +%define need_ppc 0 +%define need_ia64 0 +%define need_x8664 0 + +%if %{with incall} +%define need_x86 1 +%define need_ppc 1 +%define need_ia64 1 +%define need_x8664 1 +%else +%ifarch %{ix86} +%define need_x86 1 +%endif +%ifarch ppc +%define need_ppc 1 +%endif +%ifarch ia64 +%define need_ia64 1 +%endif +%ifarch %{x8664} +%define need_x8664 1 +%endif +%endif + Summary: CDT - a set of plugins for Eclipse that implement a C/C++ IDE -Summary(pl): CDT - zestaw wtyczek do Eclipsa implementuj±cy IDE C/C++ -Name: eclipse-plugin-cdt -%define _ver_major 2.0 -%define _ver_minor 0 -Version: %{_ver_major} +Summary(pl.UTF-8): CDT - zestaw wtyczek do środowiska Eclipse implementujący IDE C/C++ +Name: eclipse-plugin-%{plugin_name} +%define _ver_major 7.0 +%define _ver_minor 1 +Version: %{_ver_major}.%{_ver_minor} Release: 1 -License: CPL v0.5 +License: CPL v1.0 Group: Development/Languages -Source0: http://download.eclipse.org/tools/cdt/releases/new/zips/org.eclipse.cdt-%{version}-linux.gtk.x86.zip -# Source0-md5: 15fbefa22a0baf1e9ed4139ce219ade4 +Source0: http://download.eclipse.org/tools/cdt/releases/helios/dist/cdt-master-%{version}.zip +# Source0-md5: c84f16f67b197b4ea8e8a62a9e1d6cea URL: http://www.eclipse.org/cdt/ -Requires: eclipse >= 3.0 -ExclusiveArch: %{ix86} ppc +BuildRequires: unzip +Requires: eclipse >= 3.6 +ExclusiveArch: %{ix86} %{x8664} ia64 ppc BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _eclipsedir %{_datadir}/eclipse +%define _plugindir %{_libdir}/eclipse/dropins/%{plugin_name} %description The CDT project adds a C/C++ Perspective to the Eclipse Workbench that supports C/C++ development with a number of views, wizards, a powerful editor, and a debugger. -%description -l pl -Projekt CDT rozszerza zintegrowane ¶rodowisko programistyczne Eklipsa -o nowe elementy wspomagaj±ce tworzenie aplikacji w jêzykach C i C++. +%description -l pl.UTF-8 +Projekt CDT rozszerza zintegrowane środowisko programistyczne Eclipse +o nowe elementy wspomagające tworzenie aplikacji w językach C i C++. %prep %setup -q -c %build -%ifarch %{ix86} -rm -r eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ppc +rm -rf plugins/org.eclipse.cdt.*aix*_%{_ver_major}.* +rm -rf plugins/org.eclipse.cdt.*macosx*_%{_ver_major}.* +rm -rf plugins/org.eclipse.cdt.*qnx*_%{_ver_major}.* +rm -rf plugins/org.eclipse.cdt.*solaris*_%{_ver_major}.* +rm -rf plugins/org.eclipse.cdt.*win32*_%{_ver_major}.* +%ifnarch %{ix86} +rm -rf plugins/org.eclipse.cdt.*.x86_%{_ver_major}.* %endif -%ifarch ppc -rm -r eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86 +%ifnarch ppc +rm -rf plugins/org.eclipse.cdt.*.ppc_%{_ver_major}.* +%endif +%ifnarch ia64 +rm -rf plugins/org.eclipse.cdt.*.ia64_%{_ver_major}.* +%endif +%ifnarch %{x8664} +rm -rf plugins/org.eclipse.cdt.*.x86_64_%{_ver_major}.* %endif %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_plugindir}/{features,plugins} -install -d $RPM_BUILD_ROOT%{_eclipsedir}/{features,plugins} -cp -r * $RPM_BUILD_ROOT%{_datadir} +cp -r * $RPM_BUILD_ROOT%{_plugindir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%{_eclipsedir}/features/* -%{_eclipsedir}/plugins/* +%dir %{_plugindir} +%dir %{_plugindir}/features +%dir %{_plugindir}/plugins +%{_plugindir}/features/*.jar +%{_plugindir}/plugins/net.sourceforge.lpg*.jar +%{_plugindir}/plugins/org.eclipse.ant.*.jar +%{_plugindir}/plugins/org.eclipse.cdt*.jar +%{_plugindir}/plugins/org.eclipse.test*.jar +%{_plugindir}/plugins/org.eclipse.tm.tcf*.jar