Репозиторий Sisyphus
Последнее обновление: 21 сентября 2020 | Пакетов: 17696 | Посещений: 19268803
en ru br
Репозитории ALT

Группа :: Разработка/Python
Пакет: python-module-editor

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

%global pypi_name python-editor

%define with_python3 1

Name: python-module-editor
Version: 1.0.3
Release: alt1

Summary: Programmatically open an editor, capture the result

License: ASL 2.0
Group: Development/Python
Url: https://github.com/fmoo/python-editor

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: https://pypi.python.org/packages/source/p/%pypi_name/%pypi_name-%version.tar.gz

BuildArch: noarch

#BuildPreReq: rpm-build-python3 python3-module-distribute


# Automatically added by buildreq on Thu Jan 28 2016 (-bi)

# optimized out: python-base python-devel python-modules python-modules-compiler python-modules-ctypes python-modules-email python-modules-encodings python-modules-unittest python3 python3-base
BuildRequires: python-module-setuptools python3-module-setuptools rpm-build-python3

#BuildRequires: python-devel

#BuildRequires: python-module-setuptools

%description
An python module which provides a convenient example.

%if 0%with_python3
%package -n python3-module-editor
Summary: Programmatically open an editor, capture the result
#BuildRequires: python3-devel
Group: Development/Python

%description -n python3-module-editor
An python module which provides a convenient example.
%endif

%prep
%setup -n %pypi_name-%version
rm -rf %pypi_name.egg-info

%build
%python_build
%if 0%with_python3
%python3_build
%endif

%install
%python_install
chmod a+x %buildroot%python_sitelibdir/editor.py

%if 0%with_python3
%python3_install
chmod a+x %buildroot%python3_sitelibdir/editor.py
%__subst "s|python$|python3|g" %buildroot%python3_sitelibdir/editor.py
%endif

%check

%files
%doc README.md
%doc LICENSE
%python_sitelibdir/editor.py*
%python_sitelibdir/python_editor-%version-py?.?.egg-info

%if 0%with_python3
%files -n python3-module-editor
%doc README.md
%doc LICENSE
%python3_sitelibdir/*.egg-info
%python3_sitelibdir/editor.py*
#python3_sitelibdir/__pycache__/*
%endif

%changelog

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

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