python-black/python-black.spec
2023-07-05 15:29:27 +08:00

75 lines
2.0 KiB
RPMSpec

Name: black
Version: 23.3.0
Release: 3
Summary: The uncompromising code formatter
License: MIT
URL: https://github.com/psf/black
Source: %{pypi_source black}
BuildArch: noarch
BuildRequires: python3-devel
# Base build requires
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatch-vcs
BuildRequires: python3-hatchling
BuildRequires: python3-hatch-fancy-pypi-readme
%global _description %{expand:
Black is the uncompromising Python code formatter. By using it, you agree to
cease control over minutiae of hand-formatting. In return, Black gives you
speed, determinism, and freedom from pycodestyle nagging about formatting.
You will save time and mental energy for more important matters.}
%description %_description
%package -n python3-black
Summary: %{summary}
Recommends: black+d = %{version}-%{release}
%description -n python3-black %_description
%prep
%autosetup -n black-%{version} -p1
%build
%pyproject_build
%install
%pyproject_install
for exe in black blackd; do
ln -sr %{buildroot}%{_bindir}/${exe}{,-%{python3_version}}
done
%files -n black
%license LICENSE
%doc README.md
%{_bindir}/black
%{_bindir}/black-%{python3_version}
%{_bindir}/blackd
%{_bindir}/blackd-%{python3_version}
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/black-%{version}.dist-info/*
%{python3_sitelib}/_black_version.py
%{python3_sitelib}/black/*
%{python3_sitelib}/blackd/*
%{python3_sitelib}/blib2to3/*
%changelog
* Wed Jul 5 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 23.3.0-3
- Change the software packaging name to "python3 black"
* Mon Jun 26 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 23.3.0-2
- add dependency of python-hatch-fancy-pypi-readme
* Wed Jun 7 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 23.3.0-1
- fix issue:add package python-black of version 23.3.0 to warehouse of src-openEuler