Remove the unwanted *.la files before building the file list.

RPM version >= 4.17 deletes those files so we have to make sure that they are
not in the list.
This commit is contained in:
Volker Ruppert 2024-03-09 17:45:24 +01:00
parent 3fbf474b9d
commit f34df21662
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ including Linux, DOS, Windows 9X/NT/2000/XP or Windows 7.
# Build list of plugins on the fly (if any). This allows the
# spec file to support RPM building with or without plugins.
cd $RPM_BUILD_ROOT
# Remove the unwanted *.la files before building the list
find -name "*.la" -delete
find .%{_libdir} -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
$RPM_BUILD_DIR/file.list.%{pkg_name}
find .%{_libdir} -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \