From 9641904f363f0614f913d24c014965341ae232e9 Mon Sep 17 00:00:00 2001 From: Sun Haiyong Date: Wed, 22 Dec 2021 15:37:32 +0800 Subject: [PATCH] Add loongarch architecture support. --- ...nversion-3.1.5-add-loongarch-support.patch | 24 +++++++++++++++++++ double-conversion.spec | 7 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 double-conversion-3.1.5-add-loongarch-support.patch diff --git a/double-conversion-3.1.5-add-loongarch-support.patch b/double-conversion-3.1.5-add-loongarch-support.patch new file mode 100644 index 0000000..6194d25 --- /dev/null +++ b/double-conversion-3.1.5-add-loongarch-support.patch @@ -0,0 +1,24 @@ +From e36eb24820f9349591e20c57944ab8f713ccc9f7 Mon Sep 17 00:00:00 2001 +From: Sun Haiyong +Date: Wed, 22 Dec 2021 15:32:37 +0800 +Subject: [PATCH] Add loongarch support. + +--- + double-conversion/utils.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/double-conversion/utils.h b/double-conversion/utils.h +index 4328344..72f1df8 100644 +--- a/double-conversion/utils.h ++++ b/double-conversion/utils.h +@@ -93,6 +93,7 @@ int main(int argc, char** argv) { + #if defined(_M_X64) || defined(__x86_64__) || \ + defined(__ARMEL__) || defined(__avr32__) || defined(_M_ARM) || defined(_M_ARM64) || \ + defined(__hppa__) || defined(__ia64__) || \ ++ defined(__loongarch64) || \ + defined(__mips__) || \ + defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ + defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \ +-- +2.30.0 + diff --git a/double-conversion.spec b/double-conversion.spec index 597c965..f66f785 100644 --- a/double-conversion.spec +++ b/double-conversion.spec @@ -3,10 +3,11 @@ Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles Name: double-conversion Version: 3.1.5 -Release: 1 +Release: 2 License: BSD URL: https://github.com/google/double-conversion Source0: https://github.com/google/double-conversion/archive/v%{version}/%{name}-%{version}.tar.gz +Patch1: double-conversion-3.1.5-add-loongarch-support.patch BuildRequires: gcc gcc-c++ cmake %description @@ -35,6 +36,7 @@ Static %{name} library. %prep %setup -q +%patch1 -p1 -b .loongarch %build mkdir -p build-shared @@ -84,5 +86,8 @@ popd %endif %changelog +* Wed Dec 22 2021 Sunhaiyong - 3.1.5-2 +- Add loongarch support. + * Thu Jul 23 2020 chengzihan - 3.1.5-1 - Package init -- Gitee