From 0675039454ba53e68d5b9eff3a155eb9a81efb5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 14 Nov 2019 15:06:43 +0100 Subject: [PATCH] - initial --- perl-POSIX-strftime-Compiler.spec | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 perl-POSIX-strftime-Compiler.spec diff --git a/perl-POSIX-strftime-Compiler.spec b/perl-POSIX-strftime-Compiler.spec new file mode 100644 index 0000000..16f227f --- /dev/null +++ b/perl-POSIX-strftime-Compiler.spec @@ -0,0 +1,60 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%define pdir POSIX +%define pnam strftime-Compiler +%include /usr/lib/rpm/macros.perl +Summary: POSIX::strftime::Compiler - GNU C library compatible strftime for loggers and servers +Name: perl-POSIX-strftime-Compiler +Version: 0.42 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/POSIX/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: c0a5f76b1b0ce9cdb90d627b017e6cf5 +URL: https://metacpan.org/release/POSIX-strftime-Compiler/ +BuildRequires: perl-Module-Build +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +POSIX::strftime::Compiler provides GNU C library compatible strftime(3). But this module will not affected +by the system locale. This feature is useful when you want to write loggers, servers and portable applications. + +For generate same result strings on any locale, POSIX::strftime::Compiler wraps POSIX::strftime and +converts some format characters to perl code + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Build.PL \ + destdir=$RPM_BUILD_ROOT \ + installdirs=vendor +./Build + +%{?with_tests:./Build test} + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes +%{perl_vendorlib}/POSIX/strftime/*.pm +%{_mandir}/man3/* +%{_examplesdir}/%{name}-%{version} -- 2.44.0