forked from Imagelibrary/rtems
Remove (Abandon).
This commit is contained in:
@@ -1,25 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
TARGET = tic4x-rtems4.9
|
|
||||||
|
|
||||||
include $(top_srcdir)/mkspec.am
|
|
||||||
|
|
||||||
BINUTILS_VERS = 2.18
|
|
||||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
|
||||||
BINUTILS_RPMREL = 4%{?dist}
|
|
||||||
include ../binutils.am
|
|
||||||
BINUTILS_OPTS +=
|
|
||||||
|
|
||||||
GCC_VERS = 3.4.6
|
|
||||||
GCC_PKGVERS = $(GCC_VERS)
|
|
||||||
GCC_RPMREL = 8%{?dist}
|
|
||||||
NEWLIB_VERS = 1.16.0
|
|
||||||
include ../gcc.am
|
|
||||||
GCC_OPTS +=
|
|
||||||
|
|
||||||
### rtems doesn't build for the tic4x
|
|
||||||
## CPUKIT_VERS = 4.7.99.1
|
|
||||||
## CPUKIT_PKGVERS = $(CPUKIT_VERS)-20070510
|
|
||||||
## CPUKIT_RPMREL = 0
|
|
||||||
## include ../cpukit.am
|
|
||||||
## CPUKIT_OPTS +=
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/rtems-%{cpukit_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
@@ -1,42 +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
|
|
||||||
Patch0: gcc-core-3.4.6-rtems4.9-20071111.diff
|
|
||||||
%endif
|
|
||||||
%if "%{gcc_version}" == "4.2.3"
|
|
||||||
Source0: ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
Patch0: gcc-core-4.2.3-rtems4.9-20080205.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.16.0"
|
|
||||||
Patch50: newlib-1.16.0-rtems4.9-20080430.diff
|
|
||||||
%endif
|
|
||||||
%{?_without_sources:NoSource: 50}
|
|
||||||
%endif
|
|
||||||
@@ -1,234 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
%define _prefix /opt/rtems-4.9
|
|
||||||
%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.9-tic4x-rtems4.9-binutils
|
|
||||||
Summary: Binutils for target tic4x-rtems4.9
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{binutils_rpmvers}
|
|
||||||
Release: 4%{?dist}
|
|
||||||
License: GPL/LGPL
|
|
||||||
URL: http://sources.redhat.com/binutils
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
%if "%{binutils_version}" >= "2.18"
|
|
||||||
# Bug in bfd: Doesn't build without texinfo installed
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%else
|
|
||||||
# Required for building the infos
|
|
||||||
BuildRequires: /sbin/install-info
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%endif
|
|
||||||
BuildRequires: flex
|
|
||||||
BuildRequires: bison
|
|
||||||
|
|
||||||
Requires: rtems-4.9-binutils-common
|
|
||||||
|
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
%if "%{binutils_version}" == "2.18"
|
|
||||||
Patch0: binutils-2.18-rtems4.9-20080211.diff
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross binutils for target tic4x-rtems4.9
|
|
||||||
%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 "tic4x-rtems4.9" == "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=tic4x-rtems4.9 \
|
|
||||||
--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 %{?_smp_mflags} all
|
|
||||||
make info
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT 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}/tic4x-rtems4.9-dlltool%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/tic4x-rtems4.9-dlltool*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/tic4x-rtems4.9-nlmconv%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/tic4x-rtems4.9-nlmconv*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/tic4x-rtems4.9-windres%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/tic4x-rtems4.9-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
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# tic4x-rtems4.9-binutils
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n rtems-4.9-tic4x-rtems4.9-binutils
|
|
||||||
# Summary: rtems binutils for tic4x-rtems4.9
|
|
||||||
# Group: Development/Tools
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: rtems-4.9-binutils-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n rtems-4.9-tic4x-rtems4.9-binutils
|
|
||||||
|
|
||||||
GNU binutils targetting tic4x-rtems4.9.
|
|
||||||
|
|
||||||
%files -n rtems-4.9-tic4x-rtems4.9-binutils
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_mandir}
|
|
||||||
%dir %{_mandir}/man1
|
|
||||||
%{_mandir}/man1/tic4x-rtems4.9-*.1*
|
|
||||||
|
|
||||||
%dir %{_bindir}
|
|
||||||
%{_bindir}/tic4x-rtems4.9-*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/tic4x-rtems4.9
|
|
||||||
%dir %{_exec_prefix}/tic4x-rtems4.9/bin
|
|
||||||
%{_exec_prefix}/tic4x-rtems4.9/bin/*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/tic4x-rtems4.9/lib
|
|
||||||
%{_exec_prefix}/tic4x-rtems4.9/lib/ldscripts
|
|
||||||
# ==============================================================
|
|
||||||
# rtems-4.9-binutils-common
|
|
||||||
# ==============================================================
|
|
||||||
%package -n rtems-4.9-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.9-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.9-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.9-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.9-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
|
|
||||||
|
|
||||||
@@ -1,542 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
%define _prefix /opt/rtems-4.9
|
|
||||||
%define _infodir %{_prefix}/info
|
|
||||||
%define _mandir %{_prefix}/man
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix rtems-4.9-%{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%define gcc_pkgvers 3.4.6
|
|
||||||
%define gcc_version 3.4.6
|
|
||||||
%define gcc_rpmvers %{expand:%(echo "3.4.6" | tr - _ )}
|
|
||||||
|
|
||||||
%define newlib_version 1.16.0
|
|
||||||
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
|
|
||||||
|
|
||||||
%define mpfr_version 2.3.1
|
|
||||||
|
|
||||||
Name: rtems-4.9-tic4x-rtems4.9-gcc
|
|
||||||
Summary: tic4x-rtems4.9 gcc
|
|
||||||
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
Release: 8%{?dist}
|
|
||||||
License: GPL
|
|
||||||
URL: http://gcc.gnu.org
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
BuildRequires: gmp-devel >= 4.1
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}gmp-devel
|
|
||||||
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
|
||||||
%endif
|
|
||||||
%if "%{?fedora}" >= "8"
|
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
|
||||||
%endif
|
|
||||||
%if "%{?suse}" > "10.3"
|
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
|
||||||
%endif
|
|
||||||
# These distros ship an insufficient mpfr
|
|
||||||
%{?el4:%define _build_mpfr 1}
|
|
||||||
%{?suse10_2:%define _build_mpfr 1}
|
|
||||||
%{?suse10_3:%define _build_mpfr 1}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: rtems-4.9-tic4x-rtems4.9-gcc
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
BuildRequires: flex bison
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
BuildRequires: rtems-4.9-tic4x-rtems4.9-binutils
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gcc-common
|
|
||||||
Requires: rtems-4.9-tic4x-rtems4.9-binutils
|
|
||||||
Requires: rtems-4.9-tic4x-rtems4.9-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
|
|
||||||
Patch0: gcc-core-3.4.6-rtems4.9-20071111.diff
|
|
||||||
%endif
|
|
||||||
%if "%{gcc_version}" == "4.2.3"
|
|
||||||
Source0: ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
|
|
||||||
%endif
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
|
||||||
Patch50: newlib-1.16.0-rtems4.9-20080430.diff
|
|
||||||
%endif
|
|
||||||
%{?_without_sources:NoSource: 50}
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
Source60: http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross gcc for tic4x-rtems4.9.
|
|
||||||
|
|
||||||
%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} -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 0%{?_build_mpfr}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a60
|
|
||||||
%{?PATCH60:%patch60 -p1}
|
|
||||||
# Build mpfr one-tree style
|
|
||||||
ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%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"
|
|
||||||
export PATH="%{_bindir}:${PATH}"
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
|
||||||
%else
|
|
||||||
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
|
||||||
%endif
|
|
||||||
../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=tic4x-rtems4.9 \
|
|
||||||
--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 %{?_smp_mflags} 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/tic4x-rtems4.9/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}/tic4x-rtems4.9/%{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}/tic4x-rtems4.9-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}/tic4x-rtems4.9-tic4x-rtems4.9-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}/tic4x-rtems4.9/%{gcc_version}/install-tools
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{gccexec}/tic4x-rtems4.9/%{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}/tic4x-rtems4.9/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}/tic4x-rtems4.9" >> dirs
|
|
||||||
|
|
||||||
TGTDIR="%{gcclib}/tic4x-rtems4.9/%{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}/tic4x-rtems4.9/%{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}/tic4x-rtems4.9/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}/tic4x-rtems4.9/(lib|include|sys-root)' \
|
|
||||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/tic4x-rtems4.9/' | %__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}/tic4x-rtems4.9/(lib|include|sys-root)' \
|
|
||||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/tic4x-rtems4.9/' | %__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.9-tic4x-rtems4.9-gcc
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n rtems-4.9-tic4x-rtems4.9-gcc
|
|
||||||
# Summary: GNU cc compiler for tic4x-rtems4.9
|
|
||||||
# Group: Development/Tools
|
|
||||||
# Version: %{gcc_rpmvers}
|
|
||||||
# Requires: rtems-4.9-tic4x-rtems4.9-binutils
|
|
||||||
# Requires: rtems-4.9-tic4x-rtems4.9-newlib = %{newlib_version}-%{release}
|
|
||||||
# License: GPL
|
|
||||||
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: rtems-4.9-gcc-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n rtems-4.9-tic4x-rtems4.9-gcc
|
|
||||||
GNU cc compiler for tic4x-rtems4.9.
|
|
||||||
|
|
||||||
%files -n rtems-4.9-tic4x-rtems4.9-gcc -f build/files.gcc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_mandir}
|
|
||||||
%dir %{_mandir}/man1
|
|
||||||
%{_mandir}/man1/tic4x-rtems4.9-gcc.1*
|
|
||||||
%if "%{gcc_version}" >= "3.4"
|
|
||||||
%{_mandir}/man1/tic4x-rtems4.9-cpp.1*
|
|
||||||
%{_mandir}/man1/tic4x-rtems4.9-gcov.1*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%dir %{_bindir}
|
|
||||||
%{_bindir}/tic4x-rtems4.9-cpp%{_exeext}
|
|
||||||
%{_bindir}/tic4x-rtems4.9-gcc%{_exeext}
|
|
||||||
%if "%{gcc_version}" >= "3.3"
|
|
||||||
%{_bindir}/tic4x-rtems4.9-gcc-%{gcc_version}%{_exeext}
|
|
||||||
%endif
|
|
||||||
%{_bindir}/tic4x-rtems4.9-gcov%{_exeext}
|
|
||||||
%{_bindir}/tic4x-rtems4.9-gccbug
|
|
||||||
|
|
||||||
%dir %{gcclib}/tic4x-rtems4.9/%{gcc_version}/include
|
|
||||||
%if "%{gcc_version}" > "4.0.3"
|
|
||||||
%if "tic4x-rtems4.9" != "bfin-rtems4.9"
|
|
||||||
%if "tic4x-rtems4.9" != "avr-rtems4.9"
|
|
||||||
%dir %{gcclib}/tic4x-rtems4.9/%{gcc_version}/include/ssp
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%dir %{gccexec}
|
|
||||||
%dir %{gccexec}/tic4x-rtems4.9
|
|
||||||
%dir %{gccexec}/tic4x-rtems4.9/%{gcc_version}
|
|
||||||
%{gccexec}/tic4x-rtems4.9/%{gcc_version}/cc1%{_exeext}
|
|
||||||
%{gccexec}/tic4x-rtems4.9/%{gcc_version}/collect2%{_exeext}
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# rtems-4.9-gcc-common
|
|
||||||
# ==============================================================
|
|
||||||
%package -n rtems-4.9-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.9-gcc-common
|
|
||||||
GCC files that are shared by all targets.
|
|
||||||
|
|
||||||
%files -n rtems-4.9-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.9-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.9-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.9-tic4x-rtems4.9-newlib
|
|
||||||
# ==============================================================
|
|
||||||
%package -n rtems-4.9-tic4x-rtems4.9-newlib
|
|
||||||
Summary: C Library (newlib) for tic4x-rtems4.9
|
|
||||||
Group: Development/Tools
|
|
||||||
License: Distributable
|
|
||||||
Version: %{newlib_version}
|
|
||||||
|
|
||||||
Provides: rtems-4.9-tic4x-rtems4.9-libc = %{newlib_version}-%{release}
|
|
||||||
Obsoletes: rtems-4.9-tic4x-rtems4.9-libc < %{newlib_version}-%{release}
|
|
||||||
|
|
||||||
Requires: rtems-4.9-newlib-common
|
|
||||||
|
|
||||||
%description -n rtems-4.9-tic4x-rtems4.9-newlib
|
|
||||||
Newlib C Library for tic4x-rtems4.9.
|
|
||||||
|
|
||||||
%files -n rtems-4.9-tic4x-rtems4.9-newlib -f build/files.newlib
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_prefix}
|
|
||||||
%dir %{_exec_prefix}/tic4x-rtems4.9
|
|
||||||
%{_exec_prefix}/tic4x-rtems4.9/include
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# rtems-4.9-newlib-common
|
|
||||||
# ==============================================================
|
|
||||||
%package -n rtems-4.9-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.9-newlib-common
|
|
||||||
newlib files that are shared by all targets.
|
|
||||||
|
|
||||||
%files -n rtems-4.9-newlib-common
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_infodir}
|
|
||||||
%ghost %{_infodir}/dir
|
|
||||||
%{_infodir}/libc.info*
|
|
||||||
%{_infodir}/libm.info*
|
|
||||||
|
|
||||||
%post -n rtems-4.9-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.9-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
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user