commit perl-Sys-CPU for openSUSE:Factory

2018-01-31 Thread root
Hello community,

here is the log from the commit of package perl-Sys-CPU for openSUSE:Factory 
checked in at 2018-01-31 19:51:39

Comparing /work/SRC/openSUSE:Factory/perl-Sys-CPU (Old)
 and  /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new (New)


Package is "perl-Sys-CPU"

Wed Jan 31 19:51:39 2018 rev:6 rq:571085 version:0.61

Changes:

--- /work/SRC/openSUSE:Factory/perl-Sys-CPU/perl-Sys-CPU.changes
2016-01-23 01:16:40.0 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new/perl-Sys-CPU.changes   
2018-01-31 19:51:40.414085765 +0100
@@ -1,0 +2,12 @@
+Fri Jan 26 14:53:18 UTC 2018 - guilla...@opensuse.org
+
+-  Remove full URL since it is not available anymore there
+
+---
+Fri Jan 26 14:48:43 UTC 2018 - guilla...@opensuse.org
+
+- Fix check on AArch64, see 
+  https://rt.cpan.org/Public/Bug/Display.html?id=95400
+  adds 0001-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch
+
+---

New:

  0001-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch



Other differences:
--
++ perl-Sys-CPU.spec ++
--- /var/tmp/diff_new_pack.ktTz6D/_old  2018-01-31 19:51:41.118053030 +0100
+++ /var/tmp/diff_new_pack.ktTz6D/_new  2018-01-31 19:51:41.122052844 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Sys-CPU
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,8 +24,10 @@
 License:GPL-1.0+ or Artistic-1.0
 Group:  Development/Libraries/Perl
 Url:http://search.cpan.org/dist/Sys-CPU/
-Source: 
http://www.cpan.org/authors/id/M/MZ/MZSANFORD/%{cpan_name}-%{version}.tar.gz
-Patch0: 0002-cpu_clock-can-be-undefined-on-an-ARM.patch
+# Source: 
http://www.cpan.org/authors/id/M/MZ/MZSANFORD/%{cpan_name}-%{version}.tar.gz
+Source: %{cpan_name}-%{version}.tar.gz
+Patch0: 0001-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch
+Patch1: 0002-cpu_clock-can-be-undefined-on-an-ARM.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
@@ -40,6 +42,7 @@
 %prep
 %setup -q -n %{cpan_name}-%{version}
 %patch0 -p1
+%patch1 -p1
 find . -type f -print0 | xargs -0 chmod 644
 
 %build

++ 0001-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch ++
>From f77b2b0c795f5d2ad7a85ae3bfffcf74232836ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= 
Date: Tue, 6 May 2014 08:47:16 +0200
Subject: [PATCH 1/2] Add support for cpu_type on ARM and AArch64 Linux
 platforms
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The CPU type is listed as Processor (upper-cased P) entry. SMP systems
enumerate cores by processor (lower-cased P) entries in addition.
The Processor is always first, so case-insesitive look-up is not
a problem.

Signed-off-by: Petr Písař 
---
 CPU.xs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CPU.xs b/CPU.xs
index 236b14d..067c9cb 100644
--- a/CPU.xs
+++ b/CPU.xs
@@ -395,6 +395,9 @@ CODE:
 sysctlbyname("hw.model", value, , NULL, 0);
 #endif
 #ifdef __linux__
+#if defined __arm__ || defined __aarch64__
+value = proc_cpuinfo_field ("Processor");
+#endif
 #if defined __s390__ || defined __s390x__
 value = processor_machine_field (proc_cpuinfo_field ("processor") );
 #endif
-- 
1.9.0




commit perl-Sys-CPU for openSUSE:Factory

2016-01-22 Thread h_root
Hello community,

here is the log from the commit of package perl-Sys-CPU for openSUSE:Factory 
checked in at 2016-01-23 01:16:35

Comparing /work/SRC/openSUSE:Factory/perl-Sys-CPU (Old)
 and  /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new (New)


Package is "perl-Sys-CPU"

Changes:

--- /work/SRC/openSUSE:Factory/perl-Sys-CPU/perl-Sys-CPU.changes
2014-03-18 13:59:26.0 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new/perl-Sys-CPU.changes   
2016-01-23 01:16:40.0 +0100
@@ -1,0 +2,7 @@
+Thu Jan 21 05:29:48 UTC 2016 - dmuel...@suse.com
+
+- Fix build on AArch64/arm, see 
+  https://rt.cpan.org/Public/Bug/Display.html?id=95400
+  adds 0002-cpu_clock-can-be-undefined-on-an-ARM.patch
+
+---

New:

  0002-cpu_clock-can-be-undefined-on-an-ARM.patch



