[packages/unrar] disable sse on %{ix86} if not available; rel 2

atler atler at pld-linux.org
Thu Feb 29 13:12:52 CET 2024


commit 160cc67eff8f02b4233a59aae54efada52ac0cbe
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Feb 29 12:15:58 2024 +0100

    disable sse on %{ix86} if not available; rel 2

 sse.patch  | 11 +++++++++++
 unrar.spec |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/unrar.spec b/unrar.spec
index ba7cbbc..3e15098 100644
--- a/unrar.spec
+++ b/unrar.spec
@@ -5,7 +5,7 @@ Summary(ru.UTF-8):	Распаковщик файлов .zip
 Summary(uk.UTF-8):	Розпаковувач файлів .zip
 Name:		unrar
 Version:	7.0.7
-Release:	1
+Release:	2
 License:	Freeware
 Group:		Applications/Archiving
 #Source0Download: https://www.rarlab.com/rar_add.htm
@@ -13,6 +13,7 @@ Source0:	https://www.rarlab.com/rar/%{name}src-%{version}.tar.gz
 # Source0-md5:	596c964288608be4b4b6502e910518d2
 Source1:	%{name}.1
 Source2:	%{name}.1.pl
+Patch0:		sse.patch
 URL:		https://www.rarlab.com/
 BuildRequires:	libstdc++-devel
 BuildRequires:	rpmbuild(macros) >= 1.167
@@ -72,6 +73,7 @@ Pliki programistyczne biblioteki libunrar.
 
 %prep
 %setup -q -n unrar
+%patch0 -p1
 
 %build
 install -d done
diff --git a/sse.patch b/sse.patch
new file mode 100644
index 0000000..d08913a
--- /dev/null
+++ b/sse.patch
@@ -0,0 +1,11 @@
+--- unrar/os.hpp.orig	2024-02-26 10:03:52.000000000 +0100
++++ unrar/os.hpp	2024-02-29 12:10:24.775317293 +0100
+@@ -143,7 +143,7 @@
+ #include <locale.h>
+ 
+ #ifdef __GNUC__
+-  #if defined(__i386__) || defined(__x86_64__)
++  #if ( defined(__i386__) && defined(__SSE__) ) || defined(__x86_64__)
+     #include <x86intrin.h>
+     
+     #define USE_SSE
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/unrar.git/commitdiff/160cc67eff8f02b4233a59aae54efada52ac0cbe



More information about the pld-cvs-commit mailing list