Init package with version 0.4.1

This commit is contained in:
desert-sailor 2023-11-07 14:43:06 +08:00
parent 4b0c13f653
commit 432820c2a0
2 changed files with 66 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,66 @@
%global _empty_manifest_terminate_build 0
Name: python-mdformat-tables
Version: 0.4.1
Release: 1
Summary: An mdformat plugin for rendering tables.
License: MIT
URL: https://github.com/executablebooks/mdformat-tables
Source0: https://files.pythonhosted.org/packages/4f/3c/8f6a8dc42407985ff704937ed332c035a7dd3a64ac9f1ed82ef401d2923e/mdformat_tables-0.4.1.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-flit-core
%description
An mdformat plugin for rendering tables.
%package -n python3-mdformat-tables
Summary: An mdformat plugin for rendering tables.
Provides: python-mdformat-tables
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-hatchling
%description -n python3-mdformat-tables
An mdformat plugin for rendering tables.
%package help
Summary: Development documents and examples for mdformat-tables
Provides: python3-mdformat-tables-doc
%description help
Development documents and examples for mdformat-tables.
%prep
%autosetup -n mdformat_tables-%{version}
%build
%pyproject_build
%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
%files -n python3-mdformat-tables
%doc README.md
%license LICENSE
%{python3_sitelib}/mdformat_tables
%{python3_sitelib}/mdformat_tables*.dist-info/
%files help
%{_docdir}/*
%changelog
* Tue Nov 7 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.4.1-1
- Init package