Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
6933e4212a
!21 [sync] PR-20: Fix sw64 patch fail
From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2024-05-13 08:14:25 +00:00
wk333
a1e33d1b3e Fix sw64 patch fail
(cherry picked from commit 38b11dfe87fd99f0f56d92a2179281bb50343de9)
2024-05-13 16:12:06 +08:00
openeuler-ci-bot
68912d0cf3
!15 Sync release from 22.03-LTS
From: @wk333 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
2024-03-21 01:16:46 +00:00
wk333
8e297f3383 Sync release from 22.03-LTS 2024-03-20 17:19:11 +08:00
openeuler-ci-bot
ee15451318 !4 [sync] PR-3: Set CFLAGS to build debug related rpm
From: @openeuler-sync-bot
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-09-08 06:36:58 +00:00
lingsheng
d794cd671a Set CFLAGS to build debug related rpm
(cherry picked from commit 35d54c7d71123b11f025ceea853abf5bde6dda07)
2021-09-08 10:31:59 +08:00
openeuler-ci-bot
f0f1018510 !2 add yaml file for ck
Merge pull request !2 from fcwicky/master
2020-08-13 14:51:20 +08:00
fcwicky
877dc2e948 add yml file for ck 2020-08-13 11:43:30 +08:00
openeuler-ci-bot
d83a0a62e6 !1 init package
Merge pull request !1 from myeuler/master
2020-06-20 18:35:37 +08:00
myeuler
de9e42861f init package 2020-05-14 23:44:56 +08:00
5 changed files with 154 additions and 0 deletions

View File

@ -0,0 +1,29 @@
From feb19456868ac62ba1b1b385703bed215e4451aa Mon Sep 17 00:00:00 2001
From: starlet-dx <15929766099@163.com>
Date: Mon, 13 Feb 2023 14:30:02 +0800
Subject: [PATCH 1/1] Add loongarch64 support
---
configure | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/configure b/configure
index e840d41..f367e80 100755
--- a/configure
+++ b/configure
@@ -369,6 +369,12 @@ if test "x$PLATFORM" = "x"; then
fi
case $PLATFORM in
+ "loongarch64")
+ RTM_ENABLE="CK_MD_RTM_DISABLE"
+ MM="${MM:-"CK_MD_RMO"}"
+ PLATFORM=loongarch64
+ ENVIRONMENT=64
+ ;;
"macppc"|"Power Macintosh"|"powerpc")
RTM_ENABLE="CK_MD_RTM_DISABLE"
LSE_ENABLE="CK_MD_LSE_DISABLE"
--
2.30.0

BIN
ck-0.6.0.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,31 @@
From 679ff9ab9246f8b7463b9fc4eac9476eda5276df Mon Sep 17 00:00:00 2001
From: wzx <wuzx1226@qq.com>
Date: Wed, 9 Nov 2022 14:27:40 +0800
Subject: [PATCH] Add sw64 architecture
Signed-off-by: wzx <wuzx1226@qq.com>
---
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

90
ck.spec Normal file
View File

@ -0,0 +1,90 @@
Name: ck
Version: 0.6.0
Release: 6
Summary: Concurrency programming lib
License: BSD
URL: http://concurrencykit.org/
Source0: http://concurrencykit.org/releases/%{name}-%{version}.tar.gz
Patch1: ck-Add-sw64-architecture.patch
Patch2: Add-loongarch64-support.patch
BuildRequires: gcc autoconf automake
%description
Concurrency primitives, safe memory reclamation mechanisms and non-blocking data structures for the research, design and implementation of high performance concurrent systems.
%package devel
Summary: Concurrency programming devel package
Requires: %{name} = %{version}-%{release}
%description devel
Concurrency primitives, safe memory reclamation mechanisms and non-blocking data structures for the research, design and implementation of high performance concurrent systems.
%prep
%setup -q -n %{name}-%{version}/
%ifarch sw_64
%patch1 -p1
%endif
%ifarch loongarch64
%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
%endif
%make_build
%install
%make_install
rm %{buildroot}%{_libdir}/libck.a
%pre
%preun
%post
%postun
%check
%files
%license LICENSE
%doc README
%{_libdir}/libck.so.*
%files devel
%{_includedir}/*
%{_libdir}/libck.so
%{_mandir}/*
%{_libdir}/pkgconfig/*
%ldconfig_scriptlets
%changelog
* Mon May 13 2024 wangkai <13474090681@163.com> - 0.6.0-6
- Fix sw64 patch fail
* Mon Feb 13 2023 yaoxin <yaoxin30@h-partners.com> - 0.6.0-5
- Add loongarch64 support
* Wed Nov 23 2022 wuzx<wuzx1226@qq.com> - 0.6.0-4
- Add sw64 architecture
* Wed Oct 19 2022 wuzx<wuzx1226@qq.com> - 0.6.0-3
- add sw64 patch
* Tue Sep 07 2021 lingsheng <lingsheng@huawei.com> - 0.6.0-2
- Set CFLAGS to build debug related rpm
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com> - 0.6.0-1
- Package init

4
ck.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: concurrencykit/ck
tag_prefix:
separator: "."