- updated to 3.0.0rc1, only ix86 tho, i dont care much about other archs
[packages/eclipse-plugin-cdt.git] / eclipse-plugin-cdt.spec
index caa06fa97e4e8c6801500f72379d566c42bba9c1..6a06962d651f86a5ee68f92d8d2f86e236a6e9b4 100644 (file)
@@ -1,20 +1,63 @@
+%bcond_with    incall  #include all tarballs
+%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_x64        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
+
+%define                _rc     RC1
 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++
+Summary(pl):   CDT - zestaw wtyczek do ¶rodowiska Eclipse implementuj±cy IDE C/C++
 Name:          eclipse-plugin-cdt
-%define                _ver_major      2.0
+%define                _ver_major      3.0
 %define                _ver_minor      0
-Version:       %{_ver_major}
-Release:       0.1
-License:       CPL
+Version:       %{_ver_major}.%{_ver_minor}
+Release:       0.%{_rc}.1
+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
+%if %{need_x86}
+Source0:       http://download.eclipse.org/tools/cdt/builds/%{version}/%{_rc}/org.eclipse.cdt-%{version}-%{_rc}-linux.x86.tar.gz
+# Source0-md5: 454b6e0279c83fd209d6ac839a459134
+%endif
+%if %{need_ppc}
+Source1:       http://download.eclipse.org/tools/cdt/builds/%{version}/%{_rc}/org.eclipse.cdt-%{version}-%{_rc}-linux.ppc.tar.gz
+# Source1-md5: f16a8cbe6de0989c2adca4723a8d8af6
+%endif
+%if %{need_ia64}
+Source2:       http://download.eclipse.org/tools/cdt/builds/%{version}/%{_rc}/org.eclipse.cdt-%{version}-%{_rc}-linux.ia64.tar.gz
+# Source2-md5: 0e078e332170794b3623d8e5078c1829
+%endif
+%if %{need_x8664}
+Source3:       http://download.eclipse.org/tools/cdt/builds/%{version}/%{_rc}/org.eclipse.cdt-%{version}-%{_rc}-linux.x86_64.tar.gz
+# Source3-md5: 0e078e332170794b3623d8e5078c1829
+%endif
 URL:           http://www.eclipse.org/cdt/
+BuildRequires: unzip
 Requires:      eclipse >= 3.0
-ExclusiveArch: %{ix86} ppc
+ExclusiveArch: %{ix86} ppc ia64
 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
@@ -22,25 +65,42 @@ 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
+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
+%setup -q -c -T -b0
 %endif
 %ifarch ppc
-rm -r eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86
+%setup -q -c -T -b1
+%endif
+%ifarch ia64
+%setup -q -c -T -b2
+%endif
+%ifarch %{x8664}
+%setup -q -c -T -b3
+%endif
+
+%build
+%ifnarch %{ix86}
+rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86
+%endif
+%ifnarch ppc
+rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ppc
+%endif
+%ifnarch ia64
+rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/ia64
+%endif
+%ifnarch %{x8664}
+rm -rf eclipse/plugins/org.eclipse.cdt.core.linux_%{_ver_major}.%{_ver_minor}/os/linux/x86_64
 %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%{_libdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -48,4 +108,31 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %{_eclipsedir}/features/*
-%{_eclipsedir}/plugins/*
+%dir %{_eclipsedir}/plugins
+%{_eclipsedir}/plugins/org.eclipse.cdt_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.core_*.*.*
+
+%dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*
+%dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os
+%dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os/linux
+%dir %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os/linux/%{_eclipse_arch}
+%attr(755,root,root) %{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/os/linux/%{_eclipse_arch}/*.so
+%{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.jar
+%{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.xml
+%{_eclipsedir}/plugins/org.eclipse.cdt.core.linux_*.*.*/*.html
+%{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/*.xml
+%{_eclipsedir}/plugins/org.eclipse.cdt.core.linux.%{_eclipse_arch}_*.*.*/*.html
+
+%{_eclipsedir}/plugins/org.eclipse.cdt.debug.core_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.debug.mi.core_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.debug.mi.ui_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.debug.ui_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.doc.user_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.launch_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.make.core_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.make.ui_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.core_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.gnu.ui_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.managedbuilder.ui_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.refactoring_*.*.*
+%{_eclipsedir}/plugins/org.eclipse.cdt.ui_*.*.*
This page took 0.043974 seconds and 4 git commands to generate.