Репозиторий Sisyphus
Последнее обновление: 13 октября 2019 | Пакетов: 17513 | Посещений: 15258554
en ru br
Репозитории ALT

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

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

%define _unpackaged_files_terminate_build 1

%define mname aspy
%define oname %mname.yaml

%def_with python3

Name: python-module-%oname
Version: 1.1.1
Release: alt1
Summary: Some extensions to pyyaml
License: MIT
Group: Development/Python
Url: https://pypi.python.org/pypi/aspy.yaml/

# https://github.com/asottile/aspy.yaml.git

Source: %name-%version.tar

BuildRequires: python-dev python-module-setuptools
BuildRequires: python-module-yaml python-module-coverage
BuildRequires: python-module-flake8 pylint
BuildRequires: python-module-pytest
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-dev python3-module-setuptools
BuildRequires: python3-module-yaml python3-module-coverage
BuildRequires: python3-module-flake8 pylint-py3
BuildRequires: python3-module-pytest
%endif

%py_provides %oname
Requires: python-module-%mname = %EVR
%py_requires yaml

%description
A few extensions to pyyaml.

%if_with python3
%package -n python3-module-%oname
Summary: Some extensions to pyyaml
Group: Development/Python3
%py3_provides %oname
Requires: python3-module-%mname = %EVR
%py3_requires yaml

%description -n python3-module-%oname
A few extensions to pyyaml.
%endif

%package -n python-module-%mname
Summary: Core files of %mname
Group: Development/Python
%py_provides %mname

%description -n python-module-%mname
Core files of %mname.

%if_with python3
%package -n python3-module-%mname
Summary: Core files of %mname
Group: Development/Python3
%py3_provides %mname

%description -n python3-module-%mname
Core files of %mname.
%endif

%prep
%setup

%if_with python3
cp -fR . ../python3
%endif

%build
%python_build_debug

%if_with python3
pushd ../python3
%python3_build_debug
popd
%endif

%install
%python_install

%if_with python3
pushd ../python3
%python3_install
popd
%endif

%if "%_libexecdir" != "%_libdir"
mv %buildroot%_libexecdir %buildroot%_libdir
%endif

install -p -m644 %mname/__init__.py \
%buildroot%python_sitelibdir/%mname/
%if_with python3
install -p -m644 %mname/__init__.py \
%buildroot%python3_sitelibdir/%mname/
%endif

%check
python setup.py test
py.test -vv
%if_with python3
pushd ../python3
python3 setup.py test
py.test3 -vv
popd
%endif

%files
%doc *.md
%python_sitelibdir/%mname/*
%python_sitelibdir/*.egg-info
%python_sitelibdir/*-nspkg.pth
%exclude %python_sitelibdir/%mname/__init__.py*

%files -n python-module-%mname
%dir %python_sitelibdir/%mname
%python_sitelibdir/%mname/__init__.py*

%if_with python3
%files -n python3-module-%oname
%doc *.md
%python3_sitelibdir/%mname/*
%python3_sitelibdir/*.egg-info
%python3_sitelibdir/*-nspkg.pth
%exclude %python3_sitelibdir/%mname/__init__.py
%exclude %python3_sitelibdir/%mname/__pycache__

%files -n python3-module-%mname
%dir %python3_sitelibdir/%mname
%dir %python3_sitelibdir/%mname/__pycache__
%python3_sitelibdir/%mname/__init__.py
%python3_sitelibdir/%mname/__pycache__
%endif

%changelog

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

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