From f2b24257dec60521fc9d71c8b2aed055764a0c63 Mon Sep 17 00:00:00 2001 From: Shakthi Kannan Date: Thu, 6 May 2010 15:56:29 +0000 Subject: [PATCH] First release. --- .cvsignore | 1 + import.log | 1 + perl-Sys-CPU.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+) create mode 100644 import.log create mode 100644 perl-Sys-CPU.spec diff --git a/.cvsignore b/.cvsignore index e69de29..d984b8a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Sys-CPU-0.51.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..827c08e --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Sys-CPU-0_51-2_fc12:HEAD:perl-Sys-CPU-0.51-2.fc12.src.rpm:1273162056 diff --git a/perl-Sys-CPU.spec b/perl-Sys-CPU.spec new file mode 100644 index 0000000..9a5d6fc --- /dev/null +++ b/perl-Sys-CPU.spec @@ -0,0 +1,68 @@ +Name: perl-Sys-CPU +Version: 0.51 +Release: 2%{?dist} +Summary: Getting CPU information + +Group: Development/Libraries +License: (GPL+ or Artistic) and (LGPLv3 or Artistic 2.0) +URL: http://search.cpan.org/~mkoderer/Sys-CPU/CPU.pm +Source0: http://search.cpan.org/CPAN/authors/id/M/MK/MKODERER/Sys-CPU-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(IO::Handle) + +BuildRequires: perl(ExtUtils::MakeMaker) + +# For test suite +BuildRequires: perl(Test::Harness) +BuildRequires: perl(Test::More) +BuildRequires: perl(IO::Handle) + +%{?perl_default_filter} + +%description +Perl extension for getting CPU information. +Currently only number of CPU's supported. + +%prep +%setup -q -n Sys-CPU-%{version} + + +%{__sed} -i 's/\r//' README +%{__sed} -i 's/\r//' Changes + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test TEST_VERBOSE=1 + +%install +%{__rm} -rf %{buildroot} +%{__make} pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' + + +find %{buildroot} -type f -name CPU.bs -exec rm -f {} ';' + + +%{_fixperms} %{buildroot}/* + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorarch}/* +%{_mandir}/man3/*.3* + + +%changelog +* Mon May 03 2010 Shakthi Kannan 0.51-2 +- Updated license to (GPL+ or Artistic) and (LGPLv3 or Artistic 2.0) + +* Fri Apr 23 2010 Shakthi Kannan 0.51-1 +- Initial Fedora RPM version diff --git a/sources b/sources index e69de29..c49d0b1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +714b8ee88cfea4cc5f01a897c1de2f7a Sys-CPU-0.51.tar.gz