The package rpms/google-cpu_features.git has added or updated architecture specific
content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/google-cpu_features.git/commit/?i....
Change:
+ExcludeArch: s390x
Thanks.
Full change:
============
commit ebcc0174565ecb6b2931a694a5474d4f93f88f30
Author: Antonio Trande <3974791-anto.trande(a)users.noreply.gitlab.com>
Date: Wed Mar 17 18:58:59 2021 +0100
First commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a274f2a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/cpu_features-0.6.0.tar.gz
diff --git a/google-cpu_features-create_soname.patch
b/google-cpu_features-create_soname.patch
new file mode 100644
index 0000000..f54a530
--- /dev/null
+++ b/google-cpu_features-create_soname.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.orig.txt 2021-02-26 22:26:45.246246073 +0100
++++ b/CMakeLists.txt 2021-02-26 22:26:09.153781594 +0100
+@@ -139,7 +139,7 @@
+ list(APPEND CPU_FEATURES_SRCS $<TARGET_OBJECTS:unix_based_hardware_detection>)
+ endif()
+ add_library(cpu_features ${CPU_FEATURES_HDRS} ${CPU_FEATURES_SRCS})
+-set_target_properties(cpu_features PROPERTIES PUBLIC_HEADER
"${CPU_FEATURES_HDRS}")
++set_target_properties(cpu_features PROPERTIES PUBLIC_HEADER
"${CPU_FEATURES_HDRS}" SOVERSION "${CPUFEATURES_VERSION_MAJOR}"
VERSION "${CPUFEATURES_VERSION}")
+ setup_include_and_definitions(cpu_features)
+ target_link_libraries(cpu_features PUBLIC ${CMAKE_DL_LIBS})
+ set_property(TARGET cpu_features PROPERTY POSITION_INDEPENDENT_CODE ${BUILD_PIC})
diff --git a/google-cpu_features-unbundle_gtest.patch
b/google-cpu_features-unbundle_gtest.patch
new file mode 100644
index 0000000..885d60c
--- /dev/null
+++ b/google-cpu_features-unbundle_gtest.patch
@@ -0,0 +1,43 @@
+--- a/CMakeLists.origin.txt 2020-10-15 11:09:51.000000000 +0200
++++ b/CMakeLists.txt 2021-02-26 21:58:41.234063535 +0100
+@@ -184,39 +184,7 @@
+ set(CMAKE_CXX_EXTENSIONS OFF) # prefer use of -std11 instead of -gnustd11
+
+ if(NOT TARGET gtest OR NOT TARGET gmock_main)
+- # Download and unpack googletest at configure time.
+- configure_file(
+- cmake/googletest.CMakeLists.txt.in
+- googletest-download/CMakeLists.txt
+- )
+-
+- execute_process(
+- COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
+- RESULT_VARIABLE result
+- WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download)
+-
+- if(result)
+- message(FATAL_ERROR "CMake step for googletest failed: ${result}")
+- endif()
+-
+- execute_process(
+- COMMAND ${CMAKE_COMMAND} --build .
+- RESULT_VARIABLE result
+- WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download)
+-
+- if(result)
+- message(FATAL_ERROR "Build step for googletest failed: ${result}")
+- endif()
+-
+- # Prevent overriding the parent project's compiler/linker settings on
+- # Windows.
+- set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
+-
+- # Add googletest directly to our build. This defines the gtest and
+- # gtest_main targets.
+- add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src
+- ${CMAKE_BINARY_DIR}/googletest-build
+- EXCLUDE_FROM_ALL)
++ find_package(GTest)
+ endif()
+
+ add_subdirectory(test)
diff --git a/google-cpu_features.spec b/google-cpu_features.spec
new file mode 100644
index 0000000..393b4d1
--- /dev/null
+++ b/google-cpu_features.spec
@@ -0,0 +1,67 @@
+# Unsupported
+#
https://github.com/google/cpu_features#support
+ExcludeArch: s390x
+
+Name: google-cpu_features
+Version: 0.6.0
+Release: 2%{?dist}
+Summary: A cross-platform C library to retrieve CPU features at runtime
+License: ASL 2.0
+URL:
https://github.com/google/cpu_features
+Source0:
https://github.com/google/cpu_features/archive/v%{version}/cpu_features-%...
+
+Patch0: google-cpu_features-unbundle_gtest.patch
+Patch1: google-cpu_features-create_soname.patch
+
+BuildRequires: cmake
+BuildRequires: gcc
+BuildRequires: gcc-c++
+Buildrequires: gmock-devel
+BuildRequires: gtest-devel
+BuildRequires: make
+
+%description
+A cross-platform C library to retrieve CPU features at runtime.
+
+%package devel
+Summary: %{name} headers and development-related files
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+%{name} headers and development-related files, CMake config files.
+
+%prep
+%autosetup -n cpu_features-%{version} -p1
+
+%build
+%cmake \
+ -DCMAKE_BUILD_TYPE:STRING=Release \
+ -DCPUFEATURES_VERSION_MAJOR:STRING=0 \
+ -DCPUFEATURES_VERSION:STRING=0.6 \
+ -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
+ -DBUILD_PIC:BOOL=ON -DBUILD_TESTING:BOOL=ON
+%cmake_build
+
+%install
+%cmake_install
+
+%check
+%ctest -- -VV
+
+%files
+%license LICENSE
+%doc README.md CONTRIBUTING.md
+%{_bindir}/list_cpu_features
+%{_libdir}/libcpu_features.so.0*
+
+%files devel
+%{_libdir}/libcpu_features.so
+%{_includedir}/cpu_features/
+%{_libdir}/cmake/CpuFeatures/
+
+%changelog
+* Wed Mar 17 2021 Antonio Trande <sagitter(a)fedoraproject.org> - 0.6.0-2
+- Follow some tips from reviewing
+
+* Fri Feb 26 2021 Antonio Trande <sagitter(a)fedoraproject.org> - 0.6.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..e040312
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (cpu_features-0.6.0.tar.gz) =
006a2e05253712cf605ecabccdda63dd9325445f8d145d5e2432c4342332e652f318810997321849be131082db435d88143020fdc85268fba204586cf37eef0d