diff --git a/POSIX-strftime-Compiler-0.44.tar.gz b/POSIX-strftime-Compiler-0.44.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d0c08939e3d4fbfdf6d8591a421670654c9f9357 Binary files /dev/null and b/POSIX-strftime-Compiler-0.44.tar.gz differ diff --git a/perl-POSIX-strftime-Compiler.spec b/perl-POSIX-strftime-Compiler.spec new file mode 100644 index 0000000000000000000000000000000000000000..68cbcf0141f96c931559607de7cb91cf0f599ec2 --- /dev/null +++ b/perl-POSIX-strftime-Compiler.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-POSIX-strftime-Compiler +Version: 0.44 +Release: 1 +Summary: GNU C library compatible strftime for loggers and servers +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/POSIX-strftime-Compiler/ +Source0: http://www.cpan.org/authors/id/K/KA/KAZEBURO/POSIX-strftime-Compiler-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.008001 +BuildRequires: perl-generators +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(Module::Build) +BuildRequires: perl(POSIX) +BuildRequires: perl(Test::More) >= 0.98 +BuildRequires: perl(Time::Local) +Requires: perl(Carp) +Requires: perl(Exporter) +Requires: perl(POSIX) +Requires: perl(Time::Local) +%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. +%package help +Summary : GNU C library compatible strftime for loggers and servers +Provides: perl-POSIX-strftime-Compiler-doc +%description help +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. +%prep +%setup -q -n POSIX-strftime-Compiler-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Build.PL --installdirs=vendor +./Build + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check || : +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes cpanfile LICENSE META.json minil.toml README.md +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.44-1 +- Specfile autogenerated by Perl_Bot