diff --git a/.cvsignore b/.cvsignore index e69de29..d0944f4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +String-Format-1.14.tar.gz diff --git a/perl-String-Format.spec b/perl-String-Format.spec new file mode 100644 index 0000000..3089826 --- /dev/null +++ b/perl-String-Format.spec @@ -0,0 +1,56 @@ +Name: perl-String-Format +Version: 1.14 +Release: 1%{?dist} +Summary: Sprintf-like string formatting capabilities with arbitrary format definitions + +Group: Development/Libraries +License: GPL +URL: http://search.cpan.org/dist/String-Format/ +Source0: http://www.cpan.org/authors/id/D/DA/DARREN/String-Format-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%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 INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +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 -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes +%{perl_vendorlib}/String/ +%{_mandir}/man3/*.3pm* + + +%changelog +* Sat Sep 16 2006 Jose Pedro Oliveira - 1.14-1 +- First build. diff --git a/sources b/sources index e69de29..77e1147 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8301545d15baaddfd5e2e4296b48352b String-Format-1.14.tar.gz