diff --git a/Data-UUID-1.202.tar.bz2 b/Data-UUID-1.202.tar.bz2 deleted file mode 100644 index ea5ba11..0000000 --- a/Data-UUID-1.202.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:efb0a517b189d3fd45335b1cdded9574e6c984321acbd8b39dca7d0dcea55a0a -size 13019 diff --git a/Data-UUID-1.217.tar.gz b/Data-UUID-1.217.tar.gz new file mode 100644 index 0000000..674e44c --- /dev/null +++ b/Data-UUID-1.217.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:18c0c41998b211b4249102367400d2d3aa7df479c3a3368a32c0d6c0299bfe6d +size 15907 diff --git a/perl-Data-UUID.changes b/perl-Data-UUID.changes index 8f857da..3da56a7 100644 --- a/perl-Data-UUID.changes +++ b/perl-Data-UUID.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +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) + +------------------------------------------------------------------- +Wed Dec 1 13:31:41 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Tue Jul 20 15:38:33 UTC 2010 - chris@computersalat.de + +- update to 1.215 + - no changes, released as non-trial + - Use gv_stashpv instead of gv_stashpvs (Florian Ragwitz) + - Pass along the interpreter to ptable_store, if needed (Florian Ragwitz) + - fix MANIFEST (thanks for noticing, Florian Ragwitz) + - add a uniqueness test to threads.t (thanks, SCHWERN!) + - thread safety, added by Florian Ragwitz +- recreated by cpanspec 1.78 + +------------------------------------------------------------------- +Wed Apr 7 17:38:52 UTC 2010 - chris@computersalat.de + +- update to 1.203 + - avoid interactive configuration (thanks, DAXIM) +- fix perl-macros deps + +------------------------------------------------------------------- +Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de + +- enable parallel build + ------------------------------------------------------------------- Sat Jul 25 19:36:30 CEST 2009 - chris@computersalat.de diff --git a/perl-Data-UUID.spec b/perl-Data-UUID.spec index b2fccf0..10f42fe 100644 --- a/perl-Data-UUID.spec +++ b/perl-Data-UUID.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-Data-UUID +# spec file for package perl-Data-UUID (Version 1.217) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 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,58 +15,122 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - -#Distribution: %dist -#Packager: %packager -#Vendor: %vendor - -Name: perl-Data-UUID -%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) -Summary: Perl extension for generating Globally/Universally Unique Identifiers -Version: 1.202 -Release: 1 -License: BSD License -Group: Development/Libraries/Perl -Url: http://search.cpan.org/perldoc?Data::UUID -Source: %{cpan_name}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Name: perl-Data-UUID +Version: 1.217 +Release: 1 +License: BSD +%define cpan_name Data-UUID +Summary: Perl extension for generating Globally/Universally +Url: http://search.cpan.org/dist/Data-UUID/ +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 BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Digest::MD5) -Requires: perl = %{perl_version} -Requires: 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. +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-uuids-guids-01.txt). - 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. +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. - Author: Alexander Golomshtok +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(, ); + $ug->create_from_name_bin(, ); + + # creates UUID string, using conventional UUID string format, + # such as: 4162F712-1DD2-11B2-B17E-C09EFE1DC403 + $ug->create_str(); + $ug->create_from_name_str(, ); + + # creates UUID string as a hex string, + # such as: 0x4162F7121DD211B2B17EC09EFE1DC403 + $ug->create_hex(); + $ug->create_from_name_hex(, ); + + # creates UUID string as a Base64-encoded string + $ug->create_b64(); + $ug->create_from_name_b64(, ); + + Binary UUIDs can be converted to printable strings using following methods: + + # convert to conventional string representation + $ug->to_string(); + + # convert to hex string + $ug->to_hexstring(); + + # convert to Base64-encoded string + $ug->to_b64string(); + + Conversly, string UUIDs can be converted back to binary form: + + # recreate binary UUID from string + $ug->from_string(); + $ug->from_hexstring(); + + # recreate binary UUID from Base64-encoded string + $ug->from_b64string(); + + 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(, ); + +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 OPTIMIZE="$RPM_OPT_FLAGS -Wall" -%{__make} +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} %check %{__make} test @@ -76,13 +140,11 @@ perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf $RPM_BUILD_ROOT +%clean +%{__rm} -rf %{buildroot} %files -f %{name}.files -# normally you only need to check for doc files -%defattr(-,root,root) +%defattr(644,root,root,755) %doc Changes LICENSE README %changelog -