forked from Imagelibrary/rtems
Obsoleted as they were distributed to subdirectories.
This commit is contained in:
@@ -1,126 +0,0 @@
|
||||
#
|
||||
# spec file for package rtems
|
||||
#
|
||||
# Copyright (c) 1999 OARCorp, Huntsville, AL
|
||||
#
|
||||
# please send bugfixes or comments to joel@OARcorp.com
|
||||
#
|
||||
|
||||
# neededforbuild @target_alias@-binutils @target_alias@-gcc
|
||||
|
||||
Vendor: OAR Corporation
|
||||
Distribution: Linux
|
||||
Name: @target_alias@-binutils
|
||||
Release: @Release@
|
||||
Copyright: 1999 OARCorp
|
||||
Group: unsorted
|
||||
Provides: @target_alias@-binutils
|
||||
|
||||
Autoreqprov: on
|
||||
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
|
||||
|
||||
Version: binutils@binutils_version@
|
||||
Summary: binutils for target @target_alias@
|
||||
Source0: binutils-@binutils_version@.tar.gz
|
||||
Patch0: binutils-@binutils_version@-rtems-@binutils_patch_version@.diff
|
||||
|
||||
Buildroot: /tmp
|
||||
# Patch:
|
||||
%description
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the GNU binutils for RTEMS targetting @target_alias@.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Joel Sherrill (joel@oarcorp.com)
|
||||
...
|
||||
|
||||
%prep
|
||||
# untar the sources inside @target_alias@-binutils
|
||||
%setup -c -n @target_alias@-binutils -a 0
|
||||
|
||||
%patch0 -p0
|
||||
|
||||
%build
|
||||
test -d build || mkdir build
|
||||
( cd build
|
||||
../binutils-@binutils_version@/configure --target=@target_alias@ \
|
||||
--verbose --prefix=/opt/rtems
|
||||
|
||||
test -d $RPM_BUILD_ROOT/opt \
|
||||
|| mkdir $RPM_BUILD_ROOT/opt
|
||||
test -d $RPM_BUILD_ROOT/opt/rtems \
|
||||
|| mkdir $RPM_BUILD_ROOT/opt/rtems
|
||||
|
||||
make all
|
||||
make info
|
||||
)
|
||||
|
||||
%install
|
||||
( cd build
|
||||
make prefix=$RPM_BUILD_ROOT/opt/rtems install
|
||||
make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
|
||||
)
|
||||
|
||||
%files
|
||||
%dir /opt/rtems
|
||||
%dir /opt/rtems/bin
|
||||
%dir /opt/rtems/info
|
||||
%dir /opt/rtems/lib
|
||||
%dir /opt/rtems/@target_alias@
|
||||
%dir /opt/rtems/@target_alias@/bin
|
||||
%dir /opt/rtems/@target_alias@/include
|
||||
%dir /opt/rtems/@target_alias@/sys-include
|
||||
%dir /opt/rtems/@target_alias@/lib
|
||||
%dir /opt/rtems/@target_alias@/lib/ldscripts
|
||||
%dir /opt/rtems/man
|
||||
%dir /opt/rtems/man/man1
|
||||
|
||||
%doc /opt/rtems/info/as.info*
|
||||
%doc /opt/rtems/info/bfd.info*
|
||||
%doc /opt/rtems/info/binutils.info*
|
||||
%doc /opt/rtems/info/gasp.info*
|
||||
%doc /opt/rtems/info/ld.info*
|
||||
%doc /opt/rtems/info/standards.info*
|
||||
%doc /opt/rtems/man/man1/@target_alias@-ar.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-nm.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-objdump.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-ranlib.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-size.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-strings.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-strip.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-objcopy.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-addr2line.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-nlmconv.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-c++filt.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-as.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-ld.1
|
||||
|
||||
/opt/rtems/bin/@target_alias@-addr2line
|
||||
/opt/rtems/bin/@target_alias@-ar
|
||||
/opt/rtems/bin/@target_alias@-as
|
||||
/opt/rtems/bin/@target_alias@-c++filt
|
||||
/opt/rtems/bin/@target_alias@-gasp
|
||||
/opt/rtems/bin/@target_alias@-ld
|
||||
/opt/rtems/bin/@target_alias@-nm
|
||||
/opt/rtems/bin/@target_alias@-objcopy
|
||||
/opt/rtems/bin/@target_alias@-objdump
|
||||
/opt/rtems/bin/@target_alias@-ranlib
|
||||
/opt/rtems/bin/@target_alias@-readelf
|
||||
/opt/rtems/bin/@target_alias@-size
|
||||
/opt/rtems/bin/@target_alias@-strings
|
||||
/opt/rtems/bin/@target_alias@-strip
|
||||
/opt/rtems/include/bfd.h
|
||||
/opt/rtems/include/ansidecl.h
|
||||
/opt/rtems/include/bfdlink.h
|
||||
/opt/rtems/lib/libbfd*
|
||||
/opt/rtems/lib/libiberty*
|
||||
/opt/rtems/lib/libopcodes*
|
||||
/opt/rtems/@target_alias@/bin/ar
|
||||
/opt/rtems/@target_alias@/bin/as
|
||||
/opt/rtems/@target_alias@/bin/ld
|
||||
/opt/rtems/@target_alias@/bin/nm
|
||||
/opt/rtems/@target_alias@/bin/ranlib
|
||||
/opt/rtems/@target_alias@/bin/strip
|
||||
/opt/rtems/@target_alias@/lib/ldscripts
|
||||
@@ -1,139 +0,0 @@
|
||||
#
|
||||
# spec file for package rtems
|
||||
#
|
||||
# Copyright (c) 1999 OARCorp, Huntsville, AL
|
||||
#
|
||||
# please send bugfixes or comments to joel@OARcorp.com
|
||||
#
|
||||
|
||||
Vendor: OAR Corporation
|
||||
Distribution: Linux
|
||||
Name: @target_alias@-gcc-newlib
|
||||
Release: @Release@
|
||||
Copyright: 1999 OARCorp
|
||||
Group: unsorted
|
||||
Provides: @target_alias@-gcc-newlib
|
||||
|
||||
Autoreqprov: on
|
||||
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
|
||||
|
||||
Version: gcc@gcc_version@newlib@newlib_version@
|
||||
Summary: rtems gcc and newlib C Library for target @target_alias@
|
||||
Source0: gcc-@gcc_version@.tar.gz
|
||||
Source1: newlib-@newlib_version@.tar.gz
|
||||
Patch0: gcc-@gcc_version@-rtems-@gcc_patch_version@.diff
|
||||
Patch1: newlib-@newlib_version@-rtems-@newlib_patch_version@.diff
|
||||
|
||||
Buildroot: /tmp
|
||||
# Patch:
|
||||
%description
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is gcc and newlib C Library for @target_alias@.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Joel Sherrill (joel@oarcorp.com)
|
||||
...
|
||||
|
||||
%prep
|
||||
# untar the sources inside @target_alias@-gcc-newlib -@Version@
|
||||
%setup -c -n @target_alias@-gcc-newlib -a 0 -a 1
|
||||
|
||||
%patch0 -p0
|
||||
%patch1 -p0
|
||||
|
||||
( cd gcc-@gcc_version@
|
||||
|
||||
# Now link the C library into the source tree
|
||||
ln -s ../newlib-1.8.2/newlib .
|
||||
)
|
||||
|
||||
%build
|
||||
test -d build || mkdir build
|
||||
( cd build
|
||||
../gcc-@gcc_version@/configure --target=@target_alias@ \
|
||||
--with-gnu-as --with-gnu-ld --with-newlib --verbose \
|
||||
--prefix=/opt/rtems --enable-languages="c c++"
|
||||
../gcc-@gcc_version@/mkinstalldirs \
|
||||
$RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include \
|
||||
$RPM_BUILD_ROOT/opt/rtems/@target_alias@/include
|
||||
|
||||
srclimits=../gcc-@gcc_version@/newlib/libc/sys/rtems/include/limits.h
|
||||
for dir in $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include \
|
||||
$RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include
|
||||
do
|
||||
cp ${srclimits} ${dir}
|
||||
done
|
||||
|
||||
#make LANGUAGES="c c++" all
|
||||
make all
|
||||
make info
|
||||
|
||||
cd gcc
|
||||
rm -f stmp-multilib
|
||||
find . -name "*.a" -print | xargs -e rm -f
|
||||
|
||||
make all
|
||||
cd ..
|
||||
)
|
||||
|
||||
%install
|
||||
( cd build
|
||||
make prefix=$RPM_BUILD_ROOT/opt/rtems install
|
||||
cd @target_alias@/newlib
|
||||
make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
|
||||
# gzip info files
|
||||
gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null
|
||||
gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null
|
||||
)
|
||||
|
||||
%post
|
||||
if test -d $RPM_INSTALL_PREFIX/rtems/info;
|
||||
then
|
||||
rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
|
||||
f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
|
||||
test -n "$f" && for i in $f; do
|
||||
install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
|
||||
done
|
||||
fi
|
||||
|
||||
%postun
|
||||
if test -d $RPM_INSTALL_PREFIX/rtems/info;
|
||||
then
|
||||
rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
|
||||
f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
|
||||
test -n "$f" && for i in $f; do
|
||||
install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
|
||||
done
|
||||
fi
|
||||
|
||||
%files
|
||||
%dir /opt/rtems/info
|
||||
%doc /opt/rtems/info/dir
|
||||
%doc /opt/rtems/info/chill.info*
|
||||
%doc /opt/rtems/info/cpp.info*
|
||||
%doc /opt/rtems/info/gcc.info*
|
||||
%doc /opt/rtems/info/g77.info*
|
||||
%doc /opt/rtems/info/libc.info*
|
||||
%doc /opt/rtems/info/libm.info*
|
||||
|
||||
%dir /opt/rtems/man
|
||||
%dir /opt/rtems/man/man1
|
||||
%doc /opt/rtems/man/man1/cccp.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-gcc.1
|
||||
%doc /opt/rtems/man/man1/@target_alias@-g++.1
|
||||
|
||||
%dir /opt/rtems/bin
|
||||
/opt/rtems/bin/cpp
|
||||
/opt/rtems/bin/@target_alias@-c++
|
||||
/opt/rtems/bin/@target_alias@-g++
|
||||
/opt/rtems/bin/@target_alias@-gcc
|
||||
/opt/rtems/bin/@target_alias@-gcj
|
||||
%dir /opt/rtems/lib
|
||||
%dir /opt/rtems/lib/gcc-lib
|
||||
%dir /opt/rtems/lib/gcc-lib/@target_alias@
|
||||
/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@
|
||||
/opt/rtems/@target_alias@/include
|
||||
/opt/rtems/@target_alias@/sys-include
|
||||
/opt/rtems/@target_alias@/lib
|
||||
@@ -1,84 +0,0 @@
|
||||
#
|
||||
# spec file for package rtems
|
||||
#
|
||||
# Copyright (c) 1999 OARCorp, Huntsville, AL
|
||||
#
|
||||
# please send bugfixes or comments to joel@OARcorp.com
|
||||
#
|
||||
|
||||
# neededforbuild -- nothing
|
||||
|
||||
Vendor: OAR Corporation
|
||||
Distribution: Linux
|
||||
Name: @target_alias@-gdb
|
||||
Release: @Release@
|
||||
Copyright: 1999 OARCorp
|
||||
Group: unsorted
|
||||
Provides: @target_alias@-gdb
|
||||
|
||||
Autoreqprov: on
|
||||
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
|
||||
|
||||
Version: gdb@gdb_version@
|
||||
Summary: gdb for target @target_alias@
|
||||
Source0: gdb-@gdb_version@.tar.gz
|
||||
Patch0: gdb-@gdb_version@-rtems-@gdb_patch_version@.diff
|
||||
|
||||
Buildroot: /tmp
|
||||
# Patch:
|
||||
%description
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the GNU gdb for RTEMS targetting @target_alias@.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Joel Sherrill (joel@oarcorp.com)
|
||||
...
|
||||
|
||||
%prep
|
||||
# untar the sources inside @target_alias@-gdb
|
||||
%setup -c -n @target_alias@-gdb -a 0
|
||||
|
||||
%patch0 -p0
|
||||
|
||||
%build
|
||||
test -d build || mkdir build
|
||||
( cd build
|
||||
../gdb-@gdb_version@/configure --target=@target_alias@ \
|
||||
--verbose --prefix=/opt/rtems
|
||||
|
||||
test -d $RPM_BUILD_ROOT/opt \
|
||||
|| mkdir $RPM_BUILD_ROOT/opt
|
||||
test -d $RPM_BUILD_ROOT/opt/rtems \
|
||||
|| mkdir $RPM_BUILD_ROOT/opt/rtems
|
||||
|
||||
make all
|
||||
make info
|
||||
)
|
||||
|
||||
%install
|
||||
( cd build
|
||||
make prefix=$RPM_BUILD_ROOT/opt/rtems install
|
||||
make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
|
||||
)
|
||||
|
||||
%files
|
||||
%dir /opt/rtems
|
||||
%dir /opt/rtems/bin
|
||||
%dir /opt/rtems/include
|
||||
%dir /opt/rtems/info
|
||||
%dir /opt/rtems/lib
|
||||
%dir /opt/rtems/man
|
||||
%dir /opt/rtems/man/man1
|
||||
|
||||
%doc /opt/rtems/info/gdb.info*
|
||||
%doc /opt/rtems/info/mmalloc.info*
|
||||
%doc /opt/rtems/info/readline.info*
|
||||
%doc /opt/rtems/man/man1/@target_alias@-gdb.1
|
||||
|
||||
/opt/rtems/bin/@target_alias@-gdb
|
||||
/opt/rtems/include/bfd.h
|
||||
/opt/rtems/include/bfdlink.h
|
||||
/opt/rtems/lib/libbfd*
|
||||
/opt/rtems/lib/libiberty*
|
||||
@@ -1,124 +0,0 @@
|
||||
#
|
||||
# spec file for package rtems
|
||||
#
|
||||
# Copyright (c) 1999 OARCorp, Huntsville, AL
|
||||
#
|
||||
# please send bugfixes or comments to joel@OARcorp.com
|
||||
#
|
||||
|
||||
# neededforbuild @target_alias@-binutils @target_alias@-gcc
|
||||
|
||||
Vendor: OAR Corporation
|
||||
Distribution: Linux
|
||||
Name: rtems-@target_alias@-tools
|
||||
Release: @Release@
|
||||
Copyright: 1999 OARCorp
|
||||
Group: unsorted
|
||||
Provides: rtems-@target_alias@-tools
|
||||
|
||||
Autoreqprov: on
|
||||
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
|
||||
|
||||
Version: @Version@
|
||||
Summary: rtems gcc tool chain for target @target_alias@
|
||||
Source0: gcc-2.95.1.tar.gz
|
||||
Source1: newlib-1.8.2.tar.gz
|
||||
Source2: binutils-990901.tar.gz
|
||||
Patch0: gcc-2.95.1-rtems-19991015.diff
|
||||
Patch1: newlib-1.8.2-rtems-19991015.diff
|
||||
Patch2: binutils-990901-rtems-19991015.diff
|
||||
|
||||
Buildroot: /tmp
|
||||
# Patch:
|
||||
%description
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Joel Sherrill (joel@oarcorp.com)
|
||||
...
|
||||
|
||||
%prep
|
||||
# untar the sources inside rtems-@target_alias@-@bsp@-@Version@
|
||||
%setup -c -n rtems-@target_alias@-tools -a 1 -a 2
|
||||
|
||||
# %setup -c -n rtems-@target_alias@ -a 1 -a 2
|
||||
%patch0 -p0
|
||||
%patch1 -p0
|
||||
%patch2 -p0
|
||||
|
||||
mkdir src
|
||||
( cd src
|
||||
# The configure scripts and share libraries should be taken from
|
||||
# the tool component with the newest version.
|
||||
GET_CONFIGURE_SCRIPTS_FROM=gcc-2.95.1
|
||||
for f in config config.guess config.sub configure configure.in \
|
||||
config-ml.in Makefile.in install-sh move-if-change \
|
||||
mkinstalldirs libiberty config.if ltconfig missing
|
||||
do
|
||||
ln -s ../${GET_CONFIGURE_SCRIPTS_FROM}/$f .
|
||||
done
|
||||
|
||||
# Link in GCC or EGCS
|
||||
for f in gcc libio libstdc++ texinfo xiberty
|
||||
do
|
||||
ln -s ../gcc-2.95.1/${f} .
|
||||
done
|
||||
|
||||
# Get these components from binutils
|
||||
for f in bfd binutils gas gprof ld opcodes etc
|
||||
do
|
||||
ln -s ../binutils-990901/$f .
|
||||
done
|
||||
|
||||
# Now get the C library
|
||||
ln -s ../newlib-1.8.2/newlib .
|
||||
)
|
||||
|
||||
%build
|
||||
test -d build || mkdir build
|
||||
( cd build
|
||||
../src/configure --target=@target_alias@ \
|
||||
--with-gnu-as --with-gnu-ld --with-newlib --verbose \
|
||||
--prefix=/opt/rtems
|
||||
|
||||
test -d $RPM_BUILD_ROOT/opt \
|
||||
|| mkdir $RPM_BUILD_ROOT/opt
|
||||
test -d $RPM_BUILD_ROOT/opt/rtems \
|
||||
|| mkdir $RPM_BUILD_ROOT/opt/rtems
|
||||
test -d $RPM_BUILD_ROOT/opt/rtems/@target_alias@ \
|
||||
|| mkdir $RPM_BUILD_ROOT/opt/rtems/@target_alias@
|
||||
test -d $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include \
|
||||
|| mkdir $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include
|
||||
test -d $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include \
|
||||
|| mkdir $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include
|
||||
|
||||
srclimits=../src/newlib/libc/sys/rtems/include/limits.h
|
||||
for dir in $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include \
|
||||
$RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include
|
||||
do
|
||||
cp ${srclimits} ${dir}
|
||||
done
|
||||
|
||||
make LANGUAGES="c c++" all
|
||||
|
||||
cd gcc
|
||||
rm -f stmp-multilib
|
||||
find . -name "*.a" -print | xargs -e rm -f
|
||||
|
||||
make LANGUAGES="c c++" all
|
||||
cd ..
|
||||
)
|
||||
|
||||
%install
|
||||
( cd build
|
||||
make prefix=$RPM_BUILD_ROOT/opt/rtems LANGUAGES="c c++" install
|
||||
)
|
||||
|
||||
%files
|
||||
/opt/rtems/@target_alias@/bin
|
||||
/opt/rtems/@target_alias@/include
|
||||
/opt/rtems/@target_alias@/lib
|
||||
/opt/rtems/@target_alias@/sys-include
|
||||
/opt/rtems/bin/@target_alias@*
|
||||
/opt/rtems/lib/gcc-lib/@target_alias@/2.95.1
|
||||
Reference in New Issue
Block a user