|
| 1 | +%bcond_with tests |
| 2 | +%define rversion 5.2-1.1.2 |
| 3 | + |
| 4 | +Name: bashdb |
| 5 | +Summary: BASH debugger, the BASH symbolic debugger |
| 6 | +Version: 5.2 |
| 7 | +Release: 2%{?dist} |
| 8 | +License: GPLv2+ |
| 9 | +Group: Development/Debuggers |
| 10 | +Url: https://github.com/Trepan-Debuggers/bashdb |
| 11 | +Source0: %{name}-%{rversion}.tar.gz |
| 12 | +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
| 13 | +BuildRequires: bash >= 5.1 |
| 14 | +BuildRequires: python-pygments |
| 15 | +Requires(post): /sbin/install-info |
| 16 | +Requires(preun): /sbin/install-info |
| 17 | +Requires: bash >= 5.1 |
| 18 | +BuildArch: noarch |
| 19 | + |
| 20 | +%description |
| 21 | +The Bash Debugger Project is a source-code debugger for bash, |
| 22 | +which follows the gdb command syntax. |
| 23 | +The purpose of the BASH debugger is to check |
| 24 | +what is going on “inside” a bash script, while it executes: |
| 25 | + * Start a script, specifying conditions that might affect its behavior. |
| 26 | + * Stop a script at certain conditions (break points). |
| 27 | + * Examine the state of a script. |
| 28 | + * Experiment, by changing variable values on the fly. |
| 29 | +The 4.0 series is a complete rewrite of the previous series. |
| 30 | +Bashdb can be used with ddd: ddd --debugger %{_bindir}/%{name} <script-name>. |
| 31 | + |
| 32 | +%prep |
| 33 | +%setup -q -n %{name}-%{rversion} |
| 34 | + |
| 35 | +%build |
| 36 | +%configure |
| 37 | +make %{?_smp_mflags} |
| 38 | + |
| 39 | +%install |
| 40 | +rm -rf %{buildroot} |
| 41 | +make install DESTDIR=%{buildroot} |
| 42 | + |
| 43 | +%if %{with tests} |
| 44 | +%check |
| 45 | +make check |
| 46 | +%endif |
| 47 | + |
| 48 | +%post |
| 49 | +mkdir -p /usr/share/info || : |
| 50 | +/sbin/install-info /usr/share/info/bashdb.info /usr/share/info/dir || : |
| 51 | + |
| 52 | +%postun |
| 53 | +if [ "$1" = 0 ]; then |
| 54 | + /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : |
| 55 | +fi |
| 56 | + |
| 57 | +%clean |
| 58 | +rm -rf %{buildroot} |
| 59 | + |
| 60 | +%files |
| 61 | +%defattr(-,root,root,-) |
| 62 | +%doc doc/*.html ChangeLog AUTHORS COPYING INSTALL TODO README.md NEWS.md THANKS.md |
| 63 | +/usr/bin/bashdb |
| 64 | +/usr/share/bashdb |
| 65 | +/usr/share/info/bashdb.info.gz |
| 66 | +/usr/share/info/dir |
| 67 | +/usr/share/man/man1/bashdb.1.gz |
| 68 | + |
| 69 | +%changelog |
| 70 | +* Sat Nov 9 2013 Rocky Bernstein <rlbernst@yu.edu> 4.2_0.9-1 |
| 71 | +- Make it work on RHEL5 for bash4 |
| 72 | + |
| 73 | +* Tue Sep 27 2011 Rocky Bernstein <rlbernst@yu.edu> 4.2_0.9-1 |
| 74 | +- Updated to 4.2-0.9 |
| 75 | + |
| 76 | +* Tue Mar 29 2011 Paulo Roma <roma@lcg.ufrj.br> 4.2_0.8-1 |
| 77 | +- Updated to 4.2-0.7 |
| 78 | + |
| 79 | +* Sun Mar 06 2011 Paulo Roma <roma@lcg.ufrj.br> 4.2_0.6-1 |
| 80 | +- Updated to 4.2-0.6 |
| 81 | +- Emacs lisp code has been removed upstream. |
| 82 | + |
| 83 | +* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1_0.4-2 |
| 84 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
| 85 | + |
| 86 | +* Thu Jul 22 2010 Paulo Roma <roma@lcg.ufrj.br> 4.1_0.4-1 |
| 87 | +- Updated to 4.1-0.4 |
| 88 | + |
| 89 | +* Sun Mar 14 2010 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 4.0_0.4-3 |
| 90 | +- Update package to comply with emacs add-on packaging guidelines |
| 91 | +- Split out separate Elisp source file package |
| 92 | + |
| 93 | +* Sun Dec 27 2009 Paulo Roma <roma@lcg.ufrj.br> 4.0_0.4-2 |
| 94 | +- Updated to 4.0-0.4 |
| 95 | + |
| 96 | +* Fri Apr 10 2009 Paulo Roma <roma@lcg.ufrj.br> 4.0_0.3-2 |
| 97 | +- Updated to 4.0-0.3 for supporting bash 4.0 |
| 98 | +- Added building option "with tests". |
| 99 | + |
| 100 | +* Wed Feb 25 2009 Paulo Roma <roma@lcg.ufrj.br> 4.0_0.2-1 |
| 101 | +- Completely rewritten for Fedora. |
| 102 | + |
| 103 | +* Tue Nov 18 2008 Manfred Tremmel <Manfred.Tremmel@iiv.de> |
| 104 | +- update to 4.0-0.2 |
0 commit comments