File python-openqa_review.spec of Package python-openqa_review

#
# spec file for package python-openqa_review
#
# Copyright (c) 2017 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/
#


%define         short_name openqa_review
Name:           python-%{short_name}
Version:        1.6.4
Release:        0
Summary:        A review helper script for openQA
License:        MIT
Group:          Development/Languages/Python
Source:         https://github.com/okurz/%{short_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Url:            https://github.com/okurz/%{short_name}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-setuptools
Requires:       python-PyYAML
Requires:       python-beautifulsoup4
Requires:       python-certifi
Requires:       python-configparser
# workaround because of python-configparser not providing the '__init__.py'
# file within site-packages/backports
Requires:       python-backports.ssl_match_hostname
Requires:       python-future
Requires:       python-humanfriendly
Requires:       python-pika
Requires:       python-requests
Requires:       python-setuptools
Requires:       python-sortedcontainers
BuildArch:      noarch

%description
A review helper script for openQA. For more details look into the README file.

%prep
%setup -q -n %{short_name}-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm %{buildroot}/%{python_sitelib}/version.*

%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%{python_sitelib}
%attr(755, -, -) %{_bindir}/openqa-review
%attr(755, -, -) %{_bindir}/openqa-review-sles-ha
%attr(755, -, -) %{_bindir}/openqa-review-daily-email
%attr(755, -, -) %{_bindir}/tumblesle-release

%changelog
openSUSE Build Service is sponsored by