05245c
Name:           perl-Sys-CPU
05245c
Version:        0.54
05245c
Release:        4%{?dist}
05245c
Summary:        Getting CPU information
05245c
Group:          Development/Libraries
05245c
# Some code was copied from Unix::Processors, which is LGPLv3 or Artistic 2.0
05245c
# The rest of the code is under the standard Perl license (GPL+ or Artistic).
05245c
# See <https://bugzilla.redhat.com/show_bug.cgi?id=585336>.
05245c
License:        (GPL+ or Artistic) and (LGPLv3 or Artistic 2.0)
05245c
URL:            http://search.cpan.org/~mkoderer/Sys-CPU/
05245c
Source0:        http://search.cpan.org/CPAN/authors/id/M/MZ/MZSANFORD/Sys-CPU-%{version}.tar.gz
05245c
# Support cpu_type on ARM and AArch64, bug #1093266, CPAN RT#95400
05245c
Patch0:         Sys-CPU-0.54-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch
05245c
# Accept undefined cpu_clock on ARM and AArch64, bug #1093266, CPAN RT#95400
05245c
Patch1:         Sys-CPU-0.61-cpu_clock-can-be-undefined-on-an-ARM.patch
05245c
BuildRequires:  perl(Config)
05245c
BuildRequires:  perl(ExtUtils::MakeMaker)
05245c
# Run-time:
05245c
BuildRequires:  perl(DynaLoader)
05245c
BuildRequires:  perl(Exporter)
05245c
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
05245c
05245c
%{?perl_default_filter}
05245c
05245c
%description
05245c
Perl extension for getting CPU information. 
05245c
Currently only number of CPU's supported.
05245c
05245c
%prep
05245c
%setup -q -n Sys-CPU-%{version}
05245c
%patch0 -p1
05245c
%patch1 -p1
05245c
sed -i 's/\r//' Changes README
05245c
05245c
%build
05245c
%{__perl} Makefile.PL INSTALLDIRS=vendor
05245c
make %{?_smp_mflags}
05245c
05245c
%check
05245c
make test TEST_VERBOSE=1
05245c
05245c
%install
05245c
make pure_install DESTDIR=%{buildroot}
05245c
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
05245c
find %{buildroot} -type f -name CPU.bs -exec rm -f {} ';'
05245c
%{_fixperms} %{buildroot}/*
05245c
05245c
%files
05245c
%doc Changes README
05245c
%{perl_vendorarch}/auto/*
05245c
%{perl_vendorarch}/Sys/*
05245c
%{_mandir}/man3/*.3*
05245c
05245c
05245c
%changelog
05245c
* Tue May 06 2014 Petr Pisar <ppisar@redhat.com> - 0.54-4
05245c
- Support cpu_type on ARM and AArch64 (bug #1093266)
05245c
- Accept undefined cpu_clock on ARM and AArch64 (bug #1093266)
05245c
05245c
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.54-3
05245c
- Mass rebuild 2014-01-24
05245c
05245c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.54-2
05245c
- Mass rebuild 2013-12-27
05245c
05245c
* Tue Nov 13 2012 Petr Pisar <ppisar@redhat.com> - 0.54-1
05245c
- 0.54 bump
05245c
05245c
* Mon Nov 05 2012 Petr Pisar <ppisar@redhat.com> - 0.52-2
05245c
- Add support for s390 (CPAN RT #80633)
05245c
05245c
* Fri Nov 02 2012 Petr Pisar <ppisar@redhat.com> - 0.52-1
05245c
- 0.52 bump
05245c
05245c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.51-10
05245c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
05245c
05245c
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.51-9
05245c
- Perl 5.16 rebuild
05245c
05245c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.51-8
05245c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
05245c
05245c
* Tue Oct 05 2011 Shakthi Kannan <shakthimaan@fedoraproject.org> - 0.51-7
05245c
- Used perl_vendorarch/auto, perl_vendorarch/Sys in files section.
05245c
05245c
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.51-6
05245c
- Perl mass rebuild
05245c
05245c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.51-5
05245c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
05245c
05245c
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.51-4
05245c
- 661697 rebuild for fixing problems with vendorach/lib
05245c
05245c
* Sun Jun 27 2010 Ralf Corsépius <corsepiu@fedoraproject.org> 0.51-3
05245c
- Rebuild for perl-5.12.1.
05245c
05245c
* Mon May 03 2010 Shakthi Kannan <shakthimaan [AT] gmail dot com> 0.51-2
05245c
- Updated license to (GPL+ or Artistic) and (LGPLv3 or Artistic 2.0)
05245c
05245c
* Fri Apr 23 2010 Shakthi Kannan <shakthimaan [AT] gmail dot com> 0.51-1
05245c
- Initial Fedora RPM version