forked from pool/python-CommonMark
Accepting request 1274575 from home:mcalabkova:branches:devel:languages:python
- Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1274575 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CommonMark?expand=0&rev=33
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-CommonMark
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,11 +26,12 @@ Summary: Python parser for the CommonMark Markdown spec
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/rtfd/CommonMark-py
|
||||
Source: https://files.pythonhosted.org/packages/source/c/commonmark/commonmark-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Provides: python-commonmark = %{version}
|
||||
Obsoletes: python-commonmark < %{version}
|
||||
BuildArch: noarch
|
||||
@@ -55,10 +56,10 @@ CommonMark specification, using only native modules.
|
||||
%setup -q -n commonmark-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/cmark
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
@@ -80,7 +81,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} python3 commonmark/tests/run_spec_test
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}/commonmark
|
||||
%{python_sitelib}/commonmark-%{version}*-info
|
||||
%{python_sitelib}/commonmark-%{version}*info
|
||||
%python_alternative %{_bindir}/cmark
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user