## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Unsupported # https://github.com/google/cpu_features#support # https://bugzilla.redhat.com/show_bug.cgi?id=1997167 ExcludeArch: s390x Name: google-cpu_features Version: 0.7.0 Release: %autorelease 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-%{version}.tar.gz Patch0: google-cpu_features-unbundle_gtest.patch Patch1: google-cpu_features-create_soname.patch Patch2: google-cpu_features-compile_tests_with_C++14.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.7 \ -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.7 %{_libdir}/libcpu_features.so.0 %files devel %{_libdir}/libcpu_features.so %{_includedir}/cpu_features/ %{_libdir}/cmake/CpuFeatures/ %changelog * Thu Jul 20 2023 Fedora Release Engineering - 0.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Apr 02 2023 Antonio Trande - 0.7.0-3 - Release 0.7.0| Compile with C++14 * Sun Apr 02 2023 Antonio Trande - 0.7.0-2 - Release 0.7.0| Update Patch1 * Sun Apr 02 2023 Antonio Trande - 0.7.0-1 - Release 0.7.0 * Thu Jan 19 2023 Fedora Release Engineering - 0.6.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0.6.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Aug 24 2021 Benjamin A. Beasley - 0.6.0-3 - Add RHBZ link for ExcludeArch * Thu Jul 22 2021 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Mar 17 2021 Antonio Trande <3974791-anto.trande@users.noreply.gitlab.com> - 0.6.0-1 - First commit