gdb/gdb.spec

301 lines
9.6 KiB
RPMSpec
Raw Permalink Normal View History

%if %{_target_cpu} == %{_build_cpu}
%define name gcc
%else
%define name cross-%{_target_cpu}-gcc
%endif
Name: gdb
Version: 9.1
Release: 1mamba
Summary: A GNU source-level debugger for C, C++, Java and other languages
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: http://www.gnu.org/software/gdb/gdb.html
Source: http://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.xz
Patch0: %{name}-6.3-gentoo_bfd_malloc_wrap.patch
Patch1: %{name}-6.3-gdbinit_stat.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libboost-devel
BuildRequires: libexpat-devel
BuildRequires: libgmp-devel
BuildRequires: liblzma-devel
BuildRequires: libmpfr-devel
BuildRequires: libncurses-devel
BuildRequires: libpython27-devel
BuildRequires: source-highlight-devel
## AUTOBUILDREQ-END
BuildRequires: bash
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gcc-fortran
%if "%{stage1}" != "1"
BuildRequires: gcc-java
%endif
BuildRequires: gettext-devel
BuildRequires: libobjc-devel
BuildRequires: libreadline-devel
BuildRequires: texinfo
Requires(post):%{__install_info}
Requires: glibc-debug
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes.
GDB can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act:
* Start your program, specifying anything that might affect its behavior.
* Make your program stop on specified conditions.
* Examine what has happened, when your program has stopped.
* Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.
The program being debugged can be written in Ada, C, C++, Objective-C, Pascal (and many other languages).
Those programs might be executing on the same machine as GDB (native) or on another machine (remote).
If you are going to develop C and/or C++ programs and use the GNU gcc compiler, you may want to install gdb to help you debug your programs.
%debug_package
%prep
%setup -q
#-D -T
#:<< _EOF
#%patch0 -p0 -b .gentoo_bfd_malloc_wrap
#%patch1 -p0 -b .gdbinit_stat
#rm -rf ./gdb/gdbserver
cat > gdb/version.in << EOF
%{version}-%{release} (%{_target_vendor})
EOF
%build
mkdir build
cd build
ln -s ../configure .
%configure \
--with-separate-debug-dir=%{_prefix}/lib/debug \
--host=%{_target_platform} \
--build=%{_target_platform} \
--disable-rpath \
CFLAGS="${CFLAGS/ / }" \
CXXFLAGS="${CFLAGS/ / }" \
FFLAGS="${CFLAGS/ / }"
# --with-system-readline \
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall -C build
## install the gcore script in /usr/bin
#install -m 755 gdb/gdb_gcore.sh %{buildroot}%{_bindir}/gcore
# these are part of binutils and libbinutils
rm -f %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/{bfd,opcodes}.mo
rm -fr %{buildroot}%{_includedir}
rm -f %{buildroot}%{_infodir}/{bfd*,configure*,standard*}
rm -f %{buildroot}%{_libdir}/lib{bfd*,iberty*,opcodes*}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post
%install_info annotate.info
%install_info gdb.info
%install_info gdbint.info
%install_info stabs.info
exit 0
%preun
%uninstall_info annotate.info
%uninstall_info gdb.info
%uninstall_info gdbint.info
%uninstall_info stabs.info
exit 0
%files
%defattr(-,root,root)
%{_bindir}/gcore
%{_bindir}/gdb
%{_bindir}/gdb-add-index
%{_bindir}/gdbserver
#%{_bindir}/gdbtui
%ifarch arm
%{_bindir}/run
%{_libdir}/lib%{_host}-sim.a
%else
%{_libdir}/libinproctrace.so
%endif
%{_libdir}/libctf-nobfd.a
%{_libdir}/libctf-nobfd.la
%{_libdir}/libctf.a
%{_libdir}/libctf.la
%dir %{_datadir}/gdb
#%dir %{_datadir}/gdb/guile
#%{_datadir}/gdb/guile/*
%dir %{_datadir}/gdb/python
%dir %{_datadir}/gdb/python/gdb
%{_datadir}/gdb/python/gdb/*
%dir %{_datadir}/gdb/syscalls
%{_datadir}/gdb/syscalls/*.xml
%{_datadir}/gdb/syscalls/gdb-syscalls.dtd
%dir %{_datadir}/gdb/system-gdbinit
%{_datadir}/gdb/system-gdbinit/elinos.py
%{_datadir}/gdb/system-gdbinit/wrs-linux.py
%{_infodir}/annotate.info*
%{_infodir}/gdb.info*
#%{_infodir}/gdbint.info*
%{_infodir}/stabs.info*
%{_mandir}/man1/gcore.1*
%{_mandir}/man1/gdb.*
%{_mandir}/man1/gdb-add-index.1*
%{_mandir}/man1/gdbserver.*
%{_mandir}/man5/gdbinit.5*
%doc COPYING COPYING.LIB
#README gdb/NEWS
%changelog
* Fri Feb 14 2020 Automatic Build System <autodist@mambasoft.it> 9.1-1mamba
- automatic version update by autodist
* Thu Oct 03 2019 Automatic Build System <autodist@mambasoft.it> 8.3.1-1mamba
- automatic version update by autodist
* Thu Jul 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 8.3-2mamba
- rebuilt with source-highlight
* Wed May 22 2019 Automatic Build System <autodist@mambasoft.it> 8.3-1mamba
- automatic version update by autodist
* Sat Jan 05 2019 Automatic Build System <autodist@mambasoft.it> 8.2.1-1mamba
- automatic version update by autodist
* Wed Sep 12 2018 Automatic Build System <autodist@mambasoft.it> 8.2-1mamba
- automatic version update by autodist
* Thu Aug 09 2018 Automatic Build System <autodist@mambasoft.it> 8.1.1-1mamba
- automatic version update by autodist
* Sat Feb 03 2018 Automatic Build System <autodist@mambasoft.it> 8.1-1mamba
- automatic version update by autodist
* Fri Sep 08 2017 Automatic Build System <autodist@mambasoft.it> 8.0.1-1mamba
- automatic version update by autodist
* Thu Jun 08 2017 Automatic Build System <autodist@mambasoft.it> 8.0-1mamba
- automatic version update by autodist
* Sat Jan 28 2017 Automatic Build System <autodist@mambasoft.it> 7.12.1-1mamba
- automatic version update by autodist
* Thu Oct 13 2016 Automatic Build System <autodist@mambasoft.it> 7.12-1mamba
- automatic version update by autodist
* Thu Jun 02 2016 Automatic Build System <autodist@mambasoft.it> 7.11.1-1mamba
- automatic version update by autodist
* Sun Feb 28 2016 Automatic Build System <autodist@mambasoft.it> 7.11-1mamba
- automatic version update by autodist
* Thu Dec 17 2015 Automatic Build System <autodist@mambasoft.it> 7.10.1-1mamba
- automatic version update by autodist
* Mon Sep 14 2015 Automatic Build System <autodist@mambasoft.it> 7.10-1mamba
- automatic version update by autodist
* Thu May 14 2015 Automatic Build System <autodist@mambasoft.it> 7.9.1-1mamba
- automatic version update by autodist
* Sun Feb 22 2015 Automatic Build System <autodist@mambasoft.it> 7.9-1mamba
- automatic version update by autodist
* Fri Jan 16 2015 Automatic Build System <autodist@mambasoft.it> 7.8.2-1mamba
- automatic version update by autodist
* Wed Nov 05 2014 Automatic Build System <autodist@mambasoft.it> 7.8.1-1mamba
- automatic version update by autodist
* Mon Aug 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 7.8-1mamba
- update to 7.8
* Fri May 09 2014 Automatic Build System <autodist@mambasoft.it> 7.7.1-1mamba
- automatic version update by autodist
* Sat Feb 15 2014 Automatic Build System <autodist@mambasoft.it> 7.7-1mamba
- automatic version update by autodist
* Sun Dec 15 2013 Automatic Build System <autodist@mambasoft.it> 7.6.2-1mamba
- automatic update by autodist
* Sat Aug 31 2013 Automatic Build System <autodist@mambasoft.it> 7.6.1-1mamba
- automatic version update by autodist
* Sat Jun 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 7.6-2mamba
- python 2.7 mass rebuild
* Mon Apr 29 2013 Automatic Build System <autodist@mambasoft.it> 7.6-1mamba
- update to 7.6
* Sat Dec 29 2012 Automatic Build System <autodist@mambasoft.it> 7.5.1-1mamba
- automatic version update by autodist
* Sun Sep 09 2012 Automatic Build System <autodist@mambasoft.it> 7.5-1mamba
- automatic version update by autodist
* Fri Jun 15 2012 Automatic Build System <autodist@mambasoft.it> 7.4.1-1mamba
- automatic version update by autodist
* Tue Oct 04 2011 Automatic Build System <autodist@mambasoft.it> 7.3.1-1mamba
- automatic version update by autodist
* Sat Aug 13 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 7.3-2mamba
- added requirement for glibc-debug
* Sun Aug 07 2011 Automatic Build System <autodist@mambasoft.it> 7.3-1mamba
- automatic version update by autodist
* Mon Jan 31 2011 Automatic Build System <autodist@mambasoft.it> 7.2-1mamba
- automatic update by autodist
* Sat Apr 17 2010 Automatic Build System <autodist@mambasoft.it> 7.1-1mamba
- automatic update by autodist
* Wed Jan 20 2010 Automatic Build System <autodist@mambasoft.it> 7.0.1-1mamba
- automatic update by autodist
* Tue Oct 13 2009 Automatic Build System <autodist@mambasoft.it> 7.0-1mamba
- automatic update by autodist
* Wed Apr 08 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6.8-1mamba
- automatic update by autodist
* Tue Jan 08 2008 Aleph0 <aleph0@openmamba.org> 6.7.1-1mamba
- update to 6.7.1
- new package maintainer
- do not remove gdbserver binary and related manpage
- install the gcore shell script
* Tue Mar 27 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 6.6-1qilnx
- update to version 6.6 by autospec
* Wed Jun 28 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 6.5-1qilnx
- update to version 6.5 by autospec
* Wed Nov 09 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3-4qilnx
- rebuilt with gcc4
* Thu Jul 14 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3-3qilnx
- rebuilt with given host platform ( = target platform)
* Wed Jun 08 2005 Davide Madrisan <davide.madrisan@qilinux.it> 6.3-2qilnx
- security fixes QSA-2005-071 (CAN-2005-1704, CAN-2005-1705)
* Tue Nov 16 2004 Davide Madrisan <davide.madrisan@qilinux.it> 6.3-1qilnx
- update to version 6.3 by autospec
* Tue Oct 19 2004 Davide Madrisan <davide.madrisan@qilinux.it> 6.2.1-1qilnx
- package created by autospec