2024-01-06 09:37:35 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-String-Format
|
2024-01-06 09:37:36 +01:00
|
|
|
Version: 1.18
|
2024-01-06 09:37:35 +01:00
|
|
|
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 <autodist@mambasoft.it>
|
2024-01-06 09:37:36 +01:00
|
|
|
URL: https://www.cpan.org
|
|
|
|
Source: https://cpan.metacpan.org/modules/by-module/String/String-Format-%{version}.tar.gz
|
2024-01-06 09:37:35 +01:00
|
|
|
License: GPL, Artistic
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
|
|
|
|
%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
|
2024-01-06 09:37:36 +01:00
|
|
|
* Wed Feb 24 2021 Automatic Build System <autodist@mambasoft.it> 1.18-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:37:35 +01:00
|
|
|
* Mon Dec 17 2012 Automatic Build System <autodist@mambasoft.it> 1.17-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.16-1mamba
|
|
|
|
- package created by autospec
|