]>
Commit | Line | Data |
---|---|---|
b5a95788 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
fd0886e9 | 6 | %define pdir Time |
7 | %define pnam HiRes | |
b5a95788 | 8 | Summary: Time::HiRes - high resolution alarm, sleep, gettimeofday, interval timers |
3df341a9 | 9 | Summary(pl.UTF-8): Time::HiRes - wysokiej rozdzielczości funkcje alarm, sleep, gettimeofday i liczniki |
b5a95788 | 10 | Name: perl-Time-HiRes |
a8285651 | 11 | Version: 1.9758 |
342f5222 | 12 | Release: 1 |
b5a95788 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
9a8944a9 | 16 | Source0: http://www.cpan.org/modules/by-module/Time/%{pdir}-%{pnam}-%{version}.tar.gz |
a8285651 | 17 | # Source0-md5: 8f998cb60966c86e24c500016e4d1ce8 |
5e53bba1 | 18 | URL: http://search.cpan.org/dist/Time-HiRes/ |
b5a95788 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
3971e952 | 21 | # remove the line below if you *really* have newer version than one |
22 | # available in perl-modules | |
b0d22ea2 | 23 | #BuildRequires: this-must-be-newer-version-than-in-perl-modules |
b5a95788 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Time::HiRes - High resolution ualarm, usleep, and gettimeofday. | |
28 | ||
5eaf132c | 29 | %description -l pl.UTF-8 |
c471147b | 30 | Time::HiRes to interfejs Perla dla funkcji systemowych: ualarm, usleep |
b5a95788 | 31 | i gettimeofday. |
32 | ||
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL \ | |
38 | INSTALLDIRS=vendor | |
39 | %{__make} \ | |
da4cb801 | 40 | CC="%{__cc}" \ |
b5a95788 | 41 | OPTIMIZE="%{rpmcflags}" |
42 | ||
43 | %{?with_tests:%{__make} test} | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %{__make} install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc Changes README TODO | |
04cf641f JB |
57 | %{perl_vendorarch}/Time/HiRes.pm |
58 | %dir %{perl_vendorarch}/auto/Time/HiRes | |
04cf641f | 59 | %attr(755,root,root) %{perl_vendorarch}/auto/Time/HiRes/HiRes.so |
f7dfbc55 | 60 | %{_mandir}/man3/Time::HiRes.3pm* |