diff --git a/Stream-Buffered-0.03.tar.gz b/Stream-Buffered-0.03.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..50131b2eb0e4e7a51fb1c6878a315e21bd89c9af Binary files /dev/null and b/Stream-Buffered-0.03.tar.gz differ diff --git a/perl-Stream-Buffered.spec b/perl-Stream-Buffered.spec new file mode 100644 index 0000000000000000000000000000000000000000..977c5d36ccebd8d2a26d9195ba4365b53bf417b3 --- /dev/null +++ b/perl-Stream-Buffered.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Stream-Buffered +Version: 0.03 +Release: 1 +Summary: Temporary buffer to save bytes +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Stream-Buffered/ +Source0: http://www.cpan.org/authors/id/D/DO/DOY/Stream-Buffered-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.008001 +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(IO::File) >= 1.14 +Requires: perl(IO::File) >= 1.14 +%description +Stream::Buffered is a buffer class to store arbitrary length of byte +strings and then get a seekable filehandle once everything is buffered. It +uses PerlIO and/or temporary file to save the buffer depending on the +length of the size. +%package help +Summary : Temporary buffer to save bytes +Provides: perl-Stream-Buffered-doc +%description help +Stream::Buffered is a buffer class to store arbitrary length of byte +strings and then get a seekable filehandle once everything is buffered. It +uses PerlIO and/or temporary file to save the buffer depending on the +length of the size. +%prep +%setup -q -n Stream-Buffered-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +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 || : +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes cpanfile dist.ini LICENSE META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.03-1 +- Specfile autogenerated by Perl_Bot