Working on being able to cut RPMs. It now appears that the process

is working mostly for sparc at least.

There is one major problem -- the current process generates a unique
source file per RPM when in fact all of the source files are nearly
the same -- it is only the spec part of the rpm which differs.
The new file mkbinutils_subpackage_version is an attempt to
address this.  It does part of the job right -- one source file
produces multiple binary RPMs.  BUT the end user can not produce
the resulting RPMS themselves from SRPMS unless they also
build all targets.
This commit is contained in:
Joel Sherrill
1999-10-18 19:10:03 +00:00
parent 18408afbc7
commit 8c5e54b1af
12 changed files with 788 additions and 27 deletions

76
scripts/gdb.spec.in Normal file
View File

@@ -0,0 +1,76 @@
#
# 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: @Version@
Summary: gdb for target @target_alias@
Source0: gdb-4.18.tar.gz
Patch0: gdb-4.18-rtems-19991015.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-@Version@
%setup -c -n @target_alias@-gdb -a 0
%patch0 -p0
%build
test -d build || mkdir build
( cd build
../gdb-4.18/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
%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*