Other differences:
--
++ perl-Sys-CPU.spec ++
--- /var/tmp/diff_new_pack.GvUmhu/_old  2016-01-23 01:16:41.0 +0100
+++ /var/tmp/diff_new_pack.GvUmhu/_new  2016-01-23 01:16:41.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Sys-CPU
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,7 @@
 Group:  Development/Libraries/Perl
 Url:http://search.cpan.org/dist/Sys-CPU/
 Source: 
http://www.cpan.org/authors/id/M/MZ/MZSANFORD/%{cpan_name}-%{version}.tar.gz
+Patch0: 0002-cpu_clock-can-be-undefined-on-an-ARM.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
@@ -38,6 +39,7 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
+%patch0 -p1
 find . -type f -print0 | xargs -0 chmod 644
 
 %build

++ 0002-cpu_clock-can-be-undefined-on-an-ARM.patch ++
>From ceaef15d1391e37623aaf18d6614a4bbf35a3607 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= 
Date: Tue, 6 May 2014 09:12:16 +0200
Subject: [PATCH 2/2] cpu_clock can be undefined on an ARM
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Some ARM boards do not publish CPU clock.

Signed-off-by: Petr Písař 
---
 Makefile.PL | 1 +
 t/Sys-CPU.t | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/Makefile.PL b/Makefile.PL
index 910c77a..4e72025 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -13,4 +13,5 @@ WriteMakefile(
 'DEFINE'   => '', # e.g., '-DHAVE_SOMETHING'
 'INC'  => '', # e.g., '-I/usr/include/other'
 'dynamic_lib'   => {OTHERLDFLAGS => $extra_arg},
+'BUILD_REQUIRES'=> {'Config' => 0 },
 );
diff --git a/t/Sys-CPU.t b/t/Sys-CPU.t
index 9edaaa3..4246b22 100755
--- a/t/Sys-CPU.t
+++ b/t/Sys-CPU.t
@@ -8,6 +8,7 @@
 
 BEGIN { $| = 1; print "1..4\n"; }
 END {print "not ok 1\n" unless $loaded;}
+use Config;
 use Sys::CPU;
 $loaded = 1;
 print "ok 1\n";
@@ -24,6 +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";
 } else  {
 print "not ok 3 (cpu_clock undefined (ok if Win9x))\n";
 }
-- 
1.9.3




commit perl-Sys-CPU for openSUSE:Factory

2014-03-18 Thread h_root
Hello community,

here is the log from the commit of package perl-Sys-CPU for openSUSE:Factory 
checked in at 2014-03-18 13:59:25

Comparing /work/SRC/openSUSE:Factory/perl-Sys-CPU (Old)
 and  /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new (New)


Package is perl-Sys-CPU

Changes:

--- /work/SRC/openSUSE:Factory/perl-Sys-CPU/perl-Sys-CPU.changes
2013-02-01 16:02:14.0 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new/perl-Sys-CPU.changes   
2014-03-18 13:59:26.0 +0100
@@ -1,0 +2,7 @@
+Sat Mar 15 13:04:12 UTC 2014 - co...@suse.com
+
+- updated to 0.61
+  v0.60 - Added FreeBSD support (Thanks Johan  SREZIC)
+  v0.61 - Fix test numbering issue
+
+---

Old:

  Sys-CPU-0.54.tar.gz

New:

  Sys-CPU-0.61.tar.gz



Other differences:
--
++ perl-Sys-CPU.spec ++
--- /var/tmp/diff_new_pack.ozclzg/_old  2014-03-18 13:59:27.0 +0100
+++ /var/tmp/diff_new_pack.ozclzg/_new  2014-03-18 13:59:27.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Sys-CPU
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:   perl-Sys-CPU
-Version:0.54
+Version:0.61
 Release:0
 %define cpan_name Sys-CPU
 Summary:Perl extension for getting CPU information. Currently only 
number of CPU[cut]
@@ -28,7 +28,6 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
-#BuildRequires: perl(Sys::CPU)
 %{perl_requires}
 
 %description

++ Sys-CPU-0.54.tar.gz - Sys-CPU-0.61.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Sys-CPU-0.54/CPU.pm new/Sys-CPU-0.61/CPU.pm
--- old/Sys-CPU-0.54/CPU.pm 2012-11-13 05:52:38.0 +0100
+++ new/Sys-CPU-0.61/CPU.pm 2013-11-27 23:44:01.0 +0100
@@ -12,14 +12,14 @@
 # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
 # will save memory.
 our %EXPORT_TAGS = ( 'all' = [ qw(
-   cpu_count
-cpu_clock
-cpu_type
+  cpu_count
+  cpu_clock
+  cpu_type
 ) ] );
 
 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
 
-our $VERSION = '0.54';
+our $VERSION = '0.61';
 
 bootstrap Sys::CPU $VERSION;
 
