2019-02-13 14:16:48 +00:00
|
|
|
#
|
2019-03-25 11:44:44 +00:00
|
|
|
# spec file for package python-jirafs
|
2019-02-13 14:16:48 +00:00
|
|
|
#
|
2022-03-01 10:20:21 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-02-13 14:16:48 +00:00
|
|
|
#
|
|
|
|
|
# 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-%{**}}
|
2020-01-03 05:28:52 +00:00
|
|
|
%define skip_python2 1
|
2019-02-13 14:16:48 +00:00
|
|
|
Name: python-jirafs
|
2022-03-01 10:20:21 +00:00
|
|
|
Version: 2.3.0
|
2019-02-13 14:16:48 +00:00
|
|
|
Release: 0
|
2019-03-25 11:44:44 +00:00
|
|
|
Summary: Library for editing JIRA issues as local text files
|
2019-02-13 14:16:48 +00:00
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
URL: https://github.com/coddingtonbear/jirafs
|
2020-11-24 16:12:17 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/j/jirafs/jirafs-%{version}.tar.gz
|
2019-03-25 11:44:44 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-02-13 14:16:48 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-11-24 16:12:17 +00:00
|
|
|
Requires: git-core
|
|
|
|
|
Requires: python-Jinja2 >= 2.10.3
|
|
|
|
|
Requires: python-PrettyTable >= 0.7.2
|
|
|
|
|
Requires: python-blessings >= 1.5.1
|
|
|
|
|
Requires: python-environmental-override >= 0.1.2
|
2022-03-01 10:20:21 +00:00
|
|
|
Requires: python-jira >= 3.1.1
|
|
|
|
|
Requires: python-prettytable >= 0.7.2
|
2020-11-24 16:12:17 +00:00
|
|
|
Requires: python-python-dateutil >= 2.8.1
|
|
|
|
|
Requires: python-watchdog >= 0.9.0
|
|
|
|
|
Suggests: python-ipdb
|
2019-03-28 10:16:08 +00:00
|
|
|
BuildArch: noarch
|
2020-11-24 16:12:17 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module Jinja2 >= 2.10.3}
|
|
|
|
|
BuildRequires: %{python_module PrettyTable >= 0.7.2}
|
|
|
|
|
BuildRequires: %{python_module behave}
|
|
|
|
|
BuildRequires: %{python_module blessings >= 1.5.1}
|
|
|
|
|
BuildRequires: %{python_module environmental-override >= 0.1.2}
|
|
|
|
|
BuildRequires: %{python_module ipdb}
|
2022-03-01 10:20:21 +00:00
|
|
|
BuildRequires: %{python_module jira >= 3.1.1}
|
2020-11-24 16:12:17 +00:00
|
|
|
BuildRequires: %{python_module mock}
|
2022-03-01 10:20:21 +00:00
|
|
|
BuildRequires: %{python_module prettytable >= 0.7.2}
|
2020-11-24 16:12:17 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module python-dateutil >= 2.8.1}
|
|
|
|
|
BuildRequires: %{python_module watchdog >= 0.9.0}
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
# /SECTION
|
2021-01-28 04:15:19 +00:00
|
|
|
Requires(post): update-alternatives
|
2022-03-01 10:20:21 +00:00
|
|
|
Requires(postun):update-alternatives
|
2019-02-13 14:16:48 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2019-03-25 11:44:44 +00:00
|
|
|
This library lets the user stay out of JIRA by letting them edit JIRA
|
|
|
|
|
issues as a collection of text files using an interface inspired by
|
|
|
|
|
`git` and `hg`.
|
2019-02-13 14:16:48 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n jirafs-%{version}
|
2020-11-24 16:12:17 +00:00
|
|
|
# Remove upper pins
|
|
|
|
|
sed -i 's/,<[0-9.][0-9.]*//' requirements.txt
|
|
|
|
|
rm jirafs/.pre-commit-config.yaml
|
2019-02-13 14:16:48 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
2020-01-22 18:14:07 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2021-01-28 04:15:19 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/jirafs
|
2019-02-13 14:16:48 +00:00
|
|
|
|
|
|
|
|
%check
|
2020-11-24 16:12:17 +00:00
|
|
|
git config --global user.name "John Doe"
|
|
|
|
|
git config --global user.email johndoe@example.com
|
|
|
|
|
%pytest -rs
|
2019-02-13 14:16:48 +00:00
|
|
|
|
2021-01-28 04:15:19 +00:00
|
|
|
%post
|
|
|
|
|
%python_install_alternative jirafs
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative jirafs
|
|
|
|
|
|
2019-02-13 14:16:48 +00:00
|
|
|
%files %{python_files}
|
2021-01-28 04:15:19 +00:00
|
|
|
%python_alternative %{_bindir}/jirafs
|
2019-02-13 14:16:48 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|