summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms/gcc/target-c++.add
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2006-02-15 15:24:13 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2006-02-15 15:24:13 +0000
commitb3a8c23bd0576f0162378eca358af3a76d9b5b9f (patch)
treec4829c03e30ebfacf928f82bef31761186038750 /contrib/crossrpms/gcc/target-c++.add
parentBackup. (diff)
downloadrtems-b3a8c23bd0576f0162378eca358af3a76d9b5b9f.tar.bz2
New (From rtems/scripts)
Diffstat (limited to 'contrib/crossrpms/gcc/target-c++.add')
-rw-r--r--contrib/crossrpms/gcc/target-c++.add38
1 files changed, 38 insertions, 0 deletions
diff --git a/contrib/crossrpms/gcc/target-c++.add b/contrib/crossrpms/gcc/target-c++.add
new file mode 100644
index 0000000000..d27e1870bf
--- /dev/null
+++ b/contrib/crossrpms/gcc/target-c++.add
@@ -0,0 +1,38 @@
+%if %build_cxx
+# ==============================================================
+# @tool_target@-c++
+# ==============================================================
+%package -n @rpmprefix@@tool_target@-c++
+Summary: GCC c++ compiler for @tool_target@
+Group: %{rpmgroup}
+Version: %{gcc_version}
+License: GPL
+
+%if "%{_prefix}" != "/usr"
+Requires: @rpmprefix@rtems@osversion@-base-gcc
+%endif
+Requires: @rpmprefix@@tool_target@-gcc = %{gcc_version}-%{release}
+
+%description -n @rpmprefix@@tool_target@-c++
+GCC c++ compiler for @tool_target@.
+
+%files -n @rpmprefix@@tool_target@-c++ -f build/files.g++
+%defattr(-,root,root)
+%{_mandir}/man1/@tool_target@-g++.1*
+
+%{_bindir}/@tool_target@-c++%{_exeext}
+%{_bindir}/@tool_target@-g++%{_exeext}
+
+%dir %{gccexec}
+%dir %{gccexec}/@tool_target@
+%dir %{gccexec}/@tool_target@/%{gcc_version}
+%{gccexec}/@tool_target@/%{gcc_version}/cc1plus%{_exeext}
+
+%dir %{gcclib}/@tool_target@/%{gcc_version}/include
+%if "%{gcc_version}" >= "3.2"
+%{gcclib}/@tool_target@/%{gcc_version}/include/c++
+%else
+%{gcclib}/@tool_target@/%{gcc_version}/include/g++
+%endif
+%endif
+