Initial release

This commit is contained in:
Jan Synacek 2012-05-10 15:00:29 +02:00
parent 59280ac767
commit 83d6311b9a
3 changed files with 49 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/Sys-MemInfo-0.91.tar.gz

47
perl-Sys-MemInfo.spec Normal file
View 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

View File

@ -0,0 +1 @@
d2ddda32c58114352e04ecb866de7f17 Sys-MemInfo-0.91.tar.gz