@@ -36,7 +36,7 @@
 =head1 SYNOPSIS
 
   use Sys::CPU;
-  
+
   $number_of_cpus = Sys::CPU::cpu_count();
   printf(I have %d CPU's\n,$number_of_cpus);
   print   Speed : ,Sys::CPU::cpu_clock(),\n;
@@ -44,12 +44,15 @@
 
 =head1 DESCRIPTION
 
-In responce to a post on perlmonks.org, a module for counting the number of 
CPU's on a 
+In responce to a post on perlmonks.org, a module for counting the number of 
CPU's on a
 system. Support has now also been added for type of CPU and clock speed. While 
much of the
 code is from UNIX::Processors, win32 support has been added (but not tested).
 
 v0.45 - Corrected solaris support (Thanks Cloyce)
 
+v0.60 - Added FreeBSD support (Thanks Johan  SREZIC)
+v0.61 - Fix test numbering issue
+
 =head2 EXPORT
 
 None by default.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Sys-CPU-0.54/CPU.xs new/Sys-CPU-0.61/CPU.xs
--- old/Sys-CPU-0.54/CPU.xs 2012-11-13 05:47:34.0 +0100
+++ new/Sys-CPU-0.61/CPU.xs 2013-11-27 23:40:07.0 +0100
@@ -40,6 +40,11 @@
  #define _have_cpu_clock
  #define _have_cpu_type
 #endif
+#ifdef __FreeBSD__
+ #include sys/sysctl.h
+ #define _have_cpu_type
+ #define _have_cpu_clock
+#endif
 #ifdef WINDOWS
 /* Registry Functions */
 
@@ -191,13 +196,18 @@
 #define INTEL_CORE2 0x426f69ef
 #endif
 
+#ifndef INTEL_COREI7
+#define INTEL_COREI7 0x5490B78C
+#endif
+
 char *apple_get_type_name() {
-int mib[2];
-size_t len=2;
+  int mib[2];
+  size_t len=2;
   int kp;
-sysctlnametomib (hw.cpufamily, mib, len);
+
+  sysctlnametomib (hw.cpufamily, mib, len);
   sysctl(mib, 2, NULL, len, NULL, 0);
-sysctl(mib, 2, kp, len, NULL, 0);
+  sysctl(mib, 2, kp, len, NULL, 0);
 switch (kp) {
 case POWERPC_G3:
return POWERPC_G3;
@@ -219,8 +229,10 @@
return INTEL_CORE;
 case INTEL_CORE2:
return INTEL_CORE2;
+case INTEL_COREI7:
+   return INTEL_COREI7;
 default:
-return UNKNOWN;
+   return UNKNOWN;
 }
 }
 #endif /* __APPLE__ */
@@ -329,6 +341,10 @@
 int value = proc_cpuinfo_clock();
 if (value) clock = 

commit perl-Sys-CPU for openSUSE:Factory

2013-02-01 Thread h_root
Hello community,

here is the log from the commit of package perl-Sys-CPU for openSUSE:Factory 
checked in at 2013-02-01 16:02:11

Comparing /work/SRC/openSUSE:Factory/perl-Sys-CPU (Old)
 and  /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new (New)


Package is perl-Sys-CPU, Maintainer is 

Changes:

New Changes file:

--- /dev/null   2013-01-09 19:40:42.352580873 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new/perl-Sys-CPU.changes   
2013-02-01 16:02:14.0 +0100
@@ -0,0 +1,6 @@
+---
+Fri Jan 25 09:56:42 UTC 2013 - idon...@suse.com
+
+- Initial release for build.opensuse.org
+
+

New:

  Sys-CPU-0.54.tar.gz
  perl-Sys-CPU.changes
  perl-Sys-CPU.spec



Other differences:
--
++ perl-Sys-CPU.spec ++
#
# spec file for package perl-Sys-CPU
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An Open Source License is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:   perl-Sys-CPU
Version:0.54
Release:0
%define cpan_name Sys-CPU
Summary:Perl extension for getting CPU information. Currently only 
number of CPU[cut]
License:GPL-1.0+ or Artistic-1.0
Group:  Development/Libraries/Perl
Url:http://search.cpan.org/dist/Sys-CPU/
Source: 
http://www.cpan.org/authors/id/M/MZ/MZSANFORD/%{cpan_name}-%{version}.tar.gz
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
#BuildRequires: perl(Sys::CPU)
%{perl_requires}

%description
In responce to a post on perlmonks.org, a module for counting the number of
CPU's on a system. Support has now also been added for type of CPU and
clock speed. While much of the code is from UNIX::Processors, win32 support
has been added (but not tested).

%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE=%{optflags}
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README

%changelog
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org