Группа :: Development/Python3
Пакет: python3-module-node_semver
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define oname node_semver
%def_with check
Name: python3-module-%oname
Version: 0.8.0
Release: alt2
Summary: python version of node-semver
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/node-semver/
# Source-url: https://github.com/podhmo/python-semver/archive/%version.tar.gz
Source: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-intro >= 2.2.5
BuildRequires(pre): rpm-build-python3
%if_with check
%py3_buildrequires pytest >= 2.13.1
%endif
%description
Python version of [node-semver] (https://github.com/isaacs/node-semver).
%prep
%setup
%build
%python3_build_debug
%install
%python3_install
%python3_prune
# don't intersect with original semver
# https://github.com/podhmo/python-semver/issues/39
mv %buildroot%python3_sitelibdir/semver/ %buildroot%python3_sitelibdir/%oname/
%check
py.test3 -v .
%files
%doc README.rst
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%python3_sitelibdir/%oname/
%changelog
…
Полный changelog можно просмотреть здесь
%def_with check
Name: python3-module-%oname
Version: 0.8.0
Release: alt2
Summary: python version of node-semver
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/node-semver/
# Source-url: https://github.com/podhmo/python-semver/archive/%version.tar.gz
Source: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-intro >= 2.2.5
BuildRequires(pre): rpm-build-python3
%if_with check
%py3_buildrequires pytest >= 2.13.1
%endif
%description
Python version of [node-semver] (https://github.com/isaacs/node-semver).
%prep
%setup
%build
%python3_build_debug
%install
%python3_install
%python3_prune
# don't intersect with original semver
# https://github.com/podhmo/python-semver/issues/39
mv %buildroot%python3_sitelibdir/semver/ %buildroot%python3_sitelibdir/%oname/
%check
py.test3 -v .
%files
%doc README.rst
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%python3_sitelibdir/%oname/
%changelog
…
Полный changelog можно просмотреть здесь