2020-03-31 14:40:30 +00:00
|
|
|
#
|
2020-03-31 15:04:59 +00:00
|
|
|
# spec file for package python-git-pw
|
2020-03-31 14:40:30 +00:00
|
|
|
#
|
2024-01-20 14:06:32 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-03-31 14:40:30 +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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-03-31 15:04:59 +00:00
|
|
|
%define modname git-pw
|
2020-07-29 06:51:55 +00:00
|
|
|
%define skip_python2 1
|
2020-03-31 15:04:59 +00:00
|
|
|
Name: python-git-pw
|
2024-01-20 14:06:32 +00:00
|
|
|
Version: 2.6.0
|
2020-03-31 14:40:30 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A tool for integrating Git with Patchwork
|
|
|
|
License: MIT
|
2020-03-31 15:04:59 +00:00
|
|
|
URL: https://github.com/getpatchwork/git-pw
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz
|
2020-03-31 16:38:52 +00:00
|
|
|
BuildArch: noarch
|
2020-03-31 14:40:30 +00:00
|
|
|
BuildRequires: %{python_module arrow >= 0.10}
|
|
|
|
BuildRequires: %{python_module click >= 6.0}
|
|
|
|
BuildRequires: %{python_module pbr}
|
2022-05-06 12:07:11 +00:00
|
|
|
BuildRequires: %{python_module pyaml >= 5.1}
|
2020-03-31 14:40:30 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 3.0}
|
|
|
|
BuildRequires: %{python_module requests > 2.0}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module tabulate >= 0.8}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: git-core
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: git-core
|
|
|
|
Requires: python-arrow >= 0.10
|
|
|
|
Requires: python-click >= 6.0
|
2022-05-06 12:07:11 +00:00
|
|
|
Requires: python-pyaml >= 5.1
|
2020-03-31 14:40:30 +00:00
|
|
|
Requires: python-requests > 2.0
|
|
|
|
Requires: python-tabulate >= 0.8
|
2020-03-31 15:04:59 +00:00
|
|
|
Provides: %{modname} = %{version}
|
|
|
|
Obsoletes: %{modname} < %{version}
|
2022-05-06 12:07:11 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun):update-alternatives
|
2020-03-31 14:40:30 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
git-pw is a tool for integrating Git with Patchwork, the web-based patch
|
|
|
|
tracking system.
|
|
|
|
|
|
|
|
%prep
|
2023-04-03 10:43:08 +00:00
|
|
|
%autosetup -p1 -n %{modname}-%{version}
|
2020-03-31 14:40:30 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2020-03-31 15:04:59 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/git-pw
|
2020-03-31 14:40:30 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
export LC_ALL=en_US.UTF-8
|
2020-03-31 16:43:21 +00:00
|
|
|
%pytest
|
2020-03-31 15:04:59 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative git-pw
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative git-pw
|
2020-03-31 14:40:30 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2020-03-31 15:04:59 +00:00
|
|
|
%python_alternative %{_bindir}/git-pw
|
2020-03-31 14:40:30 +00:00
|
|
|
%{python_sitelib}/git_pw
|
|
|
|
%{python_sitelib}/git_pw-%{version}-py%{python_version}.egg-info
|
|
|
|
|
|
|
|
%changelog
|