Accepting request 296006 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/296006
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-enum?expand=0&rev=2
This commit is contained in:
Stephan Kulow
2015-04-13 20:36:01 +00:00
committed by Git OBS Bridge
parent e10bd12671
commit a892cf8230
4 changed files with 24 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-enum (Version 1.016)
# spec file for package perl-enum
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@@ -15,15 +15,16 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-enum
Version: 1.016
Release: 1
License: Permission to use, modify, and redistribute this module granted under the same terms as *Perl*.
Version: 1.10
Release: 0
%define cpan_name enum
Summary: C style enumerated types and bitmask flags in Perl
Url: http://search.cpan.org/dist/enum/
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/Z/ZE/ZENIN/%{cpan_name}-%{version}.tar.gz
Url: http://search.cpan.org/dist/enum/
Source: http://www.cpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@@ -31,15 +32,14 @@ BuildRequires: perl-macros
%{perl_requires}
%description
Defines a set of symbolic constants with ordered numeric values ala *C*
*enum* types.
This module is used to define a set of constants with ordered numeric
values, similar to the 'enum' type in the C programming language. You can
also define bitmask constants, where the value assigned to each constant
has exactly one bit set (eg 1, 2, 4, 8, etc).
Now capable of creating creating ordered bitmask constants as well. See the
*BITMASKS* section for details.
What are they good for? Typical uses would be for giving mnemonic names to
indexes of arrays. Such arrays might be a list of months, days, or a return
value index from a function such as localtime():
What are enumerations good for? Typical uses would be for giving mnemonic
names to indexes of arrays. Such arrays might be a list of months, days, or
a return value index from a function such as localtime():
use enum qw(
:Months_=0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
@@ -73,9 +73,6 @@ when run under *use strict*. That is, if you misspell *Days_Fri* as
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README