]> git.pld-linux.org Git - packages/crc32c.git/commitdiff
- skip SSE4.2 test on not capable builders; release 2 master auto/th/crc32c-1.1.2-2
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 30 Jun 2022 14:24:01 +0000 (16:24 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 30 Jun 2022 14:24:01 +0000 (16:24 +0200)
crc32c.spec

index 8c751a315ee7a61b555de213f9291609d13a3039..071a47afd4cdd237bc0d260bb67f71605b693e2f 100644 (file)
@@ -6,7 +6,7 @@ Summary:        CRC32C library
 Summary(pl.UTF-8):     Biblioteka cyklicznego kodu nadmiarowego CRC32C
 Name:          crc32c
 Version:       1.1.2
-Release:       1
+Release:       2
 License:       BSD
 Group:         Libraries
 #Source0Download: https://github.com/google/crc32c/tags
@@ -16,6 +16,7 @@ Patch0:               %{name}-system-libs.patch
 URL:           https://github.com/google/crc32c
 BuildRequires: cmake >= 3.1
 BuildRequires: libstdc++-devel >= 6:4.7
+BuildRequires: sed >= 4.0
 %if %{with tests}
 # with cmake support
 BuildRequires: glog-devel >= 0.6
@@ -62,6 +63,11 @@ Pliki nagłówkowe biblioteki crc32c.
 %setup -q
 %patch0 -p1
 
+# crc32c_sse42_unittest is missing runtime detection of CPU capabilities
+if ! grep -q '^flags .* sse4_2' /proc/cpuinfo ; then
+       %{__sed} -i -e 's/if HAVE_SSE42 /if 0 /' src/crc32c_sse42_unittest.cc
+fi
+
 %build
 install -d build
 cd build
This page took 0.376146 seconds and 4 git commands to generate.