Blame python-lsp-black.spec

10c332b
%global short_name lsp-black
10c332b
10c332b
%global _description %{expand:
10c332b
lsp-black is a python-lsp-server plugin that adds support to black
10c332b
autoformatter. This is forked from pyls-black to be compatible wth
10c332b
community maintained language-server (python-lsp-server).
10c332b
}
10c332b
10c332b
Name:           python-%{short_name}
fac8bb6
Version:        1.2.0
0939192
Release:        %autorelease
10c332b
Summary:        A python-lsp-server plugin that adds support to black autoformatter
10c332b
10c332b
License:        MIT
10c332b
URL:            https://github.com/python-lsp/%{name}
10c332b
Source0:        %{pypi_source}
10c332b
Source1:        LICENSE
10c332b
10c332b
BuildArch:      noarch
10c332b
10c332b
BuildRequires:  python3-devel
10c332b
BuildRequires:  pyproject-rpm-macros
10c332b
10c332b
%description %_description
10c332b
10c332b
%package -n     python3-%{short_name}
10c332b
Summary:        %{summary}
10c332b
10c332b
Supplements:    python3dist(python-lsp-server)
10c332b
10c332b
%description -n python3-%{short_name} %_description
10c332b
10c332b
%prep
10c332b
%autosetup -n %{name}-%{version}
10c332b
cp %{SOURCE1} LICENSE
10c332b
10c332b
%generate_buildrequires
10c332b
%pyproject_buildrequires -r
10c332b
10c332b
%build
10c332b
%pyproject_wheel
10c332b
10c332b
%install
10c332b
%pyproject_install
10c332b
10c332b
%pyproject_save_files pylsp_black
10c332b
10c332b
%files -n python3-%{short_name} -f %{pyproject_files}
10c332b
%license LICENSE
10c332b
%doc README.md
10c332b
10c332b
%changelog
0939192
%autochangelog