51 lines
1.3 KiB
RPMSpec
51 lines
1.3 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
%global pypi_name mdformat
|
|
|
|
%global _description %{expand:
|
|
Mdformat is an opinionated Markdown formatter that can be used to enforce a consistent style in Markdown files.\
|
|
Mdformat is a Unix-style command-line tool as well as a Python library.}
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 0.7.16
|
|
Release: 1
|
|
Summary: CommonMark compliant Markdown formatter
|
|
License: MIT
|
|
URL: https://github.com/executablebooks/mdformat
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-setuptools_scm
|
|
Patch: 0001-fix-version-of-markdown-it-py.patch
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: CommonMark compliant Markdown formatter
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
%description -n python3-%{pypi_name} %_description
|
|
|
|
%prep
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python3_sitelib}/mdformat/
|
|
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
|
|
%{_bindir}/mdformat
|
|
|
|
%changelog
|
|
* Thu Aug 17 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 0.7.16-1
|
|
- Package init
|