]> git.pld-linux.org Git - packages/perl-Sys-Load.git/blame - perl-Sys-Load.spec
- add CC to %{__make}
[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
882ed2a7 12Release: 5
86673426 13# sae as perl
14License: GPL v1+ or Artistic
0932e435 15Group: Development/Languages/Perl
79ea2a96 16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
a61cf68e 17# Source0-md5: 370372db0ddbcde3725049157e0bc5ad
12dc61b5 18BuildRequires: perl-devel >= 1:5.8.0
daa31ca7 19BuildRequires: rpm-perlprov >= 4.1-13
0932e435 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
a73ddc5a
JB
23getload() returns 3 elements: representing load averages over the last
241, 5 and 15 minutes. uptime() returns the system uptime in seconds.
0932e435 25
2d135e37
JR
26%description -l pl.UTF-8
27getload() zwraca 3 wartości, reprezentujące średnie obciążenie systemu
28w ciągu ostatnich 1, 5 i 15 minut. uptime() zwraca uptime systemu w
a73ddc5a 29sekundach.
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
44rm -rf $RPM_BUILD_ROOT
45
95fc785c 46%{__make} install \
47 DESTDIR=$RPM_BUILD_ROOT
0932e435 48
49%clean
50rm -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/*
This page took 0.073229 seconds and 4 git commands to generate.