diff --git a/ck-Add-sw64-architecture.patch b/ck-Add-sw64-architecture.patch new file mode 100644 index 0000000000000000000000000000000000000000..f90664092c2305f33df86452bcc036b4cd3e4a58 --- /dev/null +++ b/ck-Add-sw64-architecture.patch @@ -0,0 +1,31 @@ +From 679ff9ab9246f8b7463b9fc4eac9476eda5276df Mon Sep 17 00:00:00 2001 +From: wzx +Date: Wed, 9 Nov 2022 14:27:40 +0800 +Subject: [PATCH] Add sw64 architecture + +Signed-off-by: wzx +--- + configure | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/configure b/configure +index 340e05c..6941c13 100755 +--- a/configure ++++ b/configure +@@ -407,6 +407,13 @@ if test "x$PLATFORM" = "x"; then + fi + + case $PLATFORM in ++ "sw_64") ++ RTM_ENABLE="CK_MD_RTM_DISABLE" ++ MM="${MM:-"CK_MD_RMO"}" ++ PLATFORM=sw_64 ++ ENVIRONMENT=64 ++ ;; ++ + "macppc"|"Power Macintosh"|"powerpc") + RTM_ENABLE="CK_MD_RTM_DISABLE" + LSE_ENABLE="CK_MD_LSE_DISABLE" +-- +2.33.0 + diff --git a/ck.spec b/ck.spec index 0c31eed85c6c5ad70f97d4970e944d5ca7c0cb59..ac81bf4113aef08203d086249b13293b77823d98 100644 --- a/ck.spec +++ b/ck.spec @@ -1,11 +1,12 @@ Name: ck Version: 0.6.0 -Release: 3 +Release: 6 Summary: Concurrency programming lib License: BSD URL: http://concurrencykit.org/ Source0: http://concurrencykit.org/releases/%{name}-%{version}.tar.gz -Patch1: Add-loongarch64-support.patch +Patch1: ck-Add-sw64-architecture.patch +Patch2: Add-loongarch64-support.patch BuildRequires: gcc autoconf automake @@ -23,14 +24,20 @@ Concurrency primitives, safe memory reclamation mechanisms and non-blocking data %prep %setup -q -n %{name}-%{version}/ +%ifarch sw_64 +%patch1 -p1 +%endif %ifarch loongarch64 -%patch1 -p1 +%patch2 -p1 %endif %build export CFLAGS="${RPM_OPT_FLAGS}" ./configure --libdir=%{_libdir} --includedir=%{_includedir}/%{name} --mandir=%{_mandir} --prefix=%{_prefix} +%ifarch sw_64 +cp build/ck.build.aarch64 build/ck.build.sw_64 +%endif %ifarch loongarch64 cp build/ck.build.aarch64 build/ck.build.loongarch64 @@ -63,9 +70,18 @@ rm %{buildroot}%{_libdir}/libck.a %ldconfig_scriptlets %changelog -* Mon Feb 13 2023 yaoxin - 0.6.0-3 +* Mon May 13 2024 wangkai <13474090681@163.com> - 0.6.0-6 +- Fix sw64 patch fail + +* Mon Feb 13 2023 yaoxin - 0.6.0-5 - Add loongarch64 support +* Wed Nov 23 2022 wuzx - 0.6.0-4 +- Add sw64 architecture + +* Wed Oct 19 2022 wuzx - 0.6.0-3 +- add sw64 patch + * Tue Sep 07 2021 lingsheng - 0.6.0-2 - Set CFLAGS to build debug related rpm