]> git.pld-linux.org Git - packages/perl-POSIX-strftime-Compiler.git/blame - perl-POSIX-strftime-Compiler.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-POSIX-strftime-Compiler.git] / perl-POSIX-strftime-Compiler.spec
CommitLineData
06750394
AM
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir POSIX
6%define pnam strftime-Compiler
06750394
AM
7Summary: POSIX::strftime::Compiler - GNU C library compatible strftime for loggers and servers
8Name: perl-POSIX-strftime-Compiler
9Version: 0.42
751a225f 10Release: 2
06750394
AM
11# same as perl
12License: GPL v1+ or Artistic
13Group: Development/Languages/Perl
14Source0: http://www.cpan.org/modules/by-module/POSIX/%{pdir}-%{pnam}-%{version}.tar.gz
15# Source0-md5: c0a5f76b1b0ce9cdb90d627b017e6cf5
16URL: https://metacpan.org/release/POSIX-strftime-Compiler/
17BuildRequires: perl-Module-Build
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21%endif
22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26POSIX::strftime::Compiler provides GNU C library compatible strftime(3). But this module will not affected
27by the system locale. This feature is useful when you want to write loggers, servers and portable applications.
28
29For generate same result strings on any locale, POSIX::strftime::Compiler wraps POSIX::strftime and
30converts some format characters to perl code
31
32%prep
33%setup -q -n %{pdir}-%{pnam}-%{version}
34
35%build
36%{__perl} Build.PL \
37 destdir=$RPM_BUILD_ROOT \
38 installdirs=vendor
39./Build
40
41%{?with_tests:./Build test}
42
43%install
44rm -rf $RPM_BUILD_ROOT
45
46./Build install
47
48install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
50
51%clean
52rm -rf $RPM_BUILD_ROOT
53
54%files
55%defattr(644,root,root,755)
56%doc Changes
751a225f
AM
57%{perl_vendorlib}/POSIX/strftime
58%{_mandir}/man3/POSIX::strftime::Compiler.3*
06750394 59%{_examplesdir}/%{name}-%{version}
This page took 0.074591 seconds and 4 git commands to generate.