]> git.pld-linux.org Git - packages/perl-Sys-MemInfo.git/blame - perl-Sys-MemInfo.spec
rebuild with perl 5.32
[packages/perl-Sys-MemInfo.git] / perl-Sys-MemInfo.spec
CommitLineData
5b7ac99a
AM
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir Sys
6%define pnam MemInfo
5b7ac99a
AM
7Summary: Sys::MemInfo - query the total free and used physical memory
8Name: perl-Sys-MemInfo
9Version: 0.99
f094ed6b 10Release: 4
5b7ac99a
AM
11License: GPL v1+ or Artistic
12Group: Development/Languages/Perl
13Source0: http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
14# Source0-md5: 88f0632691d7de91cbed95ba1ff29025
15URL: https://metacpan.org/release/Sys-MemInfo/
16BuildRequires: perl-devel >= 1:5.8.0
17BuildRequires: rpm-perlprov >= 4.1-13
18%if %{with tests}
19%endif
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23Sys::MemInfo return the total amount of free and used physical memory in bytes in totalmem and freemem variables.
24
25Total amount of free and user swap memory are alse returned in totalswap and freeswap variables.
26
27This module has been tested on Linux 3.13.0, UnixWare 7.1.2, AIX5, OpenBSD 3.8,
28NetBSD 2.0.2, FreBSD 5.4, HPUX11, Solaris 9, Tru64 5.1, Irix 6.5, Mac OS X 10.2 darwin and Windows XP.
29
30It should work on FreeBSD 4 and Windows 9X/ME/NT/200X/Vista.
31
32%prep
33%setup -q -n %{pdir}-%{pnam}-%{version}
34
35%build
36%{__perl} Makefile.PL \
37 INSTALLDIRS=vendor
38%{__make} \
39 CC="%{__cc}" \
40 OPTIMIZE="%{rpmcflags}"
41
42%{?with_tests:%{__make} test}
43
44%install
45rm -rf $RPM_BUILD_ROOT
46
47%{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files
54%defattr(644,root,root,755)
55%doc Changes README
56%{perl_vendorarch}/Sys/MemInfo.pm
57%dir %{perl_vendorarch}/auto/Sys/MemInfo
58%attr(755,root,root) %{perl_vendorarch}/auto/Sys/MemInfo/MemInfo.so
59%{_mandir}/man3/Sys::MemInfo.3pm*
This page took 0.143404 seconds and 4 git commands to generate.