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