15
0
Files
python-copr-cli/python-copr-cli.spec
Matej Cepl d8be3c6681 Accepting request 1006272 from home:yarunachalam:branches:devel:languages:python
- Update to Version 1.103: 
  -The previous release brought several enhancements and fixes for the stats calculation mechanism but it wasn’t quite enough.
  -This release comes with some final follow-ups. We are hoping to start counting the RPM downloads shortly after.
  Minor UI improvements
  -In the project settings, the “Edit” button will now show only for enabled chroots
  -The build detail page now shows the build timeout value
  -If a build is a part of a batch, the detail page now shows a link for it
  -The user detail page now shows a link for the /user/repositories/
  Bugfixes
  #2294 - Show correct distribution images based on their OS family
  #2293, RHBZ 2081915 - Fixed copr-frontend FTBFS for F37/Rawhide
  RHBZ 2113156 - Fixed copr-keygen FTBFS for F37/Rawhide

OBS-URL: https://build.opensuse.org/request/show/1006272
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-copr-cli?expand=0&rev=5
2022-09-27 10:23:32 +00:00

82 lines
2.3 KiB
RPMSpec

#
# spec file for package python-copr-cli
#
# Copyright (c) 2022 SUSE LLC
#
# 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-copr-cli
Version: 1.103
Release: 0
Summary: Copr cli
License: GPL-2.0-or-later
URL: https://pagure.io/copr/copr
Source: https://files.pythonhosted.org/packages/source/c/copr-cli/copr-cli-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Jinja2
Requires: python-copr >= 1.116
Requires: python-filelock
Requires: python-future
Requires: python-humanize
Requires: python-requests-gssapi
Requires: python-responses
Requires: python-simplejson
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module copr >= 1.116}
BuildRequires: %{python_module filelock}
BuildRequires: %{python_module future}
BuildRequires: %{python_module humanize}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests-gssapi}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module simplejson}
# /SECTION
%python_subpackages
%description
CLI tool to run copr.
%prep
%setup -q -n copr-cli-%{version}
sed -i '1{/#!/d}' copr_cli/package_build_order.py
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/copr-cli
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative copr-cli
%postun
%python_uninstall_alternative copr-cli
%files %{python_files}
%license LICENSE
%python_alternative %{_bindir}/copr-cli
%{python_sitelib}/*
%changelog