- 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
This commit is contained in:
Matej Cepl 2024-06-03 19:35:44 +00:00 committed by Git OBS Bridge
parent 7855a92b9c
commit 0f3e05c4b6
2 changed files with 20 additions and 17 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jun 3 19:28:09 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- 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 <msuchanek@suse.com> Wed Jan 10 17:23:31 UTC 2024 - Michal Suchanek <msuchanek@suse.com>

View File

@ -16,8 +16,6 @@
# #
%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
@ -26,16 +24,14 @@ 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: python311-curses
BuildRequires: python311-pip
BuildRequires: python311-poetry-core
BuildRequires: python311-pytest
BuildRequires: python311-setuptools
BuildRequires: python311-wheel
Requires: python311-curses Requires: python311-curses
Requires: python311-mobi
Suggests: dictd Suggests: dictd
Suggests: mimic Suggests: mimic
Suggests: sdcv Suggests: sdcv
@ -68,23 +64,23 @@ find . -name \*.py -print0 | while IFS= read -r -d $'\0' script; do
done done
%build %build
python3.11 -mpip wheel --no-deps --disable-pip-version-check --use-pep517 \ %python311_pyproject_wheel
--no-build-isolation --progress-bar off --verbose . -w build/
%install %install
python3.11 -mpip install --root %{buildroot} --no-warn-script-location \ %python311_pyproject_install
--disable-pip-version-check --no-compile --no-deps --progress-bar off \ %fdupes %{buildroot}/%{python311_sitelib}
build/epy_reader-*-py3-none-any.whl %python311_fix_shebang
%check %check
export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=%{buildroot}/%{python311_sitelib} export PYTHONPATH=%{buildroot}/%{python311_sitelib}
python3.11 -m pytest -v tests pytest-3.11 -v tests
%files %files
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{_bindir}/epy %{_bindir}/epy
%{python311_sitelib}/* %{python311_sitelib}/epy_reader-2023.2.8.dist-info
%{python311_sitelib}/epy_reader
%changelog %changelog