File codespell.spec of Package codespell

#
# spec file for package codespell
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Summary:        Checking misspelled words
License:        GPL-2.0
Group:          Development/Tools/Other
Name:           codespell
Version:        1.8.git31.gd4ba
Release:        0
Source0:        https://github.com/lucasdemarchi/codespell/releases/download/v%{version}/codespell-%{version}.tar.xz
Url:            https://github.com/lucasdemarchi/codespell
BuildRequires:  help2man
BuildRequires:  python3
BuildRequires:  xz
Requires:       python3
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Fix common misspellings in text files. It's designed primarily for checking
misspelled words in source code, but it can be used with other files as well.

%prep
%setup -q

%build
make \
	prefix=%{_prefix}

%install
make install DESTDIR=%{buildroot} \
	prefix=%{_prefix}

%check
make check

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING NEWS README.md TODO
%doc %{_mandir}/man1/codespell.1*
%{_bindir}/codespell
%dir %{_datadir}/codespell/
%{_datadir}/codespell/dictionary.txt
%{_datadir}/codespell/linux-kernel.exclude

%changelog
openSUSE Build Service is sponsored by