From 8c5e54b1afbf4f980543e3eccff3495d2fb84419 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 18 Oct 1999 19:10:03 +0000 Subject: 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. --- scripts/gdb.spec.in | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 scripts/gdb.spec.in (limited to 'scripts/gdb.spec.in') 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* -- cgit v1.2.3