Replace Python version glob with macro (needed for Python 3.10+)
See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PQIGCQCRNBYNXBX2ICWEM3PLDLNOG2ZT/ Co-authored-by: Tomas Hrnciar <thrnciar@redhat.com>
This commit is contained in:
parent
af35a08bb3
commit
6931baf749
@ -122,7 +122,7 @@ rm -f $RPM_BUILD_ROOT/%{_lib}/libaudit.a
|
||||
rm -f $RPM_BUILD_ROOT/%{_lib}/libauparse.a
|
||||
|
||||
find $RPM_BUILD_ROOT -name '*.la' -delete
|
||||
find $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages -name '*.a' -delete
|
||||
find $RPM_BUILD_ROOT/%{_libdir}/python%{python3_version}/site-packages -name '*.a' -delete
|
||||
|
||||
# Move the pkgconfig file
|
||||
mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}
|
||||
|
Loading…
Reference in New Issue
Block a user