commit perl-Data-UUID for openSUSE:Factory
Hello community, here is the log from the commit of package perl-Data-UUID for openSUSE:Factory checked in at Thu Mar 31 14:25:39 CEST 2011. -------- --- perl-Data-UUID/perl-Data-UUID.changes 2010-12-01 14:42:23.000000000 +0100 +++ /mounts/work_src_done/STABLE/perl-Data-UUID/perl-Data-UUID.changes 2011-03-31 11:13:08.000000000 +0200 @@ -1,0 +2,7 @@ +Thu Mar 31 09:11:53 UTC 2011 - coolo@novell.com + +- update to 1.217 + - documentation fixes + - minor portability tweak to UUID.xs (thanks, Florian Ragwitz) + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- Data-UUID-1.215.tar.gz New: ---- Data-UUID-1.217.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Data-UUID.spec ++++++ --- /var/tmp/diff_new_pack.yKR5Np/_old 2011-03-31 14:24:38.000000000 +0200 +++ /var/tmp/diff_new_pack.yKR5Np/_new 2011-03-31 14:24:38.000000000 +0200 @@ -1,7 +1,7 @@ # -# spec file for package perl-Data-UUID (Version 1.215) +# spec file for package perl-Data-UUID # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products 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,55 +15,123 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: perl-Data-UUID -%define cpan_name Data-UUID -Summary: Generating Globally/Universally Unique Identifiers (GUIDs/UUIDs) -Version: 1.215 -Release: 2 +Version: 1.217 +Release: 1 License: BSD -Group: Development/Libraries/Perl +%define cpan_name Data-UUID +Summary: Perl extension for generating Globally/Universally Url: http://search.cpan.org/dist/Data-UUID/ -Source: http://www.cpan.org/modules/by-module/Data/Data-UUID-%{version}.tar.gz +Group: Development/Libraries/Perl +#Source: http://www.cpan.org/authors/id/R/RJ/RJBS/Data-UUID-%{version}.tar.gz +Source: %{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Digest::MD5) Requires: perl(Digest::MD5) +%{perl_requires} %description -This module provides a framework for generating UUIDs (Universally Unique -Identifiers, also known as GUIDs (Globally Unique Identifiers). A UUID is -128 bits long, and is guaranteed to be different from all other UUIDs/GUIDs -generated until 3400 CE. +This module provides a framework for generating v3 UUIDs (Universally +Unique Identifiers, also known as GUIDs (Globally Unique Identifiers). A +UUID is 128 bits long, and is guaranteed to be different from all other +UUIDs/GUIDs generated until 3400 CE. UUIDs were originally used in the Network Computing System (NCS) and later in the Open Software Foundation's (OSF) Distributed Computing Environment. -Currently many different technologies rely on UUIDs to provide unique identity -for various software components. Microsoft COM/DCOM for instance, uses GUIDs -very extensively to uniquely identify classes, applications and components -across network-connected systems. - -The algorithm for UUID generation, used by this extension, is described in the -Internet Draft "UUIDs and GUIDs" by Paul J. Leach and Rich Salz -(http://hegel.ittc.ku.edu/topics/internet/internet-drafts/draft-l/draft-leach...). -It provides reasonably efficient and reliable framework for generating UUIDs -and supports fairly high allocation rates -- 10 million per second per machine --- and therefore is suitable for identifying both extremely short-lived and -very persistent objects on a given system as well as across the network. - -Author: -------- - Alexander Golomshtok <agolomsh@cpan.org> +Currently many different technologies rely on UUIDs to provide unique +identity for various software components. Microsoft COM/DCOM for instance, +uses GUIDs very extensively to uniquely identify classes, applications and +components across network-connected systems. + +The algorithm for UUID generation, used by this extension, is described in +the Internet Draft "UUIDs and GUIDs" by Paul J. Leach and Rich Salz. (See +RFC 4122.) It provides reasonably efficient and reliable framework for +generating UUIDs and supports fairly high allocation rates -- 10 million +per second per machine -- and therefore is suitable for identifying both +extremely short-lived and very persistent objects on a given system as well +as across the network. + +This modules provides several methods to create a UUID: + + # creates binary (16 byte long binary value) UUID. + $ug->create(); + $ug->create_bin(); + + # creates binary (16-byte long binary value) UUID based on particular + # namespace and name string. + $ug->create_from_name(<namespace>, <name>); + $ug->create_from_name_bin(<namespace>, <name>); + + # creates UUID string, using conventional UUID string format, + # such as: 4162F712-1DD2-11B2-B17E-C09EFE1DC403 + $ug->create_str(); + $ug->create_from_name_str(<namespace>, <name>); + + # creates UUID string as a hex string, + # such as: 0x4162F7121DD211B2B17EC09EFE1DC403 + $ug->create_hex(); + $ug->create_from_name_hex(<namespace>, <name>); + + # creates UUID string as a Base64-encoded string + $ug->create_b64(); + $ug->create_from_name_b64(<namespace>, <name>); + + Binary UUIDs can be converted to printable strings using following methods: + + # convert to conventional string representation + $ug->to_string(<uuid>); + + # convert to hex string + $ug->to_hexstring(<uuid>); + + # convert to Base64-encoded string + $ug->to_b64string(<uuid>); + + Conversly, string UUIDs can be converted back to binary form: + + # recreate binary UUID from string + $ug->from_string(<uuid>); + $ug->from_hexstring(<uuid>); + + # recreate binary UUID from Base64-encoded string + $ug->from_b64string(<uuid>); + + Finally, two binary UUIDs can be compared using the following method: + + # returns -1, 0 or 1 depending on whether uuid1 less + # than, equals to, or greater than uuid2 + $ug->compare(<uuid1>, <uuid2>); + +Examples: + + use Data::UUID; + + # this creates a new UUID in string form, based on the standard namespace + # UUID NameSpace_URL and name "www.mycompany.com" + + $ug = new Data::UUID; + print $ug->create_from_name_str(NameSpace_URL, "www.mycompany.com"); + +EXPORT + The module allows exporting of several standard namespace UUIDs: + + * NameSpace_DNS + + * NameSpace_URL + + * NameSpace_OID + + * NameSpace_X500 %prep %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__make} %{?_smp_mflags} %check @@ -75,10 +143,10 @@ %perl_gen_filelist %clean -%{__rm} -rf $RPM_BUILD_ROOT +%{__rm} -rf %{buildroot} %files -f %{name}.files -%defattr(-,root,root,-) +%defattr(644,root,root,755) %doc Changes LICENSE README %changelog ++++++ Data-UUID-1.215.tar.gz -> Data-UUID-1.217.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-UUID-1.215/Changes new/Data-UUID-1.217/Changes --- old/Data-UUID-1.215/Changes 2010-05-25 04:46:24.000000000 +0200 +++ new/Data-UUID-1.217/Changes 2010-09-14 03:47:32.000000000 +0200 @@ -1,5 +1,12 @@ Revision history for Perl extension Data::UUID. +1.217 2010-09-14 + - documentation fixes + - minor portability tweak to UUID.xs (thanks, Florian Ragwitz) + +1.216 2010-09-04 + - documentation fixes only + 1.215 2010-05-24 - no changes, released as non-trial diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-UUID-1.215/META.yml new/Data-UUID-1.217/META.yml --- old/Data-UUID-1.215/META.yml 2010-05-25 04:46:31.000000000 +0200 +++ new/Data-UUID-1.217/META.yml 2010-09-14 03:48:13.000000000 +0200 @@ -1,6 +1,6 @@ --- #YAML:1.0 name: Data-UUID -version: 1.215 +version: 1.217 abstract: Perl extension for generating Globally/Universally author: - Ricardo Signes <rjbs[at]cpan.org> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-UUID-1.215/README new/Data-UUID-1.217/README --- old/Data-UUID-1.215/README 2010-05-25 04:46:24.000000000 +0200 +++ new/Data-UUID-1.217/README 2010-09-04 20:15:43.000000000 +0200 @@ -1,4 +1,4 @@ -Data::UUID version 1.215 +Data::UUID version 1.216 ================= Data::UUID - Perl extension for generating Globally/Universally @@ -32,10 +32,6 @@ has no write permissions to. In this case, the state information will not be saved, which will maximize the chances of generating duplicate UUIDs. -DEPENDENCIES - - No dependencies. - COPYRIGHT AND LICENCE Copyright (C) 2001, Alexander Golomshtok diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-UUID-1.215/UUID.pm new/Data-UUID-1.217/UUID.pm --- old/Data-UUID-1.215/UUID.pm 2010-05-25 04:46:24.000000000 +0200 +++ new/Data-UUID-1.217/UUID.pm 2010-09-14 03:47:44.000000000 +0200 @@ -19,7 +19,7 @@ NameSpace_URL NameSpace_X500 ); -$VERSION = '1.215'; +$VERSION = '1.217'; bootstrap Data::UUID $VERSION; @@ -46,7 +46,7 @@ =head1 DESCRIPTION -This module provides a framework for generating UUIDs (Universally Unique +This module provides a framework for generating v3 UUIDs (Universally Unique Identifiers, also known as GUIDs (Globally Unique Identifiers). A UUID is 128 bits long, and is guaranteed to be different from all other UUIDs/GUIDs generated until 3400 CE. @@ -118,7 +118,7 @@ Examples: - use Data::UUID qw(:all); + use Data::UUID; # this creates a new UUID in string form, based on the standard namespace # UUID NameSpace_URL and name "www.mycompany.com" @@ -150,10 +150,4 @@ The Internet Draft "UUIDs and GUIDs" by Paul J. Leach and Rich Salz (RFC 4122) -"Primary Key Reengineering Projects: The Problem" by Tom Johnston -L<http://www.dmreview.com/editorial/dmreview/print_action.cfm?EdID=1866> - -"Primary Key Reengineering Projects: The Solution" by Tom Johnston -L<http://www.dmreview.com/editorial/dmreview/print_action.cfm?EdID=2004> - =cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-UUID-1.215/UUID.xs new/Data-UUID-1.217/UUID.xs --- old/Data-UUID-1.215/UUID.xs 2010-05-25 04:46:24.000000000 +0200 +++ new/Data-UUID-1.217/UUID.xs 2010-09-14 03:46:39.000000000 +0200 @@ -25,8 +25,8 @@ static perl_mutex instances_mutex; static void inc(pTHX_ ptable_ent *ent, void *ud) { - PERL_UNUSED_VAR(ud); UV count = (UV)ent->val; + PERL_UNUSED_VAR(ud); ptable_store(instances, ent->key, (void *)++count); } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de