Группа :: Development/Python3
Пакет: python3-module-markdown
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_enable snapshot
%define _unpackaged_files_terminate_build 1
%define pypi_name Markdown
%define modname markdown
%def_enable check
Name: python3-module-%modname
Version: 3.4.3
Release: alt1
Summary: Python implementation of Markdown text-to-HTML convertor.
Group: Development/Python3
License: BSD-3-Clause
Url: http://pypi.python.org/pypi/Markdown/
%if_disabled snapshot
Source: https://pypi.io/packages/source/M/%pypi_name/%pypi_name-%version.tar.gz
%else
Vcs: git://github.com/waylan/Python-Markdown.git
Source: Markdown-%version.tar
%endif
BuildArch: noarch
%define metadata_ver 4.4
Requires: python3-module-Pygments
#markdown/util.py: import importlib_metadata as metadata
Requires: python3-module-importlib-metadata >= %metadata_ver
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools python3(wheel)
BuildRequires: python3-module-yaml
BuildRequires: python3-module-nose python3-module-coverage
BuildRequires: python3-module-Pygments
BuildRequires: python3-module-importlib-metadata >= %metadata_ver
%{?_enable_check:BuildRequires: python3(tox)}
%description
Markdown is a plain text formatting syntax designed to be as readable as
possible while being structured enough to allow conversion to other formats.
This package contains Python implementation of markdown-to-HTML convertor.
%package docs
Summary: Documentation for Markdown
Group: Development/Documentation
BuildArch: noarch
%description docs
Markdown is a plain text formatting syntax designed to be as readable as
possible while being structured enough to allow conversion to other formats.
This package contains documentation for Markdown.
%prep
%setup -n %pypi_name-%version
%build
%pyproject_build
%install
%pyproject_install
mv %buildroot%_bindir/%{modname}_py \
%buildroot%_bindir/%{modname}_py3
%check
%tox_check
export PYTHONPATH=%buildroot%python3_sitelibdir
%buildroot%_bindir/%{modname}_py3 README.md >README.html
%files
%_bindir/%{modname}_py3
%python3_sitelibdir/%modname/
%python3_sitelibdir/%pypi_name-%version.dist-info
%changelog
…
Полный changelog можно просмотреть здесь
%define _unpackaged_files_terminate_build 1
%define pypi_name Markdown
%define modname markdown
%def_enable check
Name: python3-module-%modname
Version: 3.4.3
Release: alt1
Summary: Python implementation of Markdown text-to-HTML convertor.
Group: Development/Python3
License: BSD-3-Clause
Url: http://pypi.python.org/pypi/Markdown/
%if_disabled snapshot
Source: https://pypi.io/packages/source/M/%pypi_name/%pypi_name-%version.tar.gz
%else
Vcs: git://github.com/waylan/Python-Markdown.git
Source: Markdown-%version.tar
%endif
BuildArch: noarch
%define metadata_ver 4.4
Requires: python3-module-Pygments
#markdown/util.py: import importlib_metadata as metadata
Requires: python3-module-importlib-metadata >= %metadata_ver
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools python3(wheel)
BuildRequires: python3-module-yaml
BuildRequires: python3-module-nose python3-module-coverage
BuildRequires: python3-module-Pygments
BuildRequires: python3-module-importlib-metadata >= %metadata_ver
%{?_enable_check:BuildRequires: python3(tox)}
%description
Markdown is a plain text formatting syntax designed to be as readable as
possible while being structured enough to allow conversion to other formats.
This package contains Python implementation of markdown-to-HTML convertor.
%package docs
Summary: Documentation for Markdown
Group: Development/Documentation
BuildArch: noarch
%description docs
Markdown is a plain text formatting syntax designed to be as readable as
possible while being structured enough to allow conversion to other formats.
This package contains documentation for Markdown.
%prep
%setup -n %pypi_name-%version
%build
%pyproject_build
%install
%pyproject_install
mv %buildroot%_bindir/%{modname}_py \
%buildroot%_bindir/%{modname}_py3
%check
%tox_check
export PYTHONPATH=%buildroot%python3_sitelibdir
%buildroot%_bindir/%{modname}_py3 README.md >README.html
%files
%_bindir/%{modname}_py3
%python3_sitelibdir/%modname/
%python3_sitelibdir/%pypi_name-%version.dist-info
%changelog
…
Полный changelog можно просмотреть здесь