X-Git-Url: http://git.pld-linux.org/?p=packages%2Feclipse-plugin-cdt.git;a=blobdiff_plain;f=eclipse-plugin-cdt.spec;h=3d7ee7b9153522461bc80ea1f6c4359123b05585;hp=031408f82a8353806762548b9155457d6b78cea5;hb=2e624cd0fd72fd32a740067411e8fb06ab446922;hpb=0944af9edb34cdbd237ac5898bfc1d75b773e54d diff --git a/eclipse-plugin-cdt.spec b/eclipse-plugin-cdt.spec index 031408f..3d7ee7b 100644 --- a/eclipse-plugin-cdt.spec +++ b/eclipse-plugin-cdt.spec @@ -1,51 +1,96 @@ +# +# Conditional build: +%bcond_without incall # don't include all tarballs in .src.rpm +# +%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 ¶rodowiska Eclipse implementuj±cy IDE C/C++ +Summary(pl.UTF-8): CDT - zestaw wtyczek do środowiska Eclipse implementujący IDE C/C++ Name: eclipse-plugin-cdt -%define _ver_major 2.0 -%define _ver_minor 0 -Version: %{_ver_major} -Release: 1 -License: CPL v0.5 +%define _ver_major 4.0 +%define _ver_minor 3 +Version: %{_ver_major}.%{_ver_minor} +Release: 0.9 +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/europa/dist/cdt-master-%{version}.zip +# Source0-md5: ff4564cbcec07c234222dd8a779a6b3f URL: http://www.eclipse.org/cdt/ -Requires: eclipse >= 3.0 -ExclusiveArch: %{ix86} ppc +BuildRequires: unzip +Requires: eclipse >= 3.3 +ExclusiveArch: %{ix86} %{x8664} ia64 ppc BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _eclipsedir %{_datadir}/eclipse +%define _eclipse_arch %(echo %{_target_cpu} | sed 's/i.86/x86/;s/athlon/x86/;s/pentium./x86/') +%define _eclipsedir %{_libdir}/eclipse %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 Eclipse -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%{_eclipsedir}/{features,plugins} -cp -r * $RPM_BUILD_ROOT%{_datadir} +cp -r * $RPM_BUILD_ROOT%{_eclipsedir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%{_eclipsedir}/features/* -%{_eclipsedir}/plugins/* +%{_eclipsedir}/features/*.jar +%{_eclipsedir}/plugins/net.sourceforge.lpg*.jar +%{_eclipsedir}/plugins/org.eclipse.ant.*.jar +%{_eclipsedir}/plugins/org.eclipse.cdt*.jar +%{_eclipsedir}/plugins/org.eclipse.test*.jar