%global upstream_version 1.2
Name: rpmdeplint
Version: 1.2
Release: 1%{?dist}
Summary: Tool to find errors in RPM packages in the context of their dependency graph
License: GPLv2+
URL: https://pypi.python.org/pypi/rpmdeplint
Source0: https://files.pythonhosted.org/packages/source/r/%{name}/%{name}-%{upstream_version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-sphinx
BuildRequires: pytest
BuildRequires: python-rpmfluff
BuildRequires: python-six
BuildRequires: rpm-python
BuildRequires: python-hawkey
BuildRequires: python-librepo
Requires: python-six
Requires: rpm-python
Requires: python-hawkey
Requires: python-librepo
%description
Rpmdeplint is a tool to find errors in RPM packages in the context of their
dependency graph.
%prep
%setup -q -n %{name}-%{upstream_version}
rm -r rpmdeplint.egg-info
%build
%py2_build
%install
%py2_install
%check
py.test rpmdeplint
# Acceptance tests do not work in mock because they require .i686 packages.
%files
%license COPYING
%doc README.rst
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{python2_sitelib}/%{name}
%{python2_sitelib}/%{name}*.egg-info
%changelog
* Mon Oct 17 2016 Dan Callaghan <dcallagh@redhat.com> - 1.2-1
- initial version