Stephan Kulow 2019-03-10 08:36:26 +00:00 committed by Git OBS Bridge
parent f72316c6c0
commit 21f1ae8583
2 changed files with 44 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 7 13:00:12 UTC 2019 - Michal Rostecki <mrostecki@opensuse.org>
- Add soname to all *.so* files.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 28 15:11:56 UTC 2019 - Michał Rostecki <mrostecki@opensuse.org> Thu Feb 28 15:11:56 UTC 2019 - Michał Rostecki <mrostecki@opensuse.org>

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
@ -41,6 +41,7 @@ Source3: https://github.com/google/benchmark/archive/16703ff83c1ae6d53e51
BuildRequires: bazel BuildRequires: bazel
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: gtest BuildRequires: gtest
BuildRequires: patchelf
%description %description
Abseil is a collection of C++11 libraries which augment the C++ Abseil is a collection of C++11 libraries which augment the C++
@ -85,9 +86,6 @@ bazel build \
bazel shutdown bazel shutdown
%install %install
ls
ls bazel-bin/
ls bazel-bin/*
install -D -m0755 %{build_folder}/libabsl_Sbase_Slibbase.so %{buildroot}%{_libdir}/libabsl_base_libbase.so.%{sover} install -D -m0755 %{build_folder}/libabsl_Sbase_Slibbase.so %{buildroot}%{_libdir}/libabsl_base_libbase.so.%{sover}
install -D -m0755 %{build_folder}/libabsl_Sbase_Slibdynamic_Uannotations.so %{buildroot}%{_libdir}/libabsl_base_libdynamic_annotations.so.%{sover} install -D -m0755 %{build_folder}/libabsl_Sbase_Slibdynamic_Uannotations.so %{buildroot}%{_libdir}/libabsl_base_libdynamic_annotations.so.%{sover}
install -D -m0755 %{build_folder}/libabsl_Sbase_Slibexception_Usafety_Utesting.so %{buildroot}%{_libdir}/libabsl_base_libexception_safety_testing.so.%{sover} install -D -m0755 %{build_folder}/libabsl_Sbase_Slibexception_Usafety_Utesting.so %{buildroot}%{_libdir}/libabsl_base_libexception_safety_testing.so.%{sover}
@ -123,6 +121,43 @@ install -D -m0755 %{build_folder}/libabsl_Stypes_Slibbad_Uany_Ucast_Uimpl.so %{b
install -D -m0755 %{build_folder}/libabsl_Stypes_Slibbad_Uoptional_Uaccess.so %{buildroot}%{_libdir}/libabsl_types_libbad_optional_access.so.%{sover} install -D -m0755 %{build_folder}/libabsl_Stypes_Slibbad_Uoptional_Uaccess.so %{buildroot}%{_libdir}/libabsl_types_libbad_optional_access.so.%{sover}
install -D -m0755 %{build_folder}/libabsl_Stypes_Slibbad_Uvariant_Uaccess.so %{buildroot}%{_libdir}/libabsl_types_libbad_variant_access.so.%{sover} install -D -m0755 %{build_folder}/libabsl_Stypes_Slibbad_Uvariant_Uaccess.so %{buildroot}%{_libdir}/libabsl_types_libbad_variant_access.so.%{sover}
install -D -m0755 %{build_folder}/libabsl_Stypes_Sliboptional.so %{buildroot}%{_libdir}/libabsl_types_liboptional.so.%{sover} install -D -m0755 %{build_folder}/libabsl_Stypes_Sliboptional.so %{buildroot}%{_libdir}/libabsl_types_liboptional.so.%{sover}
# We can't patchelf libraries in the build step, because bazel saves the build
# output in protected read-only directory.
patchelf --set-soname libabsl_base_libbase.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libbase.so.%{sover}
patchelf --set-soname libabsl_base_libdynamic_annotations.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libdynamic_annotations.so.%{sover}
patchelf --set-soname libabsl_base_libexception_safety_testing.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libexception_safety_testing.so.%{sover}
patchelf --set-soname libabsl_base_libmalloc_internal.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libmalloc_internal.so.%{sover}
patchelf --set-soname libabsl_base_libspinlock_wait.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libspinlock_wait.so.%{sover}
patchelf --set-soname libabsl_base_libthrow_delegate.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libthrow_delegate.so.%{sover}
patchelf --set-soname libabsl_container_libhash_generator_testing.so.%{sover} %{buildroot}%{_libdir}/libabsl_container_libhash_generator_testing.so.%{sover}
patchelf --set-soname libabsl_container_libraw_hash_set.so.%{sover} %{buildroot}%{_libdir}/libabsl_container_libraw_hash_set.so.%{sover}
patchelf --set-soname libabsl_container_libtest_instance_tracker.so.%{sover} %{buildroot}%{_libdir}/libabsl_container_libtest_instance_tracker.so.%{sover}
patchelf --set-soname libabsl_debugging_libdebugging_internal.so.%{sover} %{buildroot}%{_libdir}/libabsl_debugging_libdebugging_internal.so.%{sover}
patchelf --set-soname libabsl_debugging_libdemangle_internal.so.%{sover} %{buildroot}%{_libdir}/libabsl_debugging_libdemangle_internal.so.%{sover}
patchelf --set-soname libabsl_debugging_libexamine_stack.so.%{sover} %{buildroot}%{_libdir}/libabsl_debugging_libexamine_stack.so.%{sover}
patchelf --set-soname libabsl_debugging_libfailure_signal_handler.so.%{sover} %{buildroot}%{_libdir}/libabsl_debugging_libfailure_signal_handler.so.%{sover}
patchelf --set-soname libabsl_debugging_libleak_check_api_disabled_for_testing.so.%{sover} %{buildroot}%{_libdir}/libabsl_debugging_libleak_check_api_disabled_for_testing.so.%{sover}
patchelf --set-soname libabsl_debugging_libleak_check_api_enabled_for_testing.so.%{sover} %{buildroot}%{_libdir}/libabsl_debugging_libleak_check_api_enabled_for_testing.so.%{sover}
patchelf --set-soname libabsl_debugging_libstacktrace.so.%{sover} %{buildroot}%{_libdir}/libabsl_debugging_libstacktrace.so.%{sover}
patchelf --set-soname libabsl_debugging_libstack_consumption.so.%{sover} %{buildroot}%{_libdir}/libabsl_debugging_libstack_consumption.so.%{sover}
patchelf --set-soname libabsl_debugging_libsymbolize.so.%{sover} %{buildroot}%{_libdir}/libabsl_debugging_libsymbolize.so.%{sover}
patchelf --set-soname libabsl_hash_libcity.so.%{sover} %{buildroot}%{_libdir}/libabsl_hash_libcity.so.%{sover}
patchelf --set-soname libabsl_hash_libhash.so.%{sover} %{buildroot}%{_libdir}/libabsl_hash_libhash.so.%{sover}
patchelf --set-soname libabsl_numeric_libint128.so.%{sover} %{buildroot}%{_libdir}/libabsl_numeric_libint128.so.%{sover}
patchelf --set-soname libabsl_strings_libinternal.so.%{sover} %{buildroot}%{_libdir}/libabsl_strings_libinternal.so.%{sover}
patchelf --set-soname libabsl_strings_libstrings.so.%{sover} %{buildroot}%{_libdir}/libabsl_strings_libstrings.so.%{sover}
patchelf --set-soname libabsl_strings_libstr_format_internal.so.%{sover} %{buildroot}%{_libdir}/libabsl_strings_libstr_format_internal.so.%{sover}
patchelf --set-soname libabsl_synchronization_libgraphcycles_internal.so.%{sover} %{buildroot}%{_libdir}/libabsl_synchronization_libgraphcycles_internal.so.%{sover}
patchelf --set-soname libabsl_synchronization_libper_thread_sem_test_common.so.%{sover} %{buildroot}%{_libdir}/libabsl_synchronization_libper_thread_sem_test_common.so.%{sover}
patchelf --set-soname libabsl_synchronization_libsynchronization.so.%{sover} %{buildroot}%{_libdir}/libabsl_synchronization_libsynchronization.so.%{sover}
patchelf --set-soname libabsl_time_internal_cctz_libcivil_time.so.%{sover} %{buildroot}%{_libdir}/libabsl_time_internal_cctz_libcivil_time.so.%{sover}
patchelf --set-soname libabsl_time_internal_cctz_libtime_zone.so.%{sover} %{buildroot}%{_libdir}/libabsl_time_internal_cctz_libtime_zone.so.%{sover}
patchelf --set-soname libabsl_time_libtest_util.so.%{sover} %{buildroot}%{_libdir}/libabsl_time_libtest_util.so.%{sover}
patchelf --set-soname libabsl_time_libtime.so.%{sover} %{buildroot}%{_libdir}/libabsl_time_libtime.so.%{sover}
patchelf --set-soname libabsl_types_libbad_any_cast_impl.so.%{sover} %{buildroot}%{_libdir}/libabsl_types_libbad_any_cast_impl.so.%{sover}
patchelf --set-soname libabsl_types_libbad_optional_access.so.%{sover} %{buildroot}%{_libdir}/libabsl_types_libbad_optional_access.so.%{sover}
patchelf --set-soname libabsl_types_libbad_variant_access.so.%{sover} %{buildroot}%{_libdir}/libabsl_types_libbad_variant_access.so.%{sover}
patchelf --set-soname libabsl_types_liboptional.so.%{sover} %{buildroot}%{_libdir}/libabsl_types_liboptional.so.%{sover}
ln -sf libabsl_base_libbase.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libbase.so ln -sf libabsl_base_libbase.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libbase.so
ln -sf libabsl_base_libdynamic_annotations.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libdynamic_annotations.so ln -sf libabsl_base_libdynamic_annotations.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libdynamic_annotations.so
ln -sf libabsl_base_libexception_safety_testing.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libexception_safety_testing.so ln -sf libabsl_base_libexception_safety_testing.so.%{sover} %{buildroot}%{_libdir}/libabsl_base_libexception_safety_testing.so