diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..0a80fdce31f59c062e2abba28776e9521eddff30 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000000000000000000000000000000000000..a6739c0c43e333e7bce639679ac39a70314e4dcc --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/src-openEuler/double-conversion diff --git a/double-conversion-3.1.5.tar.gz b/double-conversion-3.1.5.tar.gz deleted file mode 100644 index d1ee77e889d1d198035ca97e18cced6257de643b..0000000000000000000000000000000000000000 Binary files a/double-conversion-3.1.5.tar.gz and /dev/null differ diff --git a/double-conversion-3.1.5-add-loongarch-support.patch b/double-conversion-3.3.0-add-loongarch-support.patch similarity index 78% rename from double-conversion-3.1.5-add-loongarch-support.patch rename to double-conversion-3.3.0-add-loongarch-support.patch index 3f72089243c63768e0a8209ae698733c4a037da1..b854951c04630404a78f70656e116eb6a7861b3e 100644 --- a/double-conversion-3.1.5-add-loongarch-support.patch +++ b/double-conversion-3.3.0-add-loongarch-support.patch @@ -12,13 +12,13 @@ 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) { +@@ -138,6 +138,7 @@ #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) || \ + defined(__loongarch__) || \ + defined(__nios2__) || defined(__ghs) || \ -- 2.30.0 diff --git a/double-conversion-3.3.1-port-to-newer-cmake.patch b/double-conversion-3.3.1-port-to-newer-cmake.patch new file mode 100644 index 0000000000000000000000000000000000000000..a2f1ac01a45e0722c0a466fdf04f687f1ef5c4e1 --- /dev/null +++ b/double-conversion-3.3.1-port-to-newer-cmake.patch @@ -0,0 +1,8 @@ +--- double-conversion-3.3.1/CMakeLists.txt.orig 2025-03-02 19:12:35.414837400 +0800 ++++ double-conversion-3.3.1/CMakeLists.txt 2025-03-02 19:12:45.972416200 +0800 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.0) ++cmake_minimum_required(VERSION 3.0...${CMAKE_VERSION}) + project(double-conversion VERSION 3.3.0) + + option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" OFF) diff --git a/double-conversion-3.3.1.tar.gz b/double-conversion-3.3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4270214792a056ef6e4caa58446660e691df3789 --- /dev/null +++ b/double-conversion-3.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe54901055c71302dcdc5c3ccbe265a6c191978f3761ce1414d0895d6b0ea90e +size 7035094 diff --git a/double-conversion.spec b/double-conversion.spec index 46dae829b8ad1ec4c78529c65cbffaf0045247b5..2b9218943132dc26ad6e0b715bd6d0952b233184 100644 --- a/double-conversion.spec +++ b/double-conversion.spec @@ -1,12 +1,13 @@ Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles Name: double-conversion -Version: 3.1.5 -Release: 3 +Version: 3.3.1 +Release: 1 License: BSD-3-Clause URL: https://github.com/google/double-conversion Source0: https://github.com/google/double-conversion/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc gcc-c++ cmake -Patch1: double-conversion-3.1.5-add-loongarch-support.patch +Patch1: double-conversion-3.3.0-add-loongarch-support.patch +Patch2: double-conversion-3.3.1-port-to-newer-cmake.patch %description Provides binary-decimal and decimal-binary routines for IEEE doubles. @@ -36,7 +37,7 @@ Static %{name} library. %autosetup -n %{name}-%{version} -p1 %build -%cmake -DBUILD_TESTING=ON .. +%cmake -DBUILD_TESTING=ON %cmake_build %install @@ -56,6 +57,9 @@ Static %{name} library. %{_includedir}/%{name} %changelog +* Sat Feb 15 2025 Funda Wang - 3.3.1-1 +- update to 3.3.1 + * Mon Nov 18 2024 Funda Wang - 3.1.5-3 - adopt to new cmake macro - drop static build completely