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