12
0

2 Commits

2 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 5 13:01:13 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:20:21 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:20:21 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-CommonMark # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 License: BSD-3-Clause
URL: https://github.com/rtfd/CommonMark-py URL: https://github.com/rtfd/CommonMark-py
Source: https://files.pythonhosted.org/packages/source/c/commonmark/commonmark-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/c/commonmark/commonmark-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
Provides: python-commonmark = %{version} Provides: python-commonmark = %{version}
Obsoletes: python-commonmark < %{version} Obsoletes: python-commonmark < %{version}
BuildArch: noarch BuildArch: noarch
@@ -55,10 +56,10 @@ CommonMark specification, using only native modules.
%setup -q -n commonmark-%{version} %setup -q -n commonmark-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/cmark %python_clone -a %{buildroot}%{_bindir}/cmark
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -80,7 +81,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} python3 commonmark/tests/run_spec_test
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python_sitelib}/commonmark %{python_sitelib}/commonmark
%{python_sitelib}/commonmark-%{version}*-info %{python_sitelib}/commonmark-%{version}*info
%python_alternative %{_bindir}/cmark %python_alternative %{_bindir}/cmark
%changelog %changelog