forked from pool/perl-Number-Format
Compare commits
10 Commits
57d1d7a59a
...
d84626e5cb
Author | SHA256 | Date | |
---|---|---|---|
d84626e5cb | |||
c954b543be | |||
11409c1fe5 | |||
|
8b5c894f9a | ||
|
ecb0850183 | ||
|
74357df045 | ||
a5b55e462e | |||
|
bc5405ecd2 | ||
d58fc23669 | |||
|
979491e8da |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5470ebe18d76771be9ed70ce57c7905cc7bb501f0b1fedf14770e60b41dc1dbd
|
|
||||||
size 19093
|
|
3
Number-Format-1.76.tar.gz
Normal file
3
Number-Format-1.76.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0e0060eb363635a885706c6a26f5fcaafeae759f7b2acae49dda70e195dd44d6
|
||||||
|
size 24946
|
23
cpanspec.yml
Normal file
23
cpanspec.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
description_paragraphs: 3
|
||||||
|
#no_testing: broken upstream
|
||||||
|
#sources:
|
||||||
|
# - source1
|
||||||
|
# - source2
|
||||||
|
#patches:
|
||||||
|
# foo.patch: -p1
|
||||||
|
# bar.patch:
|
||||||
|
#preamble: |-
|
||||||
|
# BuildRequires: gcc-c++
|
||||||
|
#post_prep: |-
|
||||||
|
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||||
|
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||||
|
#post_install: |-
|
||||||
|
# sed on %{name}.files
|
||||||
|
#license: SUSE-NonFree
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
@@ -1,3 +1,68 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 26 03:06:43 UTC 2023 - Tina Müller <timueller+perl@suse.de>
|
||||||
|
|
||||||
|
- updated to 1.76
|
||||||
|
see /usr/share/doc/packages/perl-Number-Format/CHANGES
|
||||||
|
|
||||||
|
Changes for version 1.76 (May 25, 2023)
|
||||||
|
------------------------
|
||||||
|
- NOTE: This release was made by starting from the release archive on the
|
||||||
|
CPAN and then applying a patch. It does not reflect the contents of the
|
||||||
|
reference repository. Also, the file "bigfloat.t", referenced in the v1.75
|
||||||
|
changelog, was not in the previous release and is therefore not included
|
||||||
|
here.
|
||||||
|
- Patch to continue working on v5.38 upon its release (thanks, Karl
|
||||||
|
Williamson)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 29 01:24:48 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.75
|
||||||
|
see /usr/share/doc/packages/perl-Number-Format/CHANGES
|
||||||
|
|
||||||
|
Changes for version 1.75 (June 25, 2015)
|
||||||
|
------------------------
|
||||||
|
- Export only necessary from POSIX (RT#99970, thanks Alexandr Ciornii)
|
||||||
|
- Upgrade Makefile.PL (thanks Alexandr Ciornii)
|
||||||
|
- Fix testing issue with missing locales (RT 97607, 97766, thanks to KHW)
|
||||||
|
(thanks David Solimano)
|
||||||
|
- Fix testing issue with bad Russian data on some platforms (RT 92666)
|
||||||
|
(thanks David Solimano)
|
||||||
|
- Add t/bigfloat.t (thanks Paul Miller / Alexandr Ciornii)
|
||||||
|
|
||||||
|
Changes for version 1.74 (April 19, 2011)
|
||||||
|
------------------------
|
||||||
|
- Only Perl 5.10.0 and newer supported
|
||||||
|
- Allow multi-character (e.g. " " for thousands_sep) (thanks
|
||||||
|
Nick Patch; RT 65489)
|
||||||
|
- Strip out illegal negative values returned by localeconv(),
|
||||||
|
observed on Windows - see @IGNORE_NEGATIVE (thanks Adam Kennedy;
|
||||||
|
RT 56802)
|
||||||
|
- Manage warnings when undef is passed to methods (RT 48038)
|
||||||
|
- Fix round() for Math::BigFloat objects (RT 62059)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 17 12:08:12 UTC 2013 - cfarrell@suse.com
|
||||||
|
|
||||||
|
- license update: Artistic-1.0 or GPL-1.0+
|
||||||
|
See the bottom of README
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 06 16:28:12 UTC 2012 - mopp@gmx.net
|
||||||
|
|
||||||
|
- removed perl-macros for openSUSE 11.4 and higher.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 22 14:50:24 UTC 2011 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
- update to 1.73
|
||||||
|
+ Add support for IEC60027 (Ki, Mi, Gi prefixes) with mode option
|
||||||
|
+ Minor tweak to format_bytes test for German locales
|
||||||
|
+ many bug fixes
|
||||||
|
+ for more details, please see:
|
||||||
|
/usr/share/doc/packages/perl-Number-Format/CHANGES
|
||||||
|
- specfile rebuild via cpanspec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 1 13:34:15 UTC 2010 - coolo@novell.com
|
Wed Dec 1 13:34:15 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@@ -1,47 +1,76 @@
|
|||||||
%define cpan_name Number-Format
|
#
|
||||||
|
# spec file for package perl-Number-Format
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
#
|
||||||
|
# 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-%cpan_name
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
Version: 1.61a
|
#
|
||||||
Release: 1
|
|
||||||
Provides: %cpan_name
|
|
||||||
Group: Development/Libraries/Perl
|
%define cpan_name Number-Format
|
||||||
License: Artistic
|
Name: perl-Number-Format
|
||||||
URL: http://search.cpan.org/dist/Number-Format
|
Version: 1.76
|
||||||
|
Release: 0
|
||||||
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Summary: Perl extension for formatting numbers
|
Summary: Perl extension for formatting numbers
|
||||||
Source: %cpan_name-%{version}.tar.gz
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
|
||||||
%{perl_requires}
|
Source1: cpanspec.yml
|
||||||
|
BuildArch: noarch
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
These functions provide an easy means of formatting numbers in a
|
These functions provide an easy means of formatting numbers in a manner
|
||||||
manner suitable for displaying to the user.
|
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. The constructor
|
||||||
|
'new()' can be used to set the parameters of the formatting engine. Valid
|
||||||
|
parameters are:
|
||||||
|
|
||||||
|
THOUSANDS_SEP - character inserted between groups of 3 digits
|
||||||
|
DECIMAL_POINT - character separating integer and fractional parts
|
||||||
|
MON_THOUSANDS_SEP - like THOUSANDS_SEP, but used for format_price
|
||||||
|
MON_DECIMAL_POINT - like DECIMAL_POINT, but used for format_price
|
||||||
|
INT_CURR_SYMBOL - character(s) denoting currency (see format_price())
|
||||||
|
DECIMAL_DIGITS - number of digits to the right of dec point (def 2)
|
||||||
|
DECIMAL_FILL - boolean; whether to add zeroes to fill out decimal
|
||||||
|
NEG_FORMAT - format to display negative numbers (def ``-x'')
|
||||||
|
KILO_SUFFIX - suffix to add when format_bytes formats kilobytes (trad)
|
||||||
|
MEGA_SUFFIX - " " " " " " megabytes (trad)
|
||||||
|
GIGA_SUFFIX - " " " " " " gigabytes (trad)
|
||||||
|
KIBI_SUFFIX - suffix to add when format_bytes formats kibibytes (iec)
|
||||||
|
MEBI_SUFFIX - " " " " " " mebibytes (iec)
|
||||||
|
GIBI_SUFFIX - " " " " " " gibibytes (iec)
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %cpan_name-1.61
|
%autosetup -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%files -f %{name}.files
|
||||||
# clean up the hard disc after build
|
%doc CHANGES README TODO
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc %{_mandir}/man?/*
|
|
||||||
%{perl_vendorlib}/Number
|
|
||||||
%{perl_vendorarch}/auto/Number
|
|
||||||
%doc MANIFEST
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user