3 %bcond_without tests # do not perform "make test"
6 %define pnam strftime-Compiler
7 Summary: POSIX::strftime::Compiler - GNU C library compatible strftime for loggers and servers
8 Name: perl-POSIX-strftime-Compiler
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/POSIX/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: c0a5f76b1b0ce9cdb90d627b017e6cf5
16 URL: https://metacpan.org/release/POSIX-strftime-Compiler/
17 BuildRequires: perl-Module-Build
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 POSIX::strftime::Compiler provides GNU C library compatible strftime(3). But this module will not affected
27 by the system locale. This feature is useful when you want to write loggers, servers and portable applications.
29 For generate same result strings on any locale, POSIX::strftime::Compiler wraps POSIX::strftime and
30 converts some format characters to perl code
33 %setup -q -n %{pdir}-%{pnam}-%{version}
37 destdir=$RPM_BUILD_ROOT \
41 %{?with_tests:./Build test}
44 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorlib}/POSIX/strftime
58 %{_mandir}/man3/POSIX::strftime::Compiler.3*
59 %{_examplesdir}/%{name}-%{version}