File perl-Sys-MemInfo.spec of Package perl-Sys-MemInfo
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
%define real_name Sys-MemInfo
Summary: Returns the total amount of free and used physical memory
Name: perl-Sys-MemInfo
Version: 0.99
Release: 1.0
License: Artistic/GPL
Group: Development/Libraries/Perl
URL: http://search.cpan.org/dist/Sys-MemInfo/
Source: http://search.cpan.org/CPAN/authors/id/S/SC/SCRESTO/Sys-MemInfo-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: perl, perl(ExtUtils::MakeMaker)
%description
Sys::MemInfo return the total amount of free and used physical memory in bytes
in totalmem and freemem variables. Total amount of free and user swap memory
are alse returned in totalswap and freeswap variables.
%prep
%setup -n %{real_name}-%{version}
%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/MemInfo.pm
%dir %{perl_vendorarch}/auto/Sys/
%{perl_vendorarch}/auto/Sys/MemInfo/
%changelog