File rpmlint.spec of Package rpmlint

#
# spec file for package rpmlint
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           rpmlint
Version:        2.0+git20200702.cb9e34e
Release:        0
Summary:        RPM file correctness checker
License:        GPL-2.0-or-later
URL:            https://github.com/rpm-software-management/rpmlint
Source0:        rpmlint-%{version}.tar.xz
Source2:        config
Source11:       pie.config
Source12:       licenses.config
BuildRequires:  appstream-glib
BuildRequires:  binutils
BuildRequires:  checkbashisms
BuildRequires:  dash
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  myspell-cs_CZ
BuildRequires:  myspell-en_US
BuildRequires:  python-rpm-macros
BuildRequires:  python3-magic
BuildRequires:  python3-pybeam
BuildRequires:  python3-pyenchant
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-cov
BuildRequires:  python3-pytest-flake8
BuildRequires:  python3-pytest-runner
BuildRequires:  python3-pytest-xdist
BuildRequires:  python3-rpm
BuildRequires:  python3-toml
BuildRequires:  python3-xdg
BuildRequires:  xz
#!BuildIgnore:  rpmlint-mini
Requires:       appstream-glib
Requires:       bash
Requires:       cpio
Requires:       desktop-file-utils
Requires:       file
Requires:       findutils
Requires:       myspell-en_US
Requires:       python3-magic
Requires:       python3-pybeam
Requires:       python3-pyenchant
Requires:       python3-rpm
Requires:       python3-toml
Requires:       python3-xdg
Requires:       python3-xml
BuildArch:      noarch

%description
rpmlint is a tool to check common errors on RPM packages. Binary and
source packages can be checked.

%prep
%autosetup -n rpmlint-%{version}

%build
%python3_build

%install
%python3_install
fdupes %{buildroot}%{python3_sitelib}

%check
python3 -m pytest

%files
%license COPYING
%doc README*
%{_bindir}/rpmlint
%{_bindir}/rpmdiff
%{python3_sitelib}/rpmlint*

%changelog