]> git.pld-linux.org Git - packages/perl-Sys-Load.git/blame - perl-Sys-Load.spec
- release 12 (by relup.sh)
[packages/perl-Sys-Load.git] / perl-Sys-Load.spec
CommitLineData
0932e435 1#
2# Conditional build:
95fc785c 3%bcond_without tests # do not perform "make test"
0932e435 4#
5%include /usr/lib/rpm/macros.perl
bb542f14 6%define pdir Sys
7%define pnam Load
0932e435 8Summary: Sys::Load - Perl module for getting the current system load and uptime
f657034a 9Summary(pl.UTF-8): Sys::Load - moduł Perla do odczytywania obciążenia systemu i uptime'u
0932e435 10Name: perl-Sys-Load
11Version: 0.2
5478070f 12Release: 12
86673426 13# sae as perl
14License: GPL v1+ or Artistic
0932e435 15Group: Development/Languages/Perl
af8a311c 16Source0: http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
a61cf68e 17# Source0-md5: 370372db0ddbcde3725049157e0bc5ad
af8a311c 18URL: http://search.cpan.org/dist/Sys-Load/
12dc61b5 19BuildRequires: perl-devel >= 1:5.8.0
daa31ca7 20BuildRequires: rpm-perlprov >= 4.1-13
0932e435 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
a73ddc5a
JB
24getload() returns 3 elements: representing load averages over the last
251, 5 and 15 minutes. uptime() returns the system uptime in seconds.
0932e435 26
2d135e37
JR
27%description -l pl.UTF-8
28getload() zwraca 3 wartości, reprezentujące średnie obciążenie systemu
29w ciągu ostatnich 1, 5 i 15 minut. uptime() zwraca uptime systemu w
a73ddc5a 30sekundach.
0932e435 31
32%prep
33%setup -q -n %{pdir}-%{pnam}-%{version}
34
35%build
daa31ca7 36%{__perl} Makefile.PL \
b4fd6c86 37 INSTALLDIRS=vendor
86673426 38%{__make} \
fdcda853 39 CC="%{__cc}" \
86673426 40 OPTIMIZE="%{rpmcflags}"
0932e435 41
95fc785c 42%{?with_tests:%{__make} test}
0932e435 43
44%install
45rm -rf $RPM_BUILD_ROOT
46
95fc785c 47%{__make} install \
48 DESTDIR=$RPM_BUILD_ROOT
0932e435 49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files
54%defattr(644,root,root,755)
55%doc Change* README
daa31ca7 56%{perl_vendorarch}/Sys/*.pm
daa31ca7 57%dir %{perl_vendorarch}/auto/Sys/Load
58%attr(755,root,root) %{perl_vendorarch}/auto/Sys/Load/*.so
0932e435 59%{_mandir}/man3/*
This page took 0.14357 seconds and 4 git commands to generate.