Accepting request 1138491 from home:michals

- Make buildable on Leap.

OBS-URL: https://build.opensuse.org/request/show/1138491
OBS-URL: https://build.opensuse.org/package/show/Education/epy?expand=0&rev=20
This commit is contained in:
Matej Cepl 2024-01-13 22:10:49 +00:00 committed by Git OBS Bridge
parent e6d4ee24b8
commit 7855a92b9c
2 changed files with 22 additions and 15 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 10 17:23:31 UTC 2024 - Michal Suchanek <msuchanek@suse.com>
- Make buildable on Leap.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 20 11:43:07 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com> Wed Dec 20 11:43:07 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package epy # spec file for package epy
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,8 @@
# #
%global pythons python311
%{?sle15_python_module_pythons}
Name: epy Name: epy
Version: 2022.12.11+git.1675870044.c7a87f3 Version: 2022.12.11+git.1675870044.c7a87f3
Release: 0 Release: 0
@ -24,16 +26,16 @@ License: GPL-3.0-only
URL: https://github.com/wustho/epy URL: https://github.com/wustho/epy
# Source: https://files.pythonhosted.org/packages/source/e/epy-reader/epy-reader-%%{version}.tar.gz#/epy-%%{version}.tar.gz # Source: https://files.pythonhosted.org/packages/source/e/epy-reader/epy-reader-%%{version}.tar.gz#/epy-%%{version}.tar.gz
Source: epy-%{version}.tar.xz Source: epy-%{version}.tar.xz
BuildRequires: %{python_module curses}
BuildRequires: %{python_module mobi}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python3-curses Requires: python311-curses
BuildRequires: python3-mobi Requires: python311-mobi
BuildRequires: python3-pip
BuildRequires: python3-poetry-core
BuildRequires: python3-pytest
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
Requires: python3-curses
Requires: python3-mobi
Suggests: dictd Suggests: dictd
Suggests: mimic Suggests: mimic
Suggests: sdcv Suggests: sdcv
@ -66,23 +68,23 @@ find . -name \*.py -print0 | while IFS= read -r -d $'\0' script; do
done done
%build %build
python3 -mpip wheel --no-deps --disable-pip-version-check --use-pep517 \ python3.11 -mpip wheel --no-deps --disable-pip-version-check --use-pep517 \
--no-build-isolation --progress-bar off --verbose . -w build/ --no-build-isolation --progress-bar off --verbose . -w build/
%install %install
python3 -mpip install --root %{buildroot} --no-warn-script-location \ python3.11 -mpip install --root %{buildroot} --no-warn-script-location \
--disable-pip-version-check --no-compile --no-deps --progress-bar off \ --disable-pip-version-check --no-compile --no-deps --progress-bar off \
build/epy_reader-*-py3-none-any.whl build/epy_reader-*-py3-none-any.whl
%check %check
export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=%{buildroot}/%{python3_sitelib} export PYTHONPATH=%{buildroot}/%{python311_sitelib}
pytest -v tests python3.11 -m pytest -v tests
%files %files
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{_bindir}/epy %{_bindir}/epy
%{python3_sitelib}/* %{python311_sitelib}/*
%changelog %changelog