File python-jira.spec of Package python-jira
#
# spec file for package python-jira
#
# Copyright (c) 2016 SUSE LINUX Products 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/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-jira
Version: 3.8.0
Release: 0
License: BSD
Summary: Python interface to Atlassian JIRA issue tracker's REST API
Url: https://github.com/pycontribs/jira
Group: Development/Languages/Python
Source: jira-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module requests-oauthlib}
BuildRequires: %{python_module requests-jwt}
BuildRequires: %{python_module requests-kerberos}
BuildRequires: %{python_module requests-futures}
BuildRequires: %{python_module requests-toolbelt}
BuildRequires: %{python_module tlslite}
BuildRequires: %{python_module typing_extensions}
BuildRequires: %{python_module six}
BuildRequires: %{python_module defusedxml}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module Sphinx}
BuildRequires: fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires(post): update-alternatives
Requires(preun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
Python interface to Atlassian JIRA issue tracker's REST API
%prep
%setup -q -n jira-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/jirashell
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative jirashell
%postun
%python_uninstall_alternative jirashell
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS.rst README.rst RELEASE.md
%license LICENSE
%{python_sitelib}/*
%python_alternative %{_bindir}/jirashell
%changelog