diff --git a/README.md b/README.md index b8f74dd..1aa1a06 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # perl-String-Format +String::Format lets you define arbitrary printf-like format sequences to be expanded. +This module would be most useful in configuration files and reporting tools, where the +results of a query need to be formatted in a particular way. + diff --git a/perl-String-Format.spec b/perl-String-Format.spec new file mode 100644 index 0000000..494187f --- /dev/null +++ b/perl-String-Format.spec @@ -0,0 +1,55 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-String-Format +Version: 1.17 +Release: 1mamba +Summary: String::Format - sprintf-like string formatting capabilities with arbitrary format definitions +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/D/DA/DARREN/String-Format-%{version}.tar.gz +License: GPL, Artistic +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +String::Format lets you define arbitrary printf-like format sequences to be expanded. +This module would be most useful in configuration files and reporting tools, where the +results of a query need to be formatted in a particular way. + +%prep +%setup -q -n String-Format-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorlib}/String/ +%{_mandir}/man3/*.3pm.gz +%doc Changes COPYING README + +%changelog +* Mon Dec 17 2012 Automatic Build System 1.17-1mamba +- automatic version update by autodist + +* Fri Feb 18 2011 gil 1.16-1mamba +- package created by autospec