From 0f3e05c4b609f93c777597546a918998d9c0eddc7a2e661b5050865124915600 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 3 Jun 2024 19:35:44 +0000 Subject: [PATCH] - Actually, make buildable on Leap (remove unnecessary dependency on a package which is not in Leap). - Add python3_fix_shebang_path treatment (bsc#1212476) OBS-URL: https://build.opensuse.org/package/show/Education/epy?expand=0&rev=22 --- epy.changes | 7 +++++++ epy.spec | 30 +++++++++++++----------------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/epy.changes b/epy.changes index caeb49e..b8ccae7 100644 --- a/epy.changes +++ b/epy.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jun 3 19:28:09 UTC 2024 - Matej Cepl + +- Actually, make buildable on Leap (remove unnecessary dependency + on a package which is not in Leap). +- Add python3_fix_shebang_path treatment (bsc#1212476) + ------------------------------------------------------------------- Wed Jan 10 17:23:31 UTC 2024 - Michal Suchanek diff --git a/epy.spec b/epy.spec index c4fdeb8..05ae00b 100644 --- a/epy.spec +++ b/epy.spec @@ -16,8 +16,6 @@ # -%global pythons python311 -%{?sle15_python_module_pythons} Name: epy Version: 2022.12.11+git.1675870044.c7a87f3 Release: 0 @@ -26,16 +24,14 @@ License: GPL-3.0-only 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: 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: python311-curses +BuildRequires: python311-pip +BuildRequires: python311-poetry-core +BuildRequires: python311-pytest +BuildRequires: python311-setuptools +BuildRequires: python311-wheel Requires: python311-curses -Requires: python311-mobi Suggests: dictd Suggests: mimic Suggests: sdcv @@ -68,23 +64,23 @@ find . -name \*.py -print0 | while IFS= read -r -d $'\0' script; do done %build -python3.11 -mpip wheel --no-deps --disable-pip-version-check --use-pep517 \ - --no-build-isolation --progress-bar off --verbose . -w build/ +%python311_pyproject_wheel %install -python3.11 -mpip install --root %{buildroot} --no-warn-script-location \ - --disable-pip-version-check --no-compile --no-deps --progress-bar off \ - build/epy_reader-*-py3-none-any.whl +%python311_pyproject_install +%fdupes %{buildroot}/%{python311_sitelib} +%python311_fix_shebang %check export PYTHONDONTWRITEBYTECODE=1 export PYTHONPATH=%{buildroot}/%{python311_sitelib} -python3.11 -m pytest -v tests +pytest-3.11 -v tests %files %doc README.md %license LICENSE %{_bindir}/epy -%{python311_sitelib}/* +%{python311_sitelib}/epy_reader-2023.2.8.dist-info +%{python311_sitelib}/epy_reader %changelog