1
1

Merge pull request #7811 from zhngaj/remove-la

openmpi.spec: Remove libtool archive files in packaging
Этот коммит содержится в:
Jeff Squyres 2020-06-12 11:02:32 -04:00 коммит произвёл GitHub
родитель 3accffcb6e 9f385a0c9f
Коммит 4e59d97ac7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

16
contrib/dist/linux/openmpi.spec поставляемый
Просмотреть файл

@ -150,6 +150,10 @@
%global _binary_filedigest_algorithm 1
%global _source_filedigest_algorithm 1
# Define this to 1 if you want to keep libtool achive files
# Default is 0 (remove *.la files)
# type: bool (0/1)
%{!?install_libtool_archive: %define install_libtool_archive 0}
#############################################################################
#
# Configuration Logic
@ -478,6 +482,18 @@ export CFLAGS CXXFLAGS FCFLAGS
# We don't need that in an RPM.
find $RPM_BUILD_ROOT -name config.log -exec rm -f {} \;
%if !%{install_libtool_archive}
# Libtool archive files (.la files) create an unnecessary dependency
# between linked applications and the development versions of packages
# upon which Open MPI depends. For example, when building an application
# which uses Libtool, Open MPI would create a dependency not just on
# the HWLOC libs package, but the HWLOC devel package
# (to get the .so.1 -> .so symlink). Best practice in package builders
# appears to be to skip shipping .la files because of this issue.
find $RPM_BUILD_ROOT/%{_libdir} -name \*.la -exec rm -f {} \;
%endif
# End of libotool_archive if
# First, the [optional] modulefile
%if %{install_modulefile}