59 lines
1.8 KiB
RPMSpec
59 lines
1.8 KiB
RPMSpec
%global pypi_name portray
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 1.8.0
|
|
Release: 2
|
|
Summary: A Python3 command line tool and library that create great documentation websites for Python projects.
|
|
|
|
License: MIT
|
|
URL: https://github.com/timothycrosley/portray
|
|
Source0: https://files.pythonhosted.org/packages/31/c5/647feff9c1a65c403594e51e8ebc9eb93b71e77808c159cf688970585715/portray-1.8.0.tar.gz
|
|
Patch1: 0001-change-build-backend-to-poetry-core.patch
|
|
Patch2: 0002-remove-upper-limit-version-of-mkdocs.patch
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-editables
|
|
BuildRequires: python3-hatch-vcs
|
|
BuildRequires: python3-hatchling
|
|
BuildRequires: python3-virtualenv
|
|
BuildRequires: python3-poetry-core
|
|
|
|
%description
|
|
portray is a Python3 command line tool and library that helps you create great documentation websites for your Python projects with as little effort as possible.
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-%{pypi_name}
|
|
A Python3 command line tool and library that create great documentation websites for Python projects.
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
sed -i 's#yaspin = .*#yaspin = ">=0.15.0"#g' pyproject.toml
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_bindir}/portray
|
|
%{python3_sitelib}/%{pypi_name}
|
|
%{python3_sitelib}/%{pypi_name}*.dist-info/
|
|
|
|
%changelog
|
|
* Fri Jan 5 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.8.0-2
|
|
- Remove upper limit version of yaspin
|
|
|
|
* Mon Jun 12 2023 Dongxing Wang <dxwangk@isoftstone.com> - 1.8.0-1
|
|
- Initial package 1.8.0
|