Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37408567
en ru br
Репозитории ALT

Группа :: Разработка/Отладчики
Пакет: pyclewn

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: pyclewn
Version: 2.3
Release: alt1
License: GPLv2
Summary: Using vim as a front end to a debugger (supports gdb and pdb)
Group: Development/Debuggers
BuildPreReq: rpm-build-vim
Source: %name-%version.tar.gz
BuildArch: noarch

# Automatically added by buildreq on Wed May 02 2012

# optimized out: python-base python-modules python-modules-compiler python-modules-email python-modules-logging
BuildRequires: python-devel vim-console
%add_python_req_skip msvcrt win32con win32console win32gui win32pipe

%description
Pyclewn allows using vim as a front end to a debugger. Pyclewn currently
supports gdb and pdb.

The debugger output is redirected to a vim window, the pyclewn console.
The debugger commands are mapped to vim user-defined commands with
a common letter prefix, and with completion available on the commands
and their first argument.

On unix when running gvim, the controlling terminal of the program to
debug is the terminal used to launch pyclewn. Any other terminal can be
used when the debugger allows it, for example after using the attach or
tty gdb commands or using the --tty option with pdb. On Windows, gdb
pops up a console attached to the program to debug.

%setup_python_module %name
%package -n %packagename
Group: Development/Python
Summary: Supplemental module for %name
%description -n %packagename
Supplemental module for %name

%prep
%setup -n %name-%version
# hack out " (ALT Linux)" from gdb version
sed -i 's at lines.next() at lines.next().replace(" (ALT Linux)","") at ' lib/clewn/gdb.py
cat > %name << at  at  at
#!/usr/bin/python2.7

import clewn.vim as vim
vim.main()
at  at  at

%build
export EDITOR=/usr/bin/vim
%python_build
vim -S lib/clewn/runtime/pyclewn-%version.vmb +:q

%install
export EDITOR=/usr/bin/vim
%python_install
mkdir -p %buildroot%vim_runtime_dir
cp -a $HOME/.vim/* %buildroot%vim_runtime_dir/
install -D %name %buildroot%_bindir/%name

%files
%doc README NEWS
%vim_runtime_dir/*/*
%vim_runtime_dir/*/.??*
%exclude %vim_runtime_dir/doc/tags
%_bindir/*

%files -n %packagename
%python_sitelibdir_noarch/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin