[opensuse-python] Need help simplify %files section for python-hyperspy
Hello, I am trying to build python-hyperspy and hope to get it to factory. https://build.opensuse.org/package/show/home:andythe_great/python-hyperspy Currently, the %files section is massive as shown below. The reason I do this is because I need to mark the pycache_only files. (or not?) https://en.opensuse.org/openSUSE:Packaging_Python If I simply do %{python_sitearch}/%{packagename}/* %pycache_only %{python_sitearch}/%{packagename}/__pycache__/ %pycache_only %{python_sitearch}/%{packagename}/*/__pycache__/*.pyc %pycache_only %{python_sitearch}/%{packagename}/*/*/__pycache__/*.pyc It will cause file list twice warnings. So how can I simplify my %files section while marking pycache? Thanks Andy currently, it is: %files %{python_files} %doc README.rst AUTHORS.txt %license COPYING.txt %dir %{python_sitearch}/%{packagename}/ %dir %{python_sitearch}/%{packagename}/*/ %dir %{python_sitearch}/%{packagename}/*/*/ %dir %{python_sitearch}/%{packagename}/*/*/*/ %{python_sitearch}/%{packagename}-%{version}-py%{python_version}.egg-info/ %{python_sitearch}/%{packagename}/*.py %{python_sitearch}/%{packagename}/*/*.py %{python_sitearch}/%{packagename}/*/*/*.py %{python_sitearch}/%{packagename}/*.yaml %{python_sitearch}/%{packagename}/*/*/*/*.hdf5 %{python_sitearch}/%{packagename}/*/*.so %{python_sitearch}/%{packagename}/*/*/*/*.hspy %{python_sitearch}/%{packagename}/*/*/*.png %{python_sitearch}/%{packagename}/*/*/*/*.png %{python_sitearch}/%{packagename}/*/*/*/*.e* %{python_sitearch}/%{packagename}/*/*/*/*.ser %{python_sitearch}/%{packagename}/*/*/*/*.blo %{python_sitearch}/%{packagename}/*/*/*/*.bcf %{python_sitearch}/%{packagename}/*/*/*/*.dm* %{python_sitearch}/%{packagename}/*/*/*/*.csv %{python_sitearch}/%{packagename}/*/*/*/*.npy %{python_sitearch}/%{packagename}/*/*/*/*.r* %{python_sitearch}/%{packagename}/*/*/*/*.json %{python_sitearch}/%{packagename}/*/*/*/*.spx %{python_sitearch}/%{packagename}/*/*/*/*.dens %{python_sitearch}/%{packagename}/*/*/*/*.msa %{python_sitearch}/%{packagename}/*/*/*/*.tif %{python_sitearch}/%{packagename}/*/*/*/*.unf %{python_sitearch}/%{packagename}/*/*/*/*.zip %pycache_only %{python_sitearch}/%{packagename}/__pycache__/ %pycache_only %{python_sitearch}/%{packagename}/*/__pycache__/*.pyc %pycache_only %{python_sitearch}/%{packagename}/*/*/__pycache__/*.pyc -- To unsubscribe, e-mail: opensuse-python+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-python+owner@opensuse.org
participants (1)
-
andythe_great