3 %bcond_without tests # do not perform "make test"
7 Summary: Time::TAI64 - Perl extension for converting TAI64 strings into standard unix timestamps
11 License: GPL v1+ or Artistic
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/Time/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: 6f91734171a72b418bd70456fda487ce
16 URL: http://search.cpan.org/dist/Time-TAI64/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This is a package provides routines to convert TAI64 strings, like
24 timestamps produced by multilog, into values that can be processed by
25 other perl functions to display the timestamp in human-readable form
26 and/or use in mathematical computations.
29 %setup -q -n %{pdir}-%{pnam}-%{version}
32 %{__perl} Makefile.PL \
36 %{?with_tests:%{__make} test}
39 rm -rf $RPM_BUILD_ROOT
40 %{__make} pure_install \
41 DESTDIR=$RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_sbindir}
44 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/tai64nd
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %attr(755,root,root) %{_sbindir}/tai64nd
53 %{perl_vendorlib}/Time/TAI64.pm
54 %{_mandir}/man3/Time::TAI64.3pm*