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