File perl-Convert-SciEng.spec of Package perl-Convert-SciEng
#
# spec file for package perl-Convert-SciEng
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Convert-SciEng
Version: 0.91
Release: 0
%define cpan_name Convert-SciEng
Summary: Convert 'numbers' with scientific postfixes
License: CHECK(GPL-1.0+ or Artistic-1.0)
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Convert-SciEng/
Source0: http://www.cpan.org/authors/id/C/CO/COLINK/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
%description
Convert::SciEng supplies an object for converting numbers to and from
scientific notation with user-defined formatting. Three different styles of
fix are supported, standard CS, SI and SPICE:
SPICE = P T g x k '' m u n p f a
SI = P T G M K '' m u n p f a
Fix = 1e15 1e12 1e9 1e6 1e3 1e0 1e-3 1e-6 1e-9 1e-12 1e-15 1e-18
CS = P T G M K ''
Fix = 2^50 2^40 2^30 2^20 2^10 2^0
Methods are supplied for creating the object and defining which fix style
it will use, and defining for format of numbers as they are converted to
scientific notation.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog