diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-09-28 07:27:06 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-09-28 07:27:06 +0000 |
commit | 1cb8b7fc352a46c084fafdfb93dba0306ed43466 (patch) | |
tree | bd7e17ba10d6ca74595bd6290cb7bdee15c0bbc9 /contrib/crossrpms/rtems4.8/sh | |
parent | copy from rtems-4.8 to rtems-4.9. (diff) | |
download | rtems-1cb8b7fc352a46c084fafdfb93dba0306ed43466.tar.bz2 |
Remove.
Diffstat (limited to 'contrib/crossrpms/rtems4.8/sh')
-rw-r--r-- | contrib/crossrpms/rtems4.8/sh/.cvsignore | 4 | ||||
-rw-r--r-- | contrib/crossrpms/rtems4.8/sh/Makefile.am | 30 | ||||
-rw-r--r-- | contrib/crossrpms/rtems4.8/sh/binutils-sources.add | 8 | ||||
-rw-r--r-- | contrib/crossrpms/rtems4.8/sh/cpukit-sources.add | 2 | ||||
-rw-r--r-- | contrib/crossrpms/rtems4.8/sh/gcc-sources.add | 57 | ||||
-rw-r--r-- | contrib/crossrpms/rtems4.8/sh/gdb-sources.add | 8 | ||||
-rw-r--r-- | contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-binutils.spec | 239 | ||||
-rw-r--r-- | contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gcc.spec | 544 | ||||
-rw-r--r-- | contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gdb.spec | 226 |
9 files changed, 0 insertions, 1118 deletions
diff --git a/contrib/crossrpms/rtems4.8/sh/.cvsignore b/contrib/crossrpms/rtems4.8/sh/.cvsignore deleted file mode 100644 index c3dcdce8bd..0000000000 --- a/contrib/crossrpms/rtems4.8/sh/.cvsignore +++ /dev/null @@ -1,4 +0,0 @@ -Makefile -Makefile.in -*.spec -*.spec.in diff --git a/contrib/crossrpms/rtems4.8/sh/Makefile.am b/contrib/crossrpms/rtems4.8/sh/Makefile.am deleted file mode 100644 index acdb89b5e6..0000000000 --- a/contrib/crossrpms/rtems4.8/sh/Makefile.am +++ /dev/null @@ -1,30 +0,0 @@ -# $Id$ - -TARGET = sh-rtems4.8 - -include $(top_srcdir)/mkspec.am - -BINUTILS_VERS = 2.18 -BINUTILS_PKGVERS = $(BINUTILS_VERS) -BINUTILS_RPMREL = 1%{?dist} -include ../binutils.am -BINUTILS_OPTS += - -GCC_VERS = 4.2.1 -GCC_PKGVERS = $(GCC_VERS) -GCC_RPMREL = 23%{?dist} -NEWLIB_VERS = 1.15.0 -include ../gcc.am -GCC_OPTS += --languages=cxx - -GDB_VERS = 6.6 -GDB_PKGVERS = $(GDB_VERS) -GDB_RPMREL = 9%{?dist} -include ../gdb.am -GDB_OPTS += - -CPUKIT_VERS = 4.7.99.1 -CPUKIT_PKGVERS = $(CPUKIT_VERS)-20070510 -CPUKIT_RPMREL = 0 -include ../cpukit.am -CPUKIT_OPTS += diff --git a/contrib/crossrpms/rtems4.8/sh/binutils-sources.add b/contrib/crossrpms/rtems4.8/sh/binutils-sources.add deleted file mode 100644 index ed7cddc3ef..0000000000 --- a/contrib/crossrpms/rtems4.8/sh/binutils-sources.add +++ /dev/null @@ -1,8 +0,0 @@ -Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2 -%{?_without_sources:NoSource: 0} -%if "%{binutils_version}" == "2.17" -Patch0: binutils-2.17-rtems4.8-20061021.diff -%endif -%if "%{binutils_version}" == "2.17.90" -Patch0: binutils-2.17.90-rtems4.8-20070807.diff -%endif diff --git a/contrib/crossrpms/rtems4.8/sh/cpukit-sources.add b/contrib/crossrpms/rtems4.8/sh/cpukit-sources.add deleted file mode 100644 index 763e672840..0000000000 --- a/contrib/crossrpms/rtems4.8/sh/cpukit-sources.add +++ /dev/null @@ -1,2 +0,0 @@ -Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/rtems-%{cpukit_pkgvers}.tar.bz2 -%{?_without_sources:NoSource: 0} diff --git a/contrib/crossrpms/rtems4.8/sh/gcc-sources.add b/contrib/crossrpms/rtems4.8/sh/gcc-sources.add deleted file mode 100644 index d7309a9169..0000000000 --- a/contrib/crossrpms/rtems4.8/sh/gcc-sources.add +++ /dev/null @@ -1,57 +0,0 @@ -%if "%{gcc_version}" == "3.4.6" -Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-3.4.6/gcc-core-%{gcc_pkgvers}.tar.bz2 -%endif -%if "%{gcc_version}" == "4.0.3" -Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-4.0.3-rtems-20060822.diff -%endif -%if "%{gcc_version}" == "4.1.1" -Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-4.1.1-rtems4.8-20070201.diff -%endif -%if "%{gcc_version}" == "4.1.2" -Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-4.1.2-rtems4.8-20070613.diff -%endif -%if "%{gcc_version}" == "4.2.0" -Source0: ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-%{gcc_pkgvers}-rtems4.8-20070613.diff -%endif -%if "%{gcc_version}" == "4.2.1" -Source0: ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-4.2.1-rtems4.8-20070804.diff -%endif -%{?_without_sources:NoSource: 0} - -%if %build_cxx -Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2 -%{?_without_sources:NoSource: 1} - -%endif -%if %build_f95 -Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2 -%{?_without_sources:NoSource: 2} - -%endif -%if %build_gcj -Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2 -%{?_without_sources:NoSource: 3} - -%endif -%if %build_gnat -Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2 -%{?_without_sources:NoSource: 4} - -%endif -%if %build_objc -Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2 -%{?_without_sources:NoSource: 5} - -%endif -%if %build_newlib -Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz -%if "%{newlib_version}" == "1.15.0" -Patch50: newlib-1.15.0-rtems4.8-20070804.diff -%endif -%{?_without_sources:NoSource: 50} -%endif diff --git a/contrib/crossrpms/rtems4.8/sh/gdb-sources.add b/contrib/crossrpms/rtems4.8/sh/gdb-sources.add deleted file mode 100644 index c302fca3d3..0000000000 --- a/contrib/crossrpms/rtems4.8/sh/gdb-sources.add +++ /dev/null @@ -1,8 +0,0 @@ -Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 -%{?_without_sources:NoSource: 0} -%if "%{gdb_version}" == "6.5" -Patch0: gdb-6.5-rtems-20060713.diff -%endif -%if "%{gdb_version}" == "6.6" -Patch0: gdb-6.6-rtems4.8-20070306.diff -%endif diff --git a/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-binutils.spec b/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-binutils.spec deleted file mode 100644 index 9927c1ae7d..0000000000 --- a/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-binutils.spec +++ /dev/null @@ -1,239 +0,0 @@ -# -# Please send bugfixes or comments to -# http://www.rtems.org/bugzilla -# - -%define _prefix /opt/rtems-4.8 -%define _infodir %{_prefix}/info -%define _mandir %{_prefix}/man - -%ifos cygwin cygwin32 mingw mingw32 -%define _exeext .exe -%else -%define _exeext %{nil} -%endif - -%define binutils_pkgvers 2.18 -%define binutils_version 2.18 -%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )} - -Name: rtems-4.8-sh-rtems4.8-binutils -Summary: Binutils for target sh-rtems4.8 -Group: Development/Tools -Version: %{binutils_rpmvers} -Release: 1%{?dist} -License: GPL/LGPL -URL: http://sources.redhat.com/binutils -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -# Required for building the infos -BuildRequires: /sbin/install-info -BuildRequires: texinfo >= 4.2 -BuildRequires: flex -BuildRequires: bison - -Requires: rtems-4.8-binutils-common - -Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2 -%{?_without_sources:NoSource: 0} -%if "%{binutils_version}" == "2.17" -Patch0: binutils-2.17-rtems4.8-20061021.diff -%endif -%if "%{binutils_version}" == "2.17.90" -Patch0: binutils-2.17.90-rtems4.8-20070807.diff -%endif - -%description -Cross binutils for target sh-rtems4.8 -%prep -%setup -q -c -T -n %{name}-%{version} - -%setup -q -D -T -n %{name}-%{version} -a0 -cd binutils-%{binutils_pkgvers} -%{?PATCH0:%patch0 -p1} -cd .. - -%build -%if "sh-rtems4.8" == "i686-pc-cygwin" -# The cygwin sources are leaking memory - RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')" -%endif - mkdir -p build - cd build - CFLAGS="$RPM_OPT_FLAGS" \ - ../binutils-%{binutils_pkgvers}/configure \ - --build=%_build --host=%_host \ - --target=sh-rtems4.8 \ - --verbose --disable-nls \ - --without-included-gettext \ - --disable-win32-registry \ - --disable-werror \ - --prefix=%{_prefix} --bindir=%{_bindir} \ - --exec-prefix=%{_exec_prefix} \ - --includedir=%{_includedir} --libdir=%{_libdir} \ - --mandir=%{_mandir} --infodir=%{_infodir} - - make all - make info - cd .. - -%install - rm -rf $RPM_BUILD_ROOT - - cd build - make prefix=$RPM_BUILD_ROOT%{_prefix} \ - bindir=$RPM_BUILD_ROOT%{_bindir} \ - includedir=$RPM_BUILD_ROOT%{_includedir} \ - libdir=$RPM_BUILD_ROOT%{_libdir} \ - infodir=$RPM_BUILD_ROOT%{_infodir} \ - mandir=$RPM_BUILD_ROOT%{_mandir} \ - exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \ - install - - make prefix=$RPM_BUILD_ROOT%{_prefix} \ - bindir=$RPM_BUILD_ROOT%{_bindir} \ - includedir=$RPM_BUILD_ROOT%{_includedir} \ - libdir=$RPM_BUILD_ROOT%{_libdir} \ - infodir=$RPM_BUILD_ROOT%{_infodir} \ - mandir=$RPM_BUILD_ROOT%{_mandir} \ - exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \ - install-info - -# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it. - rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info* - - rm -f $RPM_BUILD_ROOT%{_infodir}/dir - touch $RPM_BUILD_ROOT%{_infodir}/dir - -# binutils does not install share/locale, however it uses it - mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale - -# We don't ship host files - rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty* - -# manpages without corresponding tools - if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sh-rtems4.8-dlltool%{_exeext}; then - rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sh-rtems4.8-dlltool* - fi - if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sh-rtems4.8-nlmconv%{_exeext}; then - rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sh-rtems4.8-nlmconv* - fi - if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sh-rtems4.8-windres%{_exeext}; then - rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sh-rtems4.8-windres* - fi - - cd .. - -# Extract %%__os_install_post into os_install_post~ -cat << \EOF > os_install_post~ -%__os_install_post -EOF - -# Generate customized brp-*scripts -cat os_install_post~ | while read a x y; do -case $a in -# Prevent brp-strip* from trying to handle foreign binaries -*/brp-strip*) - b=$(basename $a) - sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b - chmod a+x $b - ;; -# Fix up brp-compress to handle %%_prefix != /usr -*/brp-compress*) - b=$(basename $a) - sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b - chmod a+x $b - ;; -esac -done - -sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \ - -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \ -< os_install_post~ > os_install_post -%define __os_install_post . ./os_install_post - -%clean - rm -rf $RPM_BUILD_ROOT - -# ============================================================== -# sh-rtems4.8-binutils -# ============================================================== -# %package -n rtems-4.8-sh-rtems4.8-binutils -# Summary: rtems binutils for sh-rtems4.8 -# Group: Development/Tools -# %if %build_infos -# Requires: rtems-4.8-binutils-common -# %endif - -%description -n rtems-4.8-sh-rtems4.8-binutils - -GNU binutils targetting sh-rtems4.8. - -%files -n rtems-4.8-sh-rtems4.8-binutils -%defattr(-,root,root) -%dir %{_mandir} -%dir %{_mandir}/man1 -%{_mandir}/man1/sh-rtems4.8-*.1* - -%dir %{_bindir} -%{_bindir}/sh-rtems4.8-* - -%dir %{_exec_prefix}/sh-rtems4.8 -%dir %{_exec_prefix}/sh-rtems4.8/bin -%{_exec_prefix}/sh-rtems4.8/bin/* - -%dir %{_exec_prefix}/sh-rtems4.8/lib -%{_exec_prefix}/sh-rtems4.8/lib/ldscripts -# ============================================================== -# rtems-4.8-binutils-common -# ============================================================== -%package -n rtems-4.8-binutils-common -Summary: Base package for RTEMS binutils -Group: Development/Tools -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info - -%description -n rtems-4.8-binutils-common - -RTEMS is an open source operating system for embedded systems. - -This is the base for binutils regardless of target CPU. - -%post -n rtems-4.8-binutils-common - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || : - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || : - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || : - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || : - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || : -%if "%{binutils_version}" > "2.17" - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || : -%endif - -%preun -n rtems-4.8-binutils-common -if [ $1 -eq 0 ]; then - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || : - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || : - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || : - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || : - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || : -%if "%{binutils_version}" > "2.17" - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || : -%endif -fi - -%files -n rtems-4.8-binutils-common -%defattr(-,root,root) -%dir %{_infodir} -%ghost %{_infodir}/dir -%{_infodir}/as.info* -%{_infodir}/bfd.info* -%{_infodir}/binutils.info* -%{_infodir}/ld.info* -%{_infodir}/standards.info* -%if "%{binutils_version}" > "2.17" -%{_infodir}/gprof.info* -%endif - -%dir %{_prefix}/share -%dir %{_prefix}/share/locale - diff --git a/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gcc.spec b/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gcc.spec deleted file mode 100644 index 16169feb79..0000000000 --- a/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gcc.spec +++ /dev/null @@ -1,544 +0,0 @@ -# -# Please send bugfixes or comments to -# http://www.rtems.org/bugzilla -# - -%define _prefix /opt/rtems-4.8 -%define _infodir %{_prefix}/info -%define _mandir %{_prefix}/man - -%ifos cygwin cygwin32 mingw mingw32 -%define _exeext .exe -%else -%define _exeext %{nil} -%endif - - -%define gcc_pkgvers 4.2.1 -%define gcc_version 4.2.1 -%define gcc_rpmvers %{expand:%(echo "4.2.1" | tr - _ )} - -%define newlib_version 1.15.0 -%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version} - -Name: rtems-4.8-sh-rtems4.8-gcc -Summary: sh-rtems4.8 gcc - -Group: Development/Tools -Version: %{gcc_rpmvers} -Release: 23%{?dist} -License: GPL -URL: http://gcc.gnu.org -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -%define _use_internal_dependency_generator 0 - -%if "%{gcc_version}" >= "4.2.0" -BuildRequires: flex bison -%endif - -BuildRequires: texinfo >= 4.2 -BuildRequires: rtems-4.8-sh-rtems4.8-binutils - -Requires: rtems-4.8-gcc-common -Requires: rtems-4.8-sh-rtems4.8-binutils -Requires: rtems-4.8-sh-rtems4.8-newlib = %{newlib_version}-%{release} - - -%if "%{gcc_version}" >= "3.4" -%define gcclib %{_libdir}/gcc -%define gccexec %{_libexecdir}/gcc -%else -%define gcclib %{_libdir}/gcc-lib -%define gccexec %{_libdir}/gcc-lib -%endif - -%if "%{gcc_version}" == "3.4.6" -Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-3.4.6/gcc-core-%{gcc_pkgvers}.tar.bz2 -%endif -%if "%{gcc_version}" == "4.0.3" -Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-4.0.3-rtems-20060822.diff -%endif -%if "%{gcc_version}" == "4.1.1" -Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-4.1.1-rtems4.8-20070201.diff -%endif -%if "%{gcc_version}" == "4.1.2" -Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-4.1.2-rtems4.8-20070613.diff -%endif -%if "%{gcc_version}" == "4.2.0" -Source0: ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-%{gcc_pkgvers}-rtems4.8-20070613.diff -%endif -%if "%{gcc_version}" == "4.2.1" -Source0: ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-4.2.1-rtems4.8-20070804.diff -%endif -%{?_without_sources:NoSource: 0} - -Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2 -%{?_without_sources:NoSource: 1} - -Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz -%if "%{newlib_version}" == "1.15.0" -Patch50: newlib-1.15.0-rtems4.8-20070804.diff -%endif -%{?_without_sources:NoSource: 50} - -%description -Cross gcc for sh-rtems4.8. - -%prep -%setup -c -T -n %{name}-%{version} - -%setup -q -T -D -n %{name}-%{version} -a0 -%{?PATCH0:%patch0 -p0} - -%setup -q -T -D -n %{name}-%{version} -a1 -%{?PATCH1:%patch1 -p0} - - - - - -%setup -q -T -D -n %{name}-%{version} -a50 -cd newlib-%{newlib_version} -%{?PATCH50:%patch50 -p1} -cd .. - # Copy the C library into gcc's source tree - ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers} - -%if "%{gcc_version}" < "4.1.0" - sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \ - gcc-%{gcc_pkgvers}/gcc/version.c > gcc-%{gcc_pkgvers}/gcc/version.c~ -%else - sed -e 's/^#define VERSUFFIX.*$/#define VERSUFFIX \" (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%{release})\"/' \ - gcc-%{gcc_pkgvers}/gcc/version.c > gcc-%{gcc_pkgvers}/gcc/version.c~ -%endif - mv gcc-%{gcc_pkgvers}/gcc/version.c~ gcc-%{gcc_pkgvers}/gcc/version.c - - - # Fix timestamps - cd gcc-%{gcc_pkgvers} - contrib/gcc_update --touch - cd .. -%build - mkdir -p build - - cd build - - languages="c" - languages="$languages,c++" - export PATH="%{_bindir}:${PATH}" - - CC="%{__cc} ${RPM_OPT_FLAGS}" \ - ../gcc-%{gcc_pkgvers}/configure \ - --prefix=%{_prefix} \ - --bindir=%{_bindir} \ - --exec_prefix=%{_exec_prefix} \ - --includedir=%{_includedir} \ - --libdir=%{_libdir} \ - --libexecdir=%{_libexecdir} \ - --mandir=%{_mandir} \ - --infodir=%{_infodir} \ - --datadir=%{_datadir} \ - --build=%_build --host=%_host \ - --target=sh-rtems4.8 \ - --disable-libstdcxx-pch \ - --with-gnu-as --with-gnu-ld --verbose \ - --with-newlib \ - --with-system-zlib \ - --disable-nls --without-included-gettext \ - --disable-win32-registry \ - --enable-version-specific-runtime-libs \ - --enable-threads \ - --enable-languages="$languages" $optargs - -%if "%_host" != "%_build" - # Bug in gcc-3.2.1: - # Somehow, gcc doesn't get syslimits.h right for Cdn-Xs - mkdir -p gcc/include - cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h -%endif - - make all - make info - cd .. - -%install - export PATH="%{_bindir}:${PATH}" - rm -rf $RPM_BUILD_ROOT - - cd build - - make DESTDIR=$RPM_BUILD_ROOT install - cd .. - - cd build/sh-rtems4.8/newlib - make DESTDIR=$RPM_BUILD_ROOT install-info - cd ../../.. - -%if "%{gcc_version}" <= "4.1.2" -# Misplaced header file - if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then - mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \ - $RPM_BUILD_ROOT%{gcclib}/sh-rtems4.8/%{gcc_version}/include/ - fi -%endif - - # host library - rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a - - # We use the version from binutils - rm -f $RPM_BUILD_ROOT%{_bindir}/sh-rtems4.8-c++filt%{_exeext} - - - # We don't ship info/dir - rm -f $RPM_BUILD_ROOT%{_infodir}/dir - touch $RPM_BUILD_ROOT%{_infodir}/dir - - -%if "%{gcc_version}" >= "3.4" - # Bug in gcc-3.4.0pre - rm -f $RPM_BUILD_ROOT%{_bindir}/sh-rtems4.8-sh-rtems4.8-gcjh%{_exeext} -%endif - -%if "%{gcc_version}" >= "3.3" - # Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs - # the fixinclude-install-tools - rm -rf ${RPM_BUILD_ROOT}%{gcclib}/sh-rtems4.8/%{gcc_version}/install-tools - rm -rf ${RPM_BUILD_ROOT}%{gccexec}/sh-rtems4.8/%{gcc_version}/install-tools -%endif - - # Collect multilib subdirectories - f=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'` - - echo "%defattr(-,root,root,-)" > build/files.newlib - TGTDIR="%{_exec_prefix}/sh-rtems4.8/lib" - for i in $f; do - case $i in - \.) echo "%dir ${TGTDIR}" >> build/files.newlib - ;; - *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib - ;; - esac - done - - rm -f dirs ; - echo "%defattr(-,root,root,-)" >> dirs - echo "%dir %{_prefix}" >> dirs - echo "%dir %{_libdir}" >> dirs -%if "%{gcc_version}" >= "3.4" - echo "%dir %{_libexecdir}" >> dirs -%endif - echo "%dir %{gcclib}" >> dirs - echo "%dir %{gcclib}/sh-rtems4.8" >> dirs - - TGTDIR="%{gcclib}/sh-rtems4.8/%{gcc_version}" - for i in $f; do - case $i in - \.) echo "%dir ${TGTDIR}" >> dirs - ;; - *) echo "%dir ${TGTDIR}/$i" >> dirs - ;; - esac - done - - # Collect files to go into different packages - cp dirs build/files.gcc - cp dirs build/files.g77 - cp dirs build/files.gfortran - cp dirs build/files.objc - cp dirs build/files.gcj - cp dirs build/files.g++ - - TGTDIR="%{gcclib}/sh-rtems4.8/%{gcc_version}" - f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`; - for i in $f; do - case $i in - *lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs - *f771) ;; - *f951) ;; - *cc1) ;; - *cc1obj) ;; - *cc1plus) ;; # ignore: explicitly put into rpm elsewhere - *collect2) ;; - *libobjc*) echo "$i" >> build/files.objc ;; - *include/objc*) ;; - *include/g++*);; - *include/c++*);; - *adainclude*);; - *adalib*);; - *gnat1);; - *jc1) ;; - *jvgenmain) ;; - */libgfortran*.*) echo "$i" >> build/files.gfortran ;; - */libstdc++.*) echo "$i" >> build/files.g++ ;; - */libsupc++.*) echo "$i" >> build/files.g++ ;; - *) echo "$i" >> build/files.gcc ;; - esac - done - - TGTDIR="%{_exec_prefix}/sh-rtems4.8/lib" - f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`; - for i in $f; do - case $i in - *lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs - *libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed -# all other files belong to newlib - *) echo "$i" >> build/files.newlib ;; - esac - done -# Extract %%__os_install_post into os_install_post~ -cat << \EOF > os_install_post~ -%__os_install_post -EOF - -# Generate customized brp-*scripts -cat os_install_post~ | while read a x y; do -case $a in -# Prevent brp-strip* from trying to handle foreign binaries -*/brp-strip*) - b=$(basename $a) - sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b - chmod a+x $b - ;; -# Fix up brp-compress to handle %%_prefix != /usr -*/brp-compress*) - b=$(basename $a) - sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b - chmod a+x $b - ;; -esac -done - -sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \ - -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \ -< os_install_post~ > os_install_post -%define __os_install_post . ./os_install_post - - -cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides -#!/bin/sh -grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/sh-rtems4.8/(lib|include|sys-root)' \ - | grep -v '^${RPM_BUILD_ROOT}%{gcclib}/sh-rtems4.8/' | %__find_provides -EOF -chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides -%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides - -cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires -#!/bin/sh -grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/sh-rtems4.8/(lib|include|sys-root)' \ - | grep -v '^${RPM_BUILD_ROOT}%{gcclib}/sh-rtems4.8/' | %__find_requires -EOF -chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires -%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires - -%clean - rm -rf $RPM_BUILD_ROOT - -# ============================================================== -# rtems-4.8-sh-rtems4.8-gcc -# ============================================================== -# %package -n rtems-4.8-sh-rtems4.8-gcc -# Summary: GNU cc compiler for sh-rtems4.8 -# Group: Development/Tools -# Version: %{gcc_rpmvers} -# Requires: rtems-4.8-sh-rtems4.8-binutils -# Requires: rtems-4.8-sh-rtems4.8-newlib = %{newlib_version}-%{release} -# License: GPL - -# %if %build_infos -# Requires: rtems-4.8-gcc-common -# %endif - -%description -n rtems-4.8-sh-rtems4.8-gcc -GNU cc compiler for sh-rtems4.8. - -%files -n rtems-4.8-sh-rtems4.8-gcc -f build/files.gcc -%defattr(-,root,root) -%dir %{_mandir} -%dir %{_mandir}/man1 -%{_mandir}/man1/sh-rtems4.8-gcc.1* -%if "%{gcc_version}" >= "3.4" -%{_mandir}/man1/sh-rtems4.8-cpp.1* -%{_mandir}/man1/sh-rtems4.8-gcov.1* -%endif - -%dir %{_bindir} -%{_bindir}/sh-rtems4.8-cpp%{_exeext} -%{_bindir}/sh-rtems4.8-gcc%{_exeext} -%if "%{gcc_version}" >= "3.3" -%{_bindir}/sh-rtems4.8-gcc-%{gcc_version}%{_exeext} -%endif -%{_bindir}/sh-rtems4.8-gcov%{_exeext} -%{_bindir}/sh-rtems4.8-gccbug - -%dir %{gcclib}/sh-rtems4.8/%{gcc_version}/include -%if "%{gcc_version}" > "4.0.3" -%if "sh-rtems4.8" != "bfin-rtems4.8" -%dir %{gcclib}/sh-rtems4.8/%{gcc_version}/include/ssp -%endif -%endif - -%dir %{gccexec} -%dir %{gccexec}/sh-rtems4.8 -%dir %{gccexec}/sh-rtems4.8/%{gcc_version} -%{gccexec}/sh-rtems4.8/%{gcc_version}/cc1%{_exeext} -%{gccexec}/sh-rtems4.8/%{gcc_version}/collect2%{_exeext} - -# ============================================================== -# rtems-4.8-gcc-common -# ============================================================== -%package -n rtems-4.8-gcc-common -Summary: Base package for rtems gcc and newlib C Library -Group: Development/Tools -Version: %{gcc_rpmvers} -License: GPL - -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info - -%description -n rtems-4.8-gcc-common - -GCC files that are shared by all targets. - -%files -n rtems-4.8-gcc-common -%defattr(-,root,root) -%dir %{_infodir} -%ghost %{_infodir}/dir -%{_infodir}/cpp.info* -%{_infodir}/cppinternals.info* -%{_infodir}/gcc.info* -%{_infodir}/gccint.info* -%if "%{gcc_version}" >= "3.4" -%{_infodir}/gccinstall.info* -%endif - -%dir %{_mandir} -%if "%{gcc_version}" < "3.4" -%dir %{_mandir}/man1 -%{_mandir}/man1/cpp.1* -%{_mandir}/man1/gcov.1* -%endif -%dir %{_mandir}/man7 -%{_mandir}/man7/fsf-funding.7* -%{_mandir}/man7/gfdl.7* -%{_mandir}/man7/gpl.7* - -%post -n rtems-4.8-gcc-common - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || : - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || : - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || : - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || : -%if "%{gcc_version}" >= "3.4" - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || : -%endif - -%preun -n rtems-4.8-gcc-common -if [ $1 -eq 0 ]; then - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || : - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || : - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || : - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || : -%if "%{gcc_version}" >= "3.4" - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || : -%endif -fi - -# ============================================================== -# rtems-4.8-sh-rtems4.8-gcc-c++ -# ============================================================== -%package -n rtems-4.8-sh-rtems4.8-gcc-c++ -Summary: GCC c++ compiler for sh-rtems4.8 -Group: Development/Tools -Version: %{gcc_rpmvers} -License: GPL - -Provides: rtems-4.8-sh-rtems4.8-c++ = %{gcc_rpmvers}-%{release} -Obsoletes: rtems-4.8-sh-rtems4.8-c++ < %{gcc_rpmvers}-%{release} - -Requires: rtems-4.8-gcc-common -Requires: rtems-4.8-sh-rtems4.8-gcc = %{gcc_rpmvers}-%{release} - -%description -n rtems-4.8-sh-rtems4.8-gcc-c++ -GCC c++ compiler for sh-rtems4.8. - -%files -n rtems-4.8-sh-rtems4.8-gcc-c++ -f build/files.g++ -%defattr(-,root,root) -%{_mandir}/man1/sh-rtems4.8-g++.1* - -%{_bindir}/sh-rtems4.8-c++%{_exeext} -%{_bindir}/sh-rtems4.8-g++%{_exeext} - -%dir %{gccexec} -%dir %{gccexec}/sh-rtems4.8 -%dir %{gccexec}/sh-rtems4.8/%{gcc_version} -%{gccexec}/sh-rtems4.8/%{gcc_version}/cc1plus%{_exeext} - -%dir %{gcclib}/sh-rtems4.8/%{gcc_version}/include -%if "%{gcc_version}" >= "3.2" -%{gcclib}/sh-rtems4.8/%{gcc_version}/include/c++ -%else -%{gcclib}/sh-rtems4.8/%{gcc_version}/include/g++ -%endif - - - -# ============================================================== -# rtems-4.8-sh-rtems4.8-newlib -# ============================================================== -%package -n rtems-4.8-sh-rtems4.8-newlib -Summary: C Library (newlib) for sh-rtems4.8 -Group: Development/Tools -License: Distributable -Version: %{newlib_version} - -Provides: rtems-4.8-sh-rtems4.8-libc = %{newlib_version}-%{release} -Obsoletes: rtems-4.8-sh-rtems4.8-libc < %{newlib_version}-%{release} - -Requires: rtems-4.8-newlib-common - -%description -n rtems-4.8-sh-rtems4.8-newlib -Newlib C Library for sh-rtems4.8. - -%files -n rtems-4.8-sh-rtems4.8-newlib -f build/files.newlib -%defattr(-,root,root) -%dir %{_prefix} -%dir %{_exec_prefix}/sh-rtems4.8 -%{_exec_prefix}/sh-rtems4.8/include - -# ============================================================== -# rtems-4.8-newlib-common -# ============================================================== -%package -n rtems-4.8-newlib-common -Summary: Base package for RTEMS newlib C Library -Group: Development/Tools -Version: %{newlib_version} -License: Distributable - -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info - -%description -n rtems-4.8-newlib-common -newlib files that are shared by all targets. - -%files -n rtems-4.8-newlib-common -%defattr(-,root,root) -%dir %{_infodir} -%ghost %{_infodir}/dir -%{_infodir}/libc.info* -%{_infodir}/libm.info* - -%post -n rtems-4.8-newlib-common - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || : - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || : - -%preun -n rtems-4.8-newlib-common -if [ $1 -eq 0 ]; then - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || : - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || : -fi - diff --git a/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gdb.spec b/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gdb.spec deleted file mode 100644 index 1d15e71157..0000000000 --- a/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gdb.spec +++ /dev/null @@ -1,226 +0,0 @@ -# -# Please send bugfixes or comments to -# http://www.rtems.org/bugzilla -# - -%define _prefix /opt/rtems-4.8 -%define _infodir %{_prefix}/info -%define _mandir %{_prefix}/man - -%ifos cygwin cygwin32 mingw mingw32 -%define _exeext .exe -%else -%define _exeext %{nil} -%endif - -%define gdb_version 6.6 -%define gdb_rpmvers %{expand:%(echo 6.6 | tr - _)} - -Name: rtems-4.8-sh-rtems4.8-gdb -Summary: Gdb for target sh-rtems4.8 -Group: Development/Tools -Version: %{gdb_rpmvers} -Release: 9%{?dist} -License: GPL/LGPL -URL: http://sources.redhat.com/gdb -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -%if "%{gdb_version}" >= "6.6" -%if "%{?suse}" -BuildRequires: expat -%else -BuildRequires: expat-devel -%endif -%endif -# Required for building the infos -BuildRequires: /sbin/install-info -BuildRequires: texinfo >= 4.2 -%if "sh-rtems4.8" == "sparc-rtems4.8" -BuildRequires: libtermcap-devel -%endif -BuildRequires: ncurses-devel - -Requires: rtems-4.8-gdb-common - -Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 -%{?_without_sources:NoSource: 0} -%if "%{gdb_version}" == "6.5" -Patch0: gdb-6.5-rtems-20060713.diff -%endif -%if "%{gdb_version}" == "6.6" -Patch0: gdb-6.6-rtems4.8-20070306.diff -%endif - -%description -GDB for target sh-rtems4.8 -%prep -%setup -q -c -T -n %{name}-%{version} - -%setup -q -D -T -n %{name}-%{version} -a0 -cd gdb-%{gdb_version} -%{?PATCH0:%patch0 -p1} -cd .. - -%build - mkdir -p build - cd build - CFLAGS="$RPM_OPT_FLAGS" \ - ../gdb-%{gdb_version}/configure \ - --build=%_build --host=%_host \ - --target=sh-rtems4.8 \ - --verbose --disable-nls \ - --without-included-gettext \ - --disable-win32-registry \ - --disable-werror \ - --enable-sim \ - --prefix=%{_prefix} --bindir=%{_bindir} \ - --includedir=%{_includedir} --libdir=%{_libdir} \ - --mandir=%{_mandir} --infodir=%{_infodir} - - make all - make info - cd .. - -%install - rm -rf $RPM_BUILD_ROOT - - cd build -%if "%{gdb_version}" >= "6.3" - make DESTDIR=$RPM_BUILD_ROOT install -%else - make prefix=$RPM_BUILD_ROOT%{_prefix} \ - bindir=$RPM_BUILD_ROOT%{_bindir} \ - includedir=$RPM_BUILD_ROOT%{_includedir} \ - libdir=$RPM_BUILD_ROOT%{_libdir} \ - infodir=$RPM_BUILD_ROOT%{_infodir} \ - mandir=$RPM_BUILD_ROOT%{_mandir} \ - install - - make prefix=$RPM_BUILD_ROOT%{_prefix} \ - bindir=$RPM_BUILD_ROOT%{_bindir} \ - includedir=$RPM_BUILD_ROOT%{_includedir} \ - libdir=$RPM_BUILD_ROOT%{_libdir} \ - infodir=$RPM_BUILD_ROOT%{_infodir} \ - mandir=$RPM_BUILD_ROOT%{_mandir} \ - install-info -%endif - - rm -f $RPM_BUILD_ROOT%{_infodir}/dir - touch $RPM_BUILD_ROOT%{_infodir}/dir - -# These come from other packages - rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd* - rm -rf $RPM_BUILD_ROOT%{_infodir}/configure* - rm -rf $RPM_BUILD_ROOT%{_infodir}/standards* - -# We don't ship host files - rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty* - -%if "%{gdb_version}" >= "6.4" -# host library, installed to a bogus directory - rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsh-rtems4.8-sim.a -%endif - - cd .. - -# Extract %%__os_install_post into os_install_post~ -cat << \EOF > os_install_post~ -%__os_install_post -EOF - -# Generate customized brp-*scripts -cat os_install_post~ | while read a x y; do -case $a in -# Prevent brp-strip* from trying to handle foreign binaries -*/brp-strip*) - b=$(basename $a) - sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b - chmod a+x $b - ;; -# Fix up brp-compress to handle %%_prefix != /usr -*/brp-compress*) - b=$(basename $a) - sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b - chmod a+x $b - ;; -esac -done - -sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \ - -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \ -< os_install_post~ > os_install_post -%define __os_install_post . ./os_install_post - -%clean - rm -rf $RPM_BUILD_ROOT - -# ============================================================== -# sh-rtems4.8-gdb -# ============================================================== -# %package -n rtems-4.8-sh-rtems4.8-gdb -# Summary: rtems gdb for sh-rtems4.8 -# Group: Development/Tools -# %if %build_infos -# Requires: rtems-4.8-gdb-common -# %endif - -%description -n rtems-4.8-sh-rtems4.8-gdb - -GNU gdb targetting sh-rtems4.8. - -%files -n rtems-4.8-sh-rtems4.8-gdb -%defattr(-,root,root) -%dir %{_mandir} -%dir %{_mandir}/man1 -%{_mandir}/man1/sh-rtems4.8-*.1* - -%dir %{_bindir} -%{_bindir}/sh-rtems4.8-* - -# ============================================================== -# rtems-4.8-gdb-common -# ============================================================== -%package -n rtems-4.8-gdb-common -Summary: Base package for RTEMS gdbs -Group: Development/Tools -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info - -%description -n rtems-4.8-gdb-common - -GDB files shared by all targets. - -%post -n rtems-4.8-gdb-common - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || : -%if "%{gdb_version}" < "6.3" - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/mmalloc.info.gz || : -%endif - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || : - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || : - /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || : - -%preun -n rtems-4.8-gdb-common -if [ $1 -eq 0 ]; then - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || : -%if "%{gdb_version}" < "6.3" - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/mmalloc.info.gz || : -%endif - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || : - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || : - /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || : -fi - -%files -n rtems-4.8-gdb-common -%defattr(-,root,root) -%dir %{_infodir} -%ghost %{_infodir}/dir -%{_infodir}/gdb.info* - -# FIXME: When had mmalloc.info been removed? -%if "%{gdb_version}" < "6.3" -%{_infodir}/mmalloc.info* -%endif -%{_infodir}/gdbint.info* -%{_infodir}/stabs.info* -%{_infodir}/annotate.info* - |