8
0

Compare commits

...

10 Commits

Author SHA256 Message Date
d84626e5cb Accepting request 1090356 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1090356
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Number-Format?expand=0&rev=5
2023-06-02 22:07:08 +00:00
c954b543be Accepting request 1090337 from devel:languages:perl:autoupdate
- 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)

OBS-URL: https://build.opensuse.org/request/show/1090337
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Number-Format?expand=0&rev=14
2023-06-01 15:22:54 +00:00
11409c1fe5 Accepting request 314318 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/314318
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Number-Format?expand=0&rev=4
2015-06-30 08:19:16 +00:00
Stephan Kulow
8b5c894f9a Accepting request 314317 from devel:languages:perl:autoupdate
- 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)

OBS-URL: https://build.opensuse.org/request/show/314317
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Number-Format?expand=0&rev=12
2015-06-29 04:57:05 +00:00
Stephan Kulow
ecb0850183 Accepting request 172796 from devel:languages:perl
needed by nagios

OBS-URL: https://build.opensuse.org/request/show/172796
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Number-Format?expand=0&rev=1
2013-04-22 12:31:19 +00:00
Stephan Kulow
74357df045 - use full URL
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Number-Format?expand=0&rev=10
2013-04-22 09:17:21 +00:00
a5b55e462e Accepting request 148826 from home:babelworx:ldig:branches:devel:languages:perl
license update: Artistic-1.0 or GPL-1.0+
See the bottom of README

OBS-URL: https://build.opensuse.org/request/show/148826
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Number-Format?expand=0&rev=9
2013-01-17 13:37:33 +00:00
Lars Vogdt
bc5405ecd2 ran spec cleaner only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Number-Format?expand=0&rev=8
2013-01-15 19:12:34 +00:00
d58fc23669 Accepting request 144514 from server:monitoring
removed perl-macros for openSUSE 11.4 and higher (forwarded request 144427 from mopp)

OBS-URL: https://build.opensuse.org/request/show/144514
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Number-Format?expand=0&rev=7
2012-12-07 15:29:12 +00:00
Lars Vogdt
979491e8da - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Number-Format?expand=0&rev=6
2011-08-22 15:02:18 +00:00
5 changed files with 150 additions and 33 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5470ebe18d76771be9ed70ce57c7905cc7bb501f0b1fedf14770e60b41dc1dbd
size 19093

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e0060eb363635a885706c6a26f5fcaafeae759f7b2acae49dda70e195dd44d6
size 24946

23
cpanspec.yml Normal file
View 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

View File

@@ -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. "&nbsp;" 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

View File

@@ -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
Summary: Perl extension for formatting numbers Release: 0
Source: %cpan_name-%{version}.tar.gz License: Artistic-1.0 OR GPL-1.0-or-later
BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Perl extension for formatting numbers
%{perl_requires} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
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