forked from pool/python-jirafs
79 lines
2.5 KiB
RPMSpec
79 lines
2.5 KiB
RPMSpec
|
|
#
|
||
|
|
# spec file for package jirafs
|
||
|
|
#
|
||
|
|
# Copyright (c) 2019 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 https://bugs.opensuse.org/
|
||
|
|
#
|
||
|
|
|
||
|
|
|
||
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||
|
|
Name: python-jirafs
|
||
|
|
Version: 1.17.1
|
||
|
|
Release: 0
|
||
|
|
Summary: Edit Jira issues as text files locally
|
||
|
|
License: MIT
|
||
|
|
Group: Development/Languages/Python
|
||
|
|
URL: https://github.com/coddingtonbear/jirafs
|
||
|
|
Source: https://files.pythonhosted.org/packages/source/j/jirafs/jirafs-%{version}.tar.gz
|
||
|
|
Patch0: capitalization.patch
|
||
|
|
Patch1: verlib.patch
|
||
|
|
BuildRequires: %{python_module setuptools}
|
||
|
|
BuildRequires: %{python_module six}
|
||
|
|
BuildRequires: %{python_module environmental-override}
|
||
|
|
BuildRequires: %{python_module PrettyTable}
|
||
|
|
BuildRequires: %{python_module blessings}
|
||
|
|
BuildRequires: %{python_module jira}
|
||
|
|
# For testing
|
||
|
|
BuildRequires: %{python_module behave}
|
||
|
|
BuildRequires: %{python_module mock}
|
||
|
|
BuildRequires: %{python_module tox}
|
||
|
|
BuildRequires: fdupes
|
||
|
|
BuildRequires: python-rpm-macros
|
||
|
|
BuildArch: noarch
|
||
|
|
Requires: python-environmental-override
|
||
|
|
Requires: python-PrettyTable
|
||
|
|
Requires: python-blessings
|
||
|
|
Requires: python-jira
|
||
|
|
Requires: python-six
|
||
|
|
Requires: python-ipdb
|
||
|
|
%python_subpackages
|
||
|
|
|
||
|
|
%description
|
||
|
|
Pronounced like 'giraffes', but totally unrelated to wildlife, this
|
||
|
|
library lets you stay out of JIRA as much as possible by letting
|
||
|
|
you edit your JIRA issues as a collection of text files using an
|
||
|
|
interface inspired by ``git`` and ``hg``.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n jirafs-%{version}
|
||
|
|
%autopatch -p1
|
||
|
|
|
||
|
|
%build
|
||
|
|
%python_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
%python_install
|
||
|
|
%{python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
|
||
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
||
|
|
}
|
||
|
|
|
||
|
|
%check
|
||
|
|
# Tests fail gh#coddingtonbear/jirafs#50
|
||
|
|
%python_exec -munittest discover -v || /bin/true
|
||
|
|
|
||
|
|
%files %{python_files}
|
||
|
|
%python3_only %{_bindir}/jirafs
|
||
|
|
%{python_sitelib}/*
|
||
|
|
|
||
|
|
%changelog
|