[df49c60] | 1 | Name: @target_alias@-gdb-collection |
---|
| 2 | Release: @Release@ |
---|
| 3 | License: GPL/LGPL |
---|
| 4 | Group: rtems |
---|
| 5 | |
---|
| 6 | Autoreqprov: on |
---|
| 7 | Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com |
---|
| 8 | |
---|
| 9 | Version: @gdb_version@ |
---|
| 10 | Summary: gdb for target @target_alias@ |
---|
| 11 | Source0: ftp://ftp.gnu.org/pub/gnu/gdb-@gdb_version@.tar.gz |
---|
[c93fb2af] | 12 | Patch0: gdb-@gdb_version@-rtems-base-@gdb_patch_version@.diff |
---|
| 13 | Patch1: gdb-@gdb_version@-rtems-cg-@gdb_patch_version@.diff |
---|
| 14 | Patch2: gdb-@gdb_version@-rtems-rdbg-@gdb_patch_version@.diff |
---|
[c86d8e7f] | 15 | |
---|
| 16 | %if "%{_vendor}" == "redhat" |
---|
| 17 | BuildPreReq: ncurses-devel |
---|
| 18 | %endif |
---|
[df49c60] | 19 | |
---|
| 20 | # |
---|
| 21 | # The original sources are not included in the source RPM. |
---|
| 22 | # If we included them, then the source RPMs for each target |
---|
| 23 | # would duplicate MBs of source unnecessarily. This is |
---|
| 24 | # a duplication of over 30 MBs of source for each of |
---|
| 25 | # the more than 10 targets it is possible to build. |
---|
| 26 | # |
---|
| 27 | # You can get them yourself from the Internet and copy them to |
---|
| 28 | # your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR). |
---|
| 29 | # Or you can try the ftp options of rpm :-) |
---|
| 30 | # |
---|
| 31 | NoSource: 0 |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | %description |
---|
| 35 | RTEMS is an open source operating system for embedded systems. |
---|
| 36 | |
---|
| 37 | This is the GNU gdb for RTEMS targetting @target_alias@. |
---|
| 38 | |
---|
| 39 | %prep |
---|
| 40 | # untar the sources inside @target_alias@-gdb |
---|
| 41 | %setup -c -n @target_alias@-gdb -a 0 |
---|
| 42 | |
---|
[c93fb2af] | 43 | cd gdb-@gdb_version@ |
---|
| 44 | %patch0 -p1 |
---|
| 45 | %patch1 -p1 |
---|
| 46 | %patch2 -p1 |
---|
[df49c60] | 47 | |
---|
| 48 | %build |
---|
| 49 | test -d build || mkdir build |
---|
| 50 | cd build |
---|
[9c8ee7b] | 51 | ../gdb-@gdb_version@/configure \ |
---|
| 52 | --target=@target_alias@ \ |
---|
[c86d8e7f] | 53 | --verbose --prefix=%{_prefix} @extra_configure_arguments@ \ |
---|
| 54 | --disable-nls |
---|
[df49c60] | 55 | |
---|
| 56 | make all |
---|
| 57 | make info |
---|
| 58 | |
---|
| 59 | %install |
---|
| 60 | cd build |
---|
[c86d8e7f] | 61 | make prefix=$RPM_BUILD_ROOT%{_prefix} install |
---|
| 62 | make prefix=$RPM_BUILD_ROOT%{_prefix} install-info |
---|
| 63 | |
---|
| 64 | # host files |
---|
| 65 | rm -rf $RPM_BUILD_ROOT%{_prefix}/include/*.h |
---|
| 66 | rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/lib*a |
---|
[df49c60] | 67 | |
---|
[c86d8e7f] | 68 | # These come from other packages |
---|
| 69 | rm -rf $RPM_BUILD_ROOT%{_prefix}/info/bfd* |
---|
| 70 | rm -rf $RPM_BUILD_ROOT%{_prefix}/info/configure* |
---|
| 71 | rm -rf $RPM_BUILD_ROOT%{_prefix}/info/standards* |
---|
| 72 | |
---|
[df49c60] | 73 | # gzip info files |
---|
[c86d8e7f] | 74 | gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null |
---|
| 75 | gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null |
---|
| 76 | gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-?? 2>/dev/null |
---|