From 65da76968eb7135572ab5c268c853e99822bdee3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 09:48:06 +0100 Subject: [PATCH] perl 5.16 mass rebuild [release 0.52-3mamba;Tue Nov 13 2012] --- README.md | 2 ++ perl-Text-Format.spec | 60 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 perl-Text-Format.spec diff --git a/README.md b/README.md index a3b9697..9bb0841 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Text-Format +The format routine will format under all circumstances even if the width isn't enough to contain the longest words. Text::Wrap will die under these circumstances, although I am told this is fixed. If columns is set to a small number and words are longer than that and the leading 'whitespace' than there will be a single word on each line. This will let you make a simple word list which could be indented or right aligned. There is a chance for croaking if you try to subvert the module. If you don't pass in text then the internal text is worked on, though not modfied. Text::Format is meant for more powerful text formatting than Text::Wrap allows. I also have a module called Text::NWrap that is meant as a direct replacement for Text::Wrap. Text::NWrap requires Text::Format since it uses Text::Format->format to do the actual wrapping but gives you the interface of Text::Wrap + diff --git a/perl-Text-Format.spec b/perl-Text-Format.spec new file mode 100644 index 0000000..f06aa78 --- /dev/null +++ b/perl-Text-Format.spec @@ -0,0 +1,60 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Text-Format +Version: 0.52 +Release: 3mamba +Summary: Text::Format - Various subroutines to format text. +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/G/GA/GABOR/Text-Format%{version}.tar.gz +License: Artistic, GPL +Requires: perl >= %perl_major_ver +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel >= %perl_major_ver +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The format routine will format under all circumstances even if the width isn't enough to contain the longest words. Text::Wrap will die under these circumstances, although I am told this is fixed. If columns is set to a small number and words are longer than that and the leading 'whitespace' than there will be a single word on each line. This will let you make a simple word list which could be indented or right aligned. There is a chance for croaking if you try to subvert the module. If you don't pass in text then the internal text is worked on, though not modfied. Text::Format is meant for more powerful text formatting than Text::Wrap allows. I also have a module called Text::NWrap that is meant as a direct replacement for Text::Wrap. Text::NWrap requires Text::Format since it uses Text::Format->format to do the actual wrapping but gives you the interface of Text::Wrap + +%prep + +%setup -q -n Text-Format%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Tue Nov 13 2012 Silvan Calarco 0.52-3mamba +- perl 5.16 mass rebuild + +* Wed Nov 05 2008 Silvan Calarco 0.52-2mamba +- automatic rebuild by autodist + +* Fri Oct 03 2008 gil 0.52-1mamba +- package created by autospec