File perl-Sys-CPU.spec of Package perl-Sys-CPU
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
Summary: Perl extenstion for getting CPU information
Name: perl-Sys-CPU
Version: 0.61
Release: 1.0
License: Artistic/GPL
Group: Development/Libraries/Perl
URL: http://search.cpan.org/dist/Sys-CPU/
Source: http://search.cpan.org/CPAN/authors/id/M/MK/MKODERER/Sys-CPU-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: perl, perl(ExtUtils::MakeMaker)
Requires: perl
%define real_name Sys-CPU-%{version}
%description
Sys::CPU - Perl extension for getting CPU information. Currently only number and type of CPU's and their clock speed supported.
%prep
%setup -n %{real_name}
%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" destdir="%{buildroot}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"
%check
%{__make} test
%install
%{__make} install
%{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, -)
%doc Changes README
%doc %{_mandir}/man3/*.3pm*
%dir %{perl_vendorarch}/Sys/
%{perl_vendorarch}/Sys/CPU.pm
%dir %{perl_vendorarch}/auto/Sys/
%{perl_vendorarch}/auto/Sys/CPU/
%changelog