forked from pool/python-jirafs
- Add missing BuildRequires on Pillow for tests.
- Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jirafs?expand=0&rev=25
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 24 01:32:26 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add missing BuildRequires on Pillow for tests.
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 12 02:16:58 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
Fri Jan 12 02:16:58 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ URL: https://github.com/coddingtonbear/jirafs
|
|||||||
Source: https://github.com/coddingtonbear/jirafs/archive/refs/tags/%{version}.tar.gz#/jirafs-%{version}.tar.gz
|
Source: https://github.com/coddingtonbear/jirafs/archive/refs/tags/%{version}.tar.gz#/jirafs-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM gh#coddingtonbear/jirafs#70
|
# PATCH-FIX-UPSTREAM gh#coddingtonbear/jirafs#70
|
||||||
Patch0: remove-mock.patch
|
Patch0: remove-mock.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: git-core
|
Requires: git-core
|
||||||
@@ -42,6 +44,7 @@ Suggests: python-ipdb
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module Jinja2 >= 2.10.3}
|
BuildRequires: %{python_module Jinja2 >= 2.10.3}
|
||||||
|
BuildRequires: %{python_module Pillow}
|
||||||
BuildRequires: %{python_module PrettyTable >= 0.7.2}
|
BuildRequires: %{python_module PrettyTable >= 0.7.2}
|
||||||
BuildRequires: %{python_module behave}
|
BuildRequires: %{python_module behave}
|
||||||
BuildRequires: %{python_module blessings >= 1.5.1}
|
BuildRequires: %{python_module blessings >= 1.5.1}
|
||||||
@@ -70,10 +73,10 @@ sed -i 's/,<[0-9.][0-9.]*//' requirements.txt
|
|||||||
rm jirafs/.pre-commit-config.yaml
|
rm jirafs/.pre-commit-config.yaml
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%python_clone -a %{buildroot}%{_bindir}/jirafs
|
%python_clone -a %{buildroot}%{_bindir}/jirafs
|
||||||
|
|
||||||
@@ -91,6 +94,6 @@ git config --global user.email johndoe@example.com
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%python_alternative %{_bindir}/jirafs
|
%python_alternative %{_bindir}/jirafs
|
||||||
%{python_sitelib}/jirafs
|
%{python_sitelib}/jirafs
|
||||||
%{python_sitelib}/jirafs-%{version}*info
|
%{python_sitelib}/jirafs-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user