]> git.pld-linux.org Git - SPECS.git/blob - perl-Time-TAI64.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Time-TAI64.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4
5 %define         pdir    Time
6 %define         pnam    TAI64
7 Summary:        Time::TAI64 - Perl extension for converting TAI64 strings into standard unix timestamps
8 Name:           perl-Time-TAI64
9 Version:        2.11
10 Release:        1
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
15 Source1:        tai64nd.pl
16 URL:            http://search.cpan.org/dist/Time-TAI64/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
27
28 %prep
29 %setup -q -n %{pdir}-%{pnam}-%{version}
30
31 %build
32 %{__perl} Makefile.PL \
33         INSTALLDIRS=vendor
34 %{__make}
35
36 %{?with_tests:%{__make} test}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 %{__make} pure_install \
41         DESTDIR=$RPM_BUILD_ROOT
42
43 install -d $RPM_BUILD_ROOT%{_sbindir}
44 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/tai64nd
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc Changes README
52 %attr(755,root,root) %{_sbindir}/tai64nd
53 %{perl_vendorlib}/Time/TAI64.pm
54 %{_mandir}/man3/Time::TAI64.3pm*
This page took 0.397772 seconds and 3 git commands to generate.