Compare commits
1 Commits
master-ris
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
0340e2fc1e |
@ -1,29 +0,0 @@
|
|||||||
diff --git a/CPU.xs b/CPU.xs
|
|
||||||
index 067c9cb..53e806b 100644
|
|
||||||
--- a/CPU.xs
|
|
||||||
+++ b/CPU.xs
|
|
||||||
@@ -400,6 +400,9 @@ CODE:
|
|
||||||
#endif
|
|
||||||
#if defined __s390__ || defined __s390x__
|
|
||||||
value = processor_machine_field (proc_cpuinfo_field ("processor") );
|
|
||||||
+#endif
|
|
||||||
+#if defined __riscv
|
|
||||||
+ value = proc_cpuinfo_field ("processor");
|
|
||||||
#endif
|
|
||||||
if (!value) value = proc_cpuinfo_field ("model name");
|
|
||||||
if (!value) value = proc_cpuinfo_field ("machine");
|
|
||||||
diff --git a/t/Sys-CPU.t b/t/Sys-CPU.t
|
|
||||||
index 4246b22..e813514 100755
|
|
||||||
--- a/t/Sys-CPU.t
|
|
||||||
+++ b/t/Sys-CPU.t
|
|
||||||
@@ -25,8 +25,8 @@ if (defined($speed)) {
|
|
||||||
print "ok 3 (CPU Speed : $speed)\n";
|
|
||||||
} elsif ( $^O eq 'MSWin32'){
|
|
||||||
print "ok 3 (CPU Speed: test skipped on MSWin32)\n";
|
|
||||||
-} elsif ($Config{archname} =~ /^(arm|aarch64)/ ) {
|
|
||||||
- print "ok 3 (CPU Speed: test skipped on ARM and AArch64)\n";
|
|
||||||
+} elsif ($Config{archname} =~ /^(arm|aarch64|riscv64)/ ) {
|
|
||||||
+ print "ok 3 (CPU Speed: test skipped on ARM, AArch64 and RISC-V RV64GC)\n";
|
|
||||||
} else {
|
|
||||||
print "not ok 3 (cpu_clock undefined (ok if Win9x))\n";
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
Name: perl-Sys-CPU
|
Name: perl-Sys-CPU
|
||||||
Version: 0.61
|
Version: 0.61
|
||||||
Release: 22.0.riscv64%{?dist}
|
Release: 23%{?dist}
|
||||||
Summary: Getting CPU information
|
Summary: Getting CPU information
|
||||||
|
|
||||||
# Some code was copied from Unix::Processors, which is LGPLv3 or Artistic 2.0
|
# Some code was copied from Unix::Processors, which is LGPLv3 or Artistic 2.0
|
||||||
@ -13,8 +13,6 @@ Source0: https://cpan.metacpan.org/authors/id/M/MZ/MZSANFORD/Sys-CPU-%{ve
|
|||||||
Patch0: Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch
|
Patch0: Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch
|
||||||
# Accept undefined cpu_clock on ARM and AArch64, bug #1093266, CPAN RT#95400
|
# Accept undefined cpu_clock on ARM and AArch64, bug #1093266, CPAN RT#95400
|
||||||
Patch1: Sys-CPU-0.61-cpu_clock-can-be-undefined-on-an-ARM.patch
|
Patch1: Sys-CPU-0.61-cpu_clock-can-be-undefined-on-an-ARM.patch
|
||||||
# Add support for RISC-V 64-bit (RV64GC) aka riscv64
|
|
||||||
Patch2: add-support-riscv64.patch
|
|
||||||
BuildRequires: findutils
|
BuildRequires: findutils
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
@ -38,7 +36,6 @@ Currently only number of CPU's supported.
|
|||||||
%setup -q -n Sys-CPU-%{version}
|
%setup -q -n Sys-CPU-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
|
||||||
sed -i 's/\r//' Changes README
|
sed -i 's/\r//' Changes README
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -62,8 +59,8 @@ find %{buildroot} -type f -name CPU.bs -exec rm -f {} ';'
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jul 16 2020 David Abdurachmanov <david.abdurachmanov@sifive.com> - 0.61-22
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.61-23
|
||||||
- Add support for riscv64
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.61-22
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.61-22
|
||||||
- Perl 5.32 rebuild
|
- Perl 5.32 rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user