From bc4b66f0e0634184c966803ddfa40badcc7ddfb7 Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Oct 25 2023 11:43:10 +0000 Subject: fix: drop i686, add extras package, remove test files (fixes rh#2236184) --- diff --git a/python-fslpy.spec b/python-fslpy.spec index 0fe6f8c..fc2adff 100644 --- a/python-fslpy.spec +++ b/python-fslpy.spec @@ -22,6 +22,10 @@ URL: %forgeurl Source0: %forgesource BuildArch: noarch +# fsleyes dropped it already, so this is a leaf package +# F40+ +ExcludeArch: %{ix86} + BuildRequires: python3-devel BuildRequires: help2man @@ -41,6 +45,7 @@ Summary: %{summary} %description -n python3-fslpy %{desc} +%pyproject_extras_subpkg -n python3-fslpy extra %prep %forgesetup @@ -68,7 +73,8 @@ find . -type f -name "*.py" -exec sed -i 's/#![ ]*\/usr\/bin\/env python$/#!\/u %pyproject_save_files fsl # Remove test packages that are installed in site packages -rm -rfv %{buildroot}/%{python3_sitelib}/tests/ +rm -rvf %{buildroot}%{python3_sitelib}/fsl/tests +sed -r -i '/\bfsl\/tests\b/d' %{pyproject_files} # generate man pages # imglob does not have a --help