diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-10-18 19:10:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-10-18 19:10:03 +0000 |
commit | 8c5e54b1afbf4f980543e3eccff3495d2fb84419 (patch) | |
tree | 64253854ac3a517c4cd2dc585b1632cf8d698239 /scripts/gdb.spec.in | |
parent | Ralf Corsepius (corsepiu@faw.uni-ulm.de) submitted these scripts to (diff) | |
download | rtems-8c5e54b1afbf4f980543e3eccff3495d2fb84419.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | scripts/gdb.spec.in | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/scripts/gdb.spec.in b/scripts/gdb.spec.in new file mode 100644 index 0000000000..2795a582ba --- /dev/null +++ b/scripts/gdb.spec.in @@ -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* |