https://bugzilla.redhat.com/show_bug.cgi?id=2262694



--- Comment #22 from Luya Tshimbalanga <[email protected]> ---
(In reply to Carlos Rodriguez-Fernandez from comment #19)
> Thank you Luya for all the updates. That is a lot of work to get upstream
> cmake install to conform to FHS!
> 

It is. In a future, I will need help to translate the fix in cmake codes then
submit to upstream.


> I tested the new src.rpm, and unfortunately, those paths are still being
> installed:
> "/usr/lib64/python3.12/site-packages/MaterialX/usr/share/materialx"
> 

Fixed by manually removing it.
'''
mkdir -p %{buildroot}%{python3_sitearch}
rm -rf %{buildroot}%{_prefix}/python/MaterialX/%{_prefix} 
mv %{buildroot}%{_prefix}/python/MaterialX %{buildroot}%{python3_sitearch}
'''


> 
> Another thing is that the `tools` subpackage does depend on
> `python3-%{name}` package because those /usr/bin/*.py files do import all
> the PyMaterialX modules. So, it will need this instead (which in itself,
> will bring the top level package lib as well):
> ```
> Requires:       python3-%{name}%{?_isa} = %{version}-%{release}
> ```
> 
> And, since that package is only built with the python flag, the `tools`
> package will also need to be wrapped with it as well "%if %{with python}".

Fixed.

Here is the update:
SPEC:
https://download.copr.fedorainfracloud.org/results/@designsuite/blender/fedora-rawhide-x86_64/07012117-materialx/materialx.spec
SRPM:
https://download.copr.fedorainfracloud.org/results/@designsuite/blender/fedora-rawhide-x86_64/07012117-materialx/materialx-1.38.8-1.fc40.src.rpm


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2262694

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202262694%23c22
--
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to