bashdb-vl.spec 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. %define first_version 4.2
  2. %define second_version 0.8
  3. # Basic Information
  4. Name: bashdb
  5. Version: %{first_version}.%{second_version}
  6. Release: 1%{?_dist_release}
  7. License: GPLv2
  8. Group: Development/Tools
  9. URL: http://bashdb.sourceforge.net/
  10. Source0: %{name}-%{first_version}-%{second_version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: yasumichi
  16. Summary: a gdb-like debugger for Bash
  17. Summary(ja): Bash 用の gdb ライクなデバッガー
  18. # Dependency
  19. Requires: bash
  20. Requires(post): /sbin/install-info
  21. Requires(preun): /sbin/install-info
  22. %description
  23. bashdb is a bash script to which arranges for another bash script to be debugged.
  24. The debugger has a similar command interface as gdb.
  25. %description -l ja
  26. bashdb は、デバッグしたい他の bash スクリプトを準備するための bash スクリプトです。
  27. このデバッガーは、gdb とよく似たコマンドインターフェースを備えています。
  28. %prep
  29. %setup -q -n %{name}-%{first_version}-%{second_version}
  30. %build
  31. %configure
  32. %{__make} %{?_smp_mflags}
  33. %install
  34. %{__rm} -rf ${RPM_BUILD_ROOT}
  35. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  36. # remove unnecessary files.
  37. %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir
  38. %clean
  39. %{__rm} -rf ${RPM_BUILD_ROOT}
  40. %post
  41. /sbin/install-info %{_infodir}/bashdb.info %{_infodir}/dir 2>/dev/null || :
  42. %preun
  43. if [ $1 -eq 0 ]; then
  44. /sbin/install-info --delete %{_infodir}/bashdb.info \
  45. %{_infodir}/dir 2>/dev/null || :
  46. fi
  47. %files
  48. %defattr(-,root,root)
  49. %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
  50. %{_mandir}/man1/bashdb.1*
  51. %{_infodir}/bashdb.info*
  52. %{_datadir}/bashdb
  53. %{_bindir}/bashdb
  54. %changelog
  55. * Sat Oct 15 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 4.2.0.8-1
  56. - initial build for Vine Linux