8
0
Files
perl-String-Format/perl-String-Format.spec

72 lines
1.8 KiB
RPMSpec

#
# spec file for package perl-String-Format (Version 1.16)
#
# Copyright (c) 2009 Novell
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: perl-String-Format
Version: 1.16
Release: 1
%define cpan_name String-Format
Provides: %cpan_name
Requires: perl = %{perl_version}
Autoreqprov: on
Group: Development/Libraries/Perl
License: Artistic License, GPL, see package
URL: http://search.cpan.org/~darren/String-Format-1.16
Summary: String::Format - sprintf-like string formatting capabilities
Source0: %{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: perl
%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. It was inspired by mutt's index_format and related
directives
(see <URL:http://www.mutt.org/doc/manual/manual-6.html#index_format>).
Authors:
Darren Chamberlain <darren@cpan.org>
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL
make
%check
make test
%install
%perl_make_install
%perl_process_packlist
%__rm -f %{buildroot}%{perl_vendorarch}/auto/String/Format/.packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes COPYING README
%doc %{_mandir}/man3/*
%dir %{perl_vendorlib}/String
%{perl_vendorlib}/String/Format.pm
/var/adm/perl-modules/%{name}
%changelog
* Mon Oct 12 2009 Robert Schweikert <rschweikert@novell.com> - String-Format
- Initial build.