3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Sys::Load - Perl module for getting the current system load and uptime
9 Summary(pl.UTF-8): Sys::Load - moduł Perla do odczytywania obciążenia systemu i uptime'u
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 370372db0ddbcde3725049157e0bc5ad
18 URL: http://search.cpan.org/dist/Sys-Load/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 getload() returns 3 elements: representing load averages over the last
25 1, 5 and 15 minutes. uptime() returns the system uptime in seconds.
27 %description -l pl.UTF-8
28 getload() zwraca 3 wartości, reprezentujące średnie obciążenie systemu
29 w ciągu ostatnich 1, 5 i 15 minut. uptime() zwraca uptime systemu w
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 OPTIMIZE="%{rpmcflags}"
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorarch}/Sys/*.pm
57 %dir %{perl_vendorarch}/auto/Sys/Load
58 %attr(755,root,root) %{perl_vendorarch}/auto/Sys/Load/*.so