forked from Imagelibrary/rtems
Regenerate.
This commit is contained in:
@@ -33,7 +33,7 @@ Name: rtems-4.10-arm-rtems4.10-binutils
|
|||||||
Summary: Binutils for target arm-rtems4.10
|
Summary: Binutils for target arm-rtems4.10
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{binutils_rpmvers}
|
Version: %{binutils_rpmvers}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,8 @@ BuildRequires: bison
|
|||||||
|
|
||||||
Requires: rtems-4.10-binutils-common
|
Requires: rtems-4.10-binutils-common
|
||||||
|
|
||||||
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cross binutils for target arm-rtems4.10
|
Cross binutils for target arm-rtems4.10
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Name: rtems-4.10-avr-rtems4.10-binutils
|
|||||||
Summary: Binutils for target avr-rtems4.10
|
Summary: Binutils for target avr-rtems4.10
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{binutils_rpmvers}
|
Version: %{binutils_rpmvers}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,8 @@ BuildRequires: bison
|
|||||||
|
|
||||||
Requires: rtems-4.10-binutils-common
|
Requires: rtems-4.10-binutils-common
|
||||||
|
|
||||||
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cross binutils for target avr-rtems4.10
|
Cross binutils for target avr-rtems4.10
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Name: rtems-4.10-bfin-rtems4.10-binutils
|
|||||||
Summary: Binutils for target bfin-rtems4.10
|
Summary: Binutils for target bfin-rtems4.10
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{binutils_rpmvers}
|
Version: %{binutils_rpmvers}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,8 @@ BuildRequires: bison
|
|||||||
|
|
||||||
Requires: rtems-4.10-binutils-common
|
Requires: rtems-4.10-binutils-common
|
||||||
|
|
||||||
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cross binutils for target bfin-rtems4.10
|
Cross binutils for target bfin-rtems4.10
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Name: rtems-4.10-h8300-rtems4.10-binutils
|
|||||||
Summary: Binutils for target h8300-rtems4.10
|
Summary: Binutils for target h8300-rtems4.10
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{binutils_rpmvers}
|
Version: %{binutils_rpmvers}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,8 @@ BuildRequires: bison
|
|||||||
|
|
||||||
Requires: rtems-4.10-binutils-common
|
Requires: rtems-4.10-binutils-common
|
||||||
|
|
||||||
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cross binutils for target h8300-rtems4.10
|
Cross binutils for target h8300-rtems4.10
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Name: rtems-4.10-i386-rtems4.10-binutils
|
|||||||
Summary: Binutils for target i386-rtems4.10
|
Summary: Binutils for target i386-rtems4.10
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{binutils_rpmvers}
|
Version: %{binutils_rpmvers}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,8 @@ BuildRequires: bison
|
|||||||
|
|
||||||
Requires: rtems-4.10-binutils-common
|
Requires: rtems-4.10-binutils-common
|
||||||
|
|
||||||
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cross binutils for target i386-rtems4.10
|
Cross binutils for target i386-rtems4.10
|
||||||
|
|||||||
@@ -0,0 +1,252 @@
|
|||||||
|
#
|
||||||
|
# Please send bugfixes or comments to
|
||||||
|
# http://www.rtems.org/bugzilla
|
||||||
|
#
|
||||||
|
|
||||||
|
%define _prefix /opt/rtems-4.10
|
||||||
|
%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.10-%{_host}-
|
||||||
|
%else
|
||||||
|
%define _host_rpmprefix %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%define binutils_pkgvers 2.18.91
|
||||||
|
%define binutils_version 2.18.91
|
||||||
|
%define binutils_rpmvers %{expand:%(echo "2.18.91" | tr - _ )}
|
||||||
|
|
||||||
|
Name: rtems-4.10-m32c-rtems4.10-binutils
|
||||||
|
Summary: Binutils for target m32c-rtems4.10
|
||||||
|
Group: Development/Tools
|
||||||
|
Version: %{binutils_rpmvers}
|
||||||
|
Release: 2%{?dist}
|
||||||
|
License: GPL/LGPL
|
||||||
|
URL: http://sources.redhat.com/binutils
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
|
%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.10-binutils-common
|
||||||
|
|
||||||
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
|
%description
|
||||||
|
Cross binutils for target m32c-rtems4.10
|
||||||
|
%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
|
||||||
|
export PATH="%{_bindir}:${PATH}"
|
||||||
|
%if "m32c-rtems4.10" == "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
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||||
|
%endif
|
||||||
|
CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
|
../binutils-%{binutils_pkgvers}/configure \
|
||||||
|
--build=%_build --host=%_host \
|
||||||
|
--target=m32c-rtems4.10 \
|
||||||
|
--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
|
||||||
|
export PATH="%{_bindir}:${PATH}"
|
||||||
|
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}/m32c-rtems4.10-dlltool%{_exeext}; then
|
||||||
|
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32c-rtems4.10-dlltool*
|
||||||
|
fi
|
||||||
|
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32c-rtems4.10-nlmconv%{_exeext}; then
|
||||||
|
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32c-rtems4.10-nlmconv*
|
||||||
|
fi
|
||||||
|
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32c-rtems4.10-windres%{_exeext}; then
|
||||||
|
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32c-rtems4.10-windres*
|
||||||
|
fi
|
||||||
|
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32c-rtems4.10-windmc%{_exeext}; then
|
||||||
|
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32c-rtems4.10-windmc*
|
||||||
|
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
|
||||||
|
|
||||||
|
# ==============================================================
|
||||||
|
# m32c-rtems4.10-binutils
|
||||||
|
# ==============================================================
|
||||||
|
# %package -n rtems-4.10-m32c-rtems4.10-binutils
|
||||||
|
# Summary: rtems binutils for m32c-rtems4.10
|
||||||
|
# Group: Development/Tools
|
||||||
|
# %if %build_infos
|
||||||
|
# Requires: rtems-4.10-binutils-common
|
||||||
|
# %endif
|
||||||
|
|
||||||
|
%description -n rtems-4.10-m32c-rtems4.10-binutils
|
||||||
|
GNU binutils targetting m32c-rtems4.10.
|
||||||
|
|
||||||
|
%files -n rtems-4.10-m32c-rtems4.10-binutils
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{_mandir}
|
||||||
|
%dir %{_mandir}/man1
|
||||||
|
%{_mandir}/man1/m32c-rtems4.10-*.1*
|
||||||
|
|
||||||
|
%dir %{_bindir}
|
||||||
|
%{_bindir}/m32c-rtems4.10-*
|
||||||
|
|
||||||
|
%dir %{_exec_prefix}/m32c-rtems4.10
|
||||||
|
%dir %{_exec_prefix}/m32c-rtems4.10/bin
|
||||||
|
%{_exec_prefix}/m32c-rtems4.10/bin/*
|
||||||
|
|
||||||
|
%dir %{_exec_prefix}/m32c-rtems4.10/lib
|
||||||
|
%{_exec_prefix}/m32c-rtems4.10/lib/ldscripts
|
||||||
|
# ==============================================================
|
||||||
|
# rtems-4.10-binutils-common
|
||||||
|
# ==============================================================
|
||||||
|
%package -n rtems-4.10-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.10-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.10-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.10-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.10-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
|
||||||
|
|
||||||
@@ -0,0 +1,252 @@
|
|||||||
|
#
|
||||||
|
# Please send bugfixes or comments to
|
||||||
|
# http://www.rtems.org/bugzilla
|
||||||
|
#
|
||||||
|
|
||||||
|
%define _prefix /opt/rtems-4.10
|
||||||
|
%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.10-%{_host}-
|
||||||
|
%else
|
||||||
|
%define _host_rpmprefix %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%define binutils_pkgvers 2.18.91
|
||||||
|
%define binutils_version 2.18.91
|
||||||
|
%define binutils_rpmvers %{expand:%(echo "2.18.91" | tr - _ )}
|
||||||
|
|
||||||
|
Name: rtems-4.10-m32r-rtems4.10-binutils
|
||||||
|
Summary: Binutils for target m32r-rtems4.10
|
||||||
|
Group: Development/Tools
|
||||||
|
Version: %{binutils_rpmvers}
|
||||||
|
Release: 2%{?dist}
|
||||||
|
License: GPL/LGPL
|
||||||
|
URL: http://sources.redhat.com/binutils
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
|
%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.10-binutils-common
|
||||||
|
|
||||||
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
|
%description
|
||||||
|
Cross binutils for target m32r-rtems4.10
|
||||||
|
%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
|
||||||
|
export PATH="%{_bindir}:${PATH}"
|
||||||
|
%if "m32r-rtems4.10" == "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
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||||
|
%endif
|
||||||
|
CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
|
../binutils-%{binutils_pkgvers}/configure \
|
||||||
|
--build=%_build --host=%_host \
|
||||||
|
--target=m32r-rtems4.10 \
|
||||||
|
--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
|
||||||
|
export PATH="%{_bindir}:${PATH}"
|
||||||
|
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}/m32r-rtems4.10-dlltool%{_exeext}; then
|
||||||
|
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32r-rtems4.10-dlltool*
|
||||||
|
fi
|
||||||
|
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32r-rtems4.10-nlmconv%{_exeext}; then
|
||||||
|
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32r-rtems4.10-nlmconv*
|
||||||
|
fi
|
||||||
|
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32r-rtems4.10-windres%{_exeext}; then
|
||||||
|
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32r-rtems4.10-windres*
|
||||||
|
fi
|
||||||
|
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32r-rtems4.10-windmc%{_exeext}; then
|
||||||
|
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32r-rtems4.10-windmc*
|
||||||
|
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
|
||||||
|
|
||||||
|
# ==============================================================
|
||||||
|
# m32r-rtems4.10-binutils
|
||||||
|
# ==============================================================
|
||||||
|
# %package -n rtems-4.10-m32r-rtems4.10-binutils
|
||||||
|
# Summary: rtems binutils for m32r-rtems4.10
|
||||||
|
# Group: Development/Tools
|
||||||
|
# %if %build_infos
|
||||||
|
# Requires: rtems-4.10-binutils-common
|
||||||
|
# %endif
|
||||||
|
|
||||||
|
%description -n rtems-4.10-m32r-rtems4.10-binutils
|
||||||
|
GNU binutils targetting m32r-rtems4.10.
|
||||||
|
|
||||||
|
%files -n rtems-4.10-m32r-rtems4.10-binutils
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{_mandir}
|
||||||
|
%dir %{_mandir}/man1
|
||||||
|
%{_mandir}/man1/m32r-rtems4.10-*.1*
|
||||||
|
|
||||||
|
%dir %{_bindir}
|
||||||
|
%{_bindir}/m32r-rtems4.10-*
|
||||||
|
|
||||||
|
%dir %{_exec_prefix}/m32r-rtems4.10
|
||||||
|
%dir %{_exec_prefix}/m32r-rtems4.10/bin
|
||||||
|
%{_exec_prefix}/m32r-rtems4.10/bin/*
|
||||||
|
|
||||||
|
%dir %{_exec_prefix}/m32r-rtems4.10/lib
|
||||||
|
%{_exec_prefix}/m32r-rtems4.10/lib/ldscripts
|
||||||
|
# ==============================================================
|
||||||
|
# rtems-4.10-binutils-common
|
||||||
|
# ==============================================================
|
||||||
|
%package -n rtems-4.10-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.10-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.10-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.10-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.10-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
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ Name: rtems-4.10-m68k-rtems4.10-binutils
|
|||||||
Summary: Binutils for target m68k-rtems4.10
|
Summary: Binutils for target m68k-rtems4.10
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{binutils_rpmvers}
|
Version: %{binutils_rpmvers}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,8 @@ BuildRequires: bison
|
|||||||
|
|
||||||
Requires: rtems-4.10-binutils-common
|
Requires: rtems-4.10-binutils-common
|
||||||
|
|
||||||
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cross binutils for target m68k-rtems4.10
|
Cross binutils for target m68k-rtems4.10
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Name: rtems-4.10-mips-rtems4.10-binutils
|
|||||||
Summary: Binutils for target mips-rtems4.10
|
Summary: Binutils for target mips-rtems4.10
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{binutils_rpmvers}
|
Version: %{binutils_rpmvers}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,8 @@ BuildRequires: bison
|
|||||||
|
|
||||||
Requires: rtems-4.10-binutils-common
|
Requires: rtems-4.10-binutils-common
|
||||||
|
|
||||||
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cross binutils for target mips-rtems4.10
|
Cross binutils for target mips-rtems4.10
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Name: rtems-4.10-powerpc-rtems4.10-binutils
|
|||||||
Summary: Binutils for target powerpc-rtems4.10
|
Summary: Binutils for target powerpc-rtems4.10
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{binutils_rpmvers}
|
Version: %{binutils_rpmvers}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,8 @@ BuildRequires: bison
|
|||||||
|
|
||||||
Requires: rtems-4.10-binutils-common
|
Requires: rtems-4.10-binutils-common
|
||||||
|
|
||||||
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cross binutils for target powerpc-rtems4.10
|
Cross binutils for target powerpc-rtems4.10
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Name: rtems-4.10-sh-rtems4.10-binutils
|
|||||||
Summary: Binutils for target sh-rtems4.10
|
Summary: Binutils for target sh-rtems4.10
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{binutils_rpmvers}
|
Version: %{binutils_rpmvers}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,8 @@ BuildRequires: bison
|
|||||||
|
|
||||||
Requires: rtems-4.10-binutils-common
|
Requires: rtems-4.10-binutils-common
|
||||||
|
|
||||||
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cross binutils for target sh-rtems4.10
|
Cross binutils for target sh-rtems4.10
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Name: rtems-4.10-sparc-rtems4.10-binutils
|
|||||||
Summary: Binutils for target sparc-rtems4.10
|
Summary: Binutils for target sparc-rtems4.10
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{binutils_rpmvers}
|
Version: %{binutils_rpmvers}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,8 @@ BuildRequires: bison
|
|||||||
|
|
||||||
Requires: rtems-4.10-binutils-common
|
Requires: rtems-4.10-binutils-common
|
||||||
|
|
||||||
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2
|
||||||
|
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cross binutils for target sparc-rtems4.10
|
Cross binutils for target sparc-rtems4.10
|
||||||
|
|||||||
@@ -26,9 +26,9 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%define cpukit_pkgvers 4.7.99.1-20070510
|
%define cpukit_pkgvers 4.9.99.1-20070510
|
||||||
%define cpukit_version 4.7.99.1
|
%define cpukit_version 4.9.99.1
|
||||||
%define cpukit_rpmvers %{expand:%(echo "4.7.99.1" | tr - _ )}
|
%define cpukit_rpmvers %{expand:%(echo "4.9.99.1" | tr - _ )}
|
||||||
|
|
||||||
Name: rtems-4.10-sparc-rtems4.10-cpukit
|
Name: rtems-4.10-sparc-rtems4.10-cpukit
|
||||||
Summary: sparc-rtems4.10 cpukit
|
Summary: sparc-rtems4.10 cpukit
|
||||||
|
|||||||
Reference in New Issue
Block a user