Initial release
This commit is contained in:
parent
59280ac767
commit
83d6311b9a
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/Sys-MemInfo-0.91.tar.gz
|
||||
47
perl-Sys-MemInfo.spec
Normal file
47
perl-Sys-MemInfo.spec
Normal file
@ -0,0 +1,47 @@
|
||||
Name: perl-Sys-MemInfo
|
||||
Version: 0.91
|
||||
Release: 1%{?dist}
|
||||
Summary: Sys::MemInfo Perl module
|
||||
License: LGPLv2+
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Sys-MemInfo/
|
||||
Source0: http://www.cpan.org/modules/by-module/Sys/Sys-MemInfo-%{version}.tar.gz
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Data::Dumper)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%{?perl_default_filter}
|
||||
|
||||
%description
|
||||
Sys::MemInfo return the total amount of free and used physical memory in
|
||||
bytes in totalmem and freemem variables.
|
||||
|
||||
%prep
|
||||
%setup -q -n Sys-MemInfo
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes README
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/Sys*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri May 04 2012 jsynacek@redhat.com 0.91-1
|
||||
- Initial release
|
||||
Loading…
Reference in New Issue
Block a user