2011-08-22 15:02:18 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Number-Format
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
Name: perl-Number-Format
|
|
|
|
Version: 1.73
|
|
|
|
Release: 1
|
|
|
|
License: Artistic
|
|
|
|
%define cpan_name Number-Format
|
|
|
|
Summary: Perl extension for formatting numbers
|
|
|
|
Url: http://search.cpan.org/dist/Number-Format/
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
#Source: http://www.cpan.org/authors/id/W/WR/WRW/Number-Format-%%{version}.tar.gz
|
|
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(POSIX)
|
2010-10-19 08:46:51 +00:00
|
|
|
BuildRequires: perl
|
2012-12-07 15:29:12 +00:00
|
|
|
%if 0%{?suse_version} <= 1130
|
2010-12-03 14:45:10 +00:00
|
|
|
BuildRequires: perl-macros
|
2012-12-07 15:29:12 +00:00
|
|
|
%endif
|
2011-08-22 15:02:18 +00:00
|
|
|
Requires: perl(Carp)
|
|
|
|
Requires: perl(POSIX)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
%{perl_requires}
|
2008-12-30 10:37:26 +00:00
|
|
|
|
|
|
|
%description
|
2011-08-22 15:02:18 +00:00
|
|
|
These functions provide an easy means of formatting numbers in a manner
|
|
|
|
suitable for displaying to the user.
|
|
|
|
|
|
|
|
There are two ways to use this package. One is to declare an object of type
|
|
|
|
Number::Format, which you can think of as a formatting engine. The various
|
|
|
|
functions defined here are provided as object methods.
|
2008-12-30 10:37:26 +00:00
|
|
|
|
|
|
|
%prep
|
2011-08-22 15:02:18 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-12-30 10:37:26 +00:00
|
|
|
|
|
|
|
%build
|
2011-08-22 15:02:18 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS='vendor'
|
|
|
|
%{__make} %{?_smp_mflags}
|
2008-12-30 10:37:26 +00:00
|
|
|
|
|
|
|
%check
|
2011-08-22 15:02:18 +00:00
|
|
|
%{__make} test
|
2008-12-30 10:37:26 +00:00
|
|
|
|
|
|
|
%install
|
2011-08-22 15:02:18 +00:00
|
|
|
%perl_make_install
|
2008-12-30 10:37:26 +00:00
|
|
|
%perl_process_packlist
|
2011-08-22 15:02:18 +00:00
|
|
|
%perl_gen_filelist
|
2008-12-30 10:37:26 +00:00
|
|
|
|
|
|
|
%clean
|
2011-08-22 15:02:18 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2008-12-30 10:37:26 +00:00
|
|
|
|
2011-08-22 15:02:18 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
%doc CHANGES MANIFEST README TODO
|
2008-12-30 10:37:26 +00:00
|
|
|
|
2011-08-22 15:02:18 +00:00
|
|
|
%changelog
|