Blame SPECS/perl-Sys-CPU.spec

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