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}
10c332b
Version:        1.0.0
c759dd6
Release:        3%{?dist}
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
c759dd6
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
c759dd6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c759dd6
10c332b
* Wed Jul 07 2021 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 1.0.0-2
10c332b
- Spec cleanup
10c332b
10c332b
* Mon Jul 05 2021 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 1.0.0-1
10c332b
- Initial package.