* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.226-2.sme

- import to SME11
This commit is contained in:
Jean-Philippe Pialasse 2025-01-23 21:47:06 -05:00
parent 9d7ada5cb1
commit 8a08ae2ce3
2 changed files with 98 additions and 59 deletions

BIN
Data-UUID-1.226.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,75 +1,111 @@
%define name perl-Data-UUID Name: perl-Data-UUID
%define version 1.0 Version: 1.226
%define release 1 Release: 2%{?org_tag}%{?dist}
Summary: This is what perl-Data-UUID does. Summary: Perl extension for generating Globally/Universally Unique Identifiers (GUIDs/UUIDs)
Name: %{name} License: BSD
Version: %{version} Group: Development/Libraries
Release: %{release}%{?dist} URL: http://search.cpan.org/dist/Data-UUID/
Source: %{name}-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Data-UUID-%{version}.tar.gz
License: GNU GPL version 2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Group: SMEserver/addon # Module Build
BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: coreutils
Prefix: %{_prefix} BuildRequires: findutils
BuildArchitectures: noarch BuildRequires: gcc
BuildRequires: smeserver-devtools BuildRequires: make
Requires: smeserver-release >= 11.0 BuildRequires: perl-interpreter
AutoReqProv: no 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 %description
This module provides a framework for generating v3 UUIDs (Universally Unique This module provides a framework for generating v3 UUIDs (Universally
Identifiers, also known as GUIDs (Globally Unique Identifiers). A UUID is 128 Unique Identifiers, also known as GUIDs (Globally Unique Identifiers). A
bits long, and is guaranteed to be different from all other UUIDs/GUIDs UUID is 128 bits long, and is guaranteed to be different from all other
generated until 3400 CE. 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,
<namespace> is a UUID and <name> is a free form string.
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 The algorithm for UUID generation, used by this extension, is described in the
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme Internet Draft "UUIDs and GUIDs" by Paul J. Leach and Rich Salz (see RFC 4122).
- Initial code - create RPM [SME:99999] 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,
<namespace> is a UUID and <name> is a free form string.
%prep %prep
%setup -q -n Data-UUID-%{version}
%setup -q
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf %{buildroot}
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
rm -f %{name}-%{version}-filelist make pure_install PERL_INSTALL_ROOT=%{buildroot}
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
> %{name}-%{version}-filelist find %{buildroot} -type f -name .packlist -exec rm -f {} \;
#echo "%doc COPYING" >> %{name}-%{version}-filelist find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
#--dir <dir> 'attr(755,user,grp)' \ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
#--file <file> 'attr(755,root,root)' \
%{_fixperms} %{buildroot}/*
%check
make test AUTHOR_TESTING=1
perl smp-test/collision.t
%clean %clean
cd .. rm -rf %{buildroot}
rm -rf %{name}-%{version}
%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 <jpp@koozali.org> 1.226-2.sme
- import to SME11
%post * Thu Jan 13 2022 Gavin Carr <gavin@openfusion.net> 1.226-1
- Update to version 1.226.
%postun * Wed Jul 23 2014 Gavin Carr <gavin@openfusion.com.au> 1.219-1
#uninstall - Update to version 1.219.
%files -f %{name}-%{version}-filelist
%defattr(-,root,root) * Tue Feb 15 2011 Gavin Carr <gavin@openfusion.com.au> 1.217-1
- Specfile autogenerated by cpanspec 1.79.