Prevent accidental soname bumps

"""
Shared libraries installed directly into %{_libdir}
SHOULD NOT be listed in the %files section of the spec by using a glob
in a way that conceals important parts of the file name (e.g. libfoo.so*),
since changes to the SONAME also result in a changed file name in most cases.

Otherwise, when the library bumps its SONAME as part of an update,
this change might remain unnoticed and cause problems like broken dependencies.
"""

https://docs.fedoraproject.org/en-US/packaging-guidelines/#_listing_shared_library_files
This commit is contained in:
Miro Hrončok 2022-12-22 23:31:09 +01:00
parent 48e8d8cc01
commit 16e2b5b790
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ rm -rf ${RPM_BUILD_ROOT}/%{_docdir}/%{name}-*/html/.doctrees
%files
%license COPYING.rst LICENSES/LGPL-2.1-or-later.txt
%{_libdir}/libcamera*.so.*
%{_libdir}/libcamera*.so.0.0.3
%files devel
%{_includedir}/%{name}/