!22 [sync] PR-21: add support loongarch64
From: @openeuler-sync-bot Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
a6fc286501
15
add-support-for-loongarch64.patch
Normal file
15
add-support-for-loongarch64.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff -Naur cfitsio-4.3.0.old/fitsio2.h cfitsio-4.3.0/fitsio2.h
|
||||
--- cfitsio-4.3.0.old/fitsio2.h 2024-06-09 10:46:21.767372554 +0800
|
||||
+++ cfitsio-4.3.0/fitsio2.h 2024-06-09 10:49:47.585360286 +0800
|
||||
@@ -137,6 +137,11 @@
|
||||
# error "can't handle long size given by _MIPS_SZLONG"
|
||||
# endif
|
||||
|
||||
+#elif defined(__loongarch64) || defined(__loongarch64__)
|
||||
+#define BYTESWAPPED TRUE
|
||||
+#define MACHINE OTHERTYPE
|
||||
+#define LONGSIZE 64
|
||||
+
|
||||
#elif defined(__riscv)
|
||||
|
||||
/* RISC-V is always little endian */
|
||||
@ -1,6 +1,6 @@
|
||||
Name: cfitsio
|
||||
Version: 4.3.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Library for manipulating FITS data files
|
||||
License: MIT
|
||||
URL: http://heasarc.gsfc.nasa.gov/fitsio/
|
||||
@ -9,6 +9,7 @@ Source0: http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-%{
|
||||
Patch0001: cfitsio-noversioncheck.patch
|
||||
Patch0002: cfitsio-pkgconfig.patch
|
||||
Patch0003: cfitsio-ldflags.patch
|
||||
Patch0004: add-support-for-loongarch64.patch
|
||||
|
||||
BuildRequires: gcc-gfortran zlib-devel bzip2-devel chrpath curl-devel make
|
||||
Requires(post): /sbin/ldconfig
|
||||
@ -62,6 +63,7 @@ to the accuracy in the original image) depends on the amount of compression
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
# fix funpack/fpack -V
|
||||
sed -i 's/float version;/char* version = "%{version}";/g' fpackutil.c
|
||||
sed -i '/fits_get_version(&version);/d' fpackutil.c
|
||||
@ -116,6 +118,9 @@ chrpath -d %{buildroot}%{_bindir}/f{,un}pack
|
||||
%{_bindir}/funpack
|
||||
|
||||
%changelog
|
||||
* Sun Jun 9 2024 zhangxianjun <zhangxianjun@kylinos.cn> - 4.3.0-2
|
||||
- add support for loongarch64
|
||||
|
||||
* Thu Sep 14 2023 liyanan <thistleslyn@163.com> - 4.3.0-1
|
||||
- update to 4.3.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user