From 843dba8501f88e9c56e8489fb89a3d6bab44c45a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Pialasse Date: Thu, 23 Jan 2025 21:47:06 -0500 Subject: [PATCH] * Thu Jan 23 2025 Jean-Philippe Pialasse 1.226-2.sme - import to SME11 --- Data-UUID-1.226.tar.gz | 3 + perl-Data-UUID.spec | 154 +++++++++++++++++++++++++---------------- 2 files changed, 98 insertions(+), 59 deletions(-) create mode 100644 Data-UUID-1.226.tar.gz diff --git a/Data-UUID-1.226.tar.gz b/Data-UUID-1.226.tar.gz new file mode 100644 index 0000000..4022300 --- /dev/null +++ b/Data-UUID-1.226.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:093d57ffa0d411a94bafafae495697db26f5c9d0277198fe3f7cf2be22996453 +size 17647 diff --git a/perl-Data-UUID.spec b/perl-Data-UUID.spec index 62289dd..b6ce856 100644 --- a/perl-Data-UUID.spec +++ b/perl-Data-UUID.spec @@ -1,75 +1,111 @@ -%define name perl-Data-UUID -%define version 1.0 -%define release 1 -Summary: This is what perl-Data-UUID does. -Name: %{name} -Version: %{version} -Release: %{release}%{?dist} -Source: %{name}-%{version}.tar.gz -License: GNU GPL version 2 -Group: SMEserver/addon -BuildRoot: %{_tmppath}/%{name}-buildroot -Prefix: %{_prefix} -BuildArchitectures: noarch -BuildRequires: smeserver-devtools -Requires: smeserver-release >= 11.0 -AutoReqProv: no +Name: perl-Data-UUID +Version: 1.226 +Release: 2%{?org_tag}%{?dist} +Summary: Perl extension for generating Globally/Universally Unique Identifiers (GUIDs/UUIDs) +License: BSD +Group: Development/Libraries +URL: http://search.cpan.org/dist/Data-UUID/ +Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Data-UUID-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +# Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(Pod::Usage) +BuildRequires: perl(warnings) +# Module Runtime +BuildRequires: perl(Carp) +BuildRequires: perl(Digest::MD5) +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Exporter) +BuildRequires: perl(strict) +# Test Suite +BuildRequires: perl(Test::More) +BuildRequires: perl(threads) +%if ! 0%{?_module_build} +# Optional Tests +BuildRequires: perl(Test::Pod) >= 1.14 +BuildRequires: perl(Test::Pod::Coverage) >= 1.06 +%endif +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +# Avoid provides for private shared objects +%{?perl_default_filter} + %description -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 (see RFC 4122). -It provides a 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 module provides several methods to create a UUID. In all methods, - is a UUID and is a free form string. +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. -%changelog -* Day MMMM DD YYYY 1.0-1.sme -- Initial code - create RPM [SME:99999] +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 a 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 module provides several methods to create a UUID. In all methods, + is a UUID and is a free form string. %prep - -%setup -q +%setup -q -n Data-UUID-%{version} %build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT -(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) -rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ -> %{name}-%{version}-filelist -#echo "%doc COPYING" >> %{name}-%{version}-filelist -#--dir 'attr(755,user,grp)' \ -#--file 'attr(755,root,root)' \ +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test AUTHOR_TESTING=1 +perl smp-test/collision.t %clean -cd .. -rm -rf %{name}-%{version} +rm -rf %{buildroot} -%pre +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Data* +%{_mandir}/man3/* -%preun +%changelog +* Thu Jan 23 2025 Jean-Philippe Pialasse 1.226-2.sme +- import to SME11 -%post +* Thu Jan 13 2022 Gavin Carr 1.226-1 +- Update to version 1.226. -%postun -#uninstall -%files -f %{name}-%{version}-filelist -%defattr(-,root,root) +* Wed Jul 23 2014 Gavin Carr 1.219-1 +- Update to version 1.219. + +* Tue Feb 15 2011 Gavin Carr 1.217-1 +- Specfile autogenerated by cpanspec 1.79.