generated from smedev/Template-for-SMEServer-Core-Perl
112 lines
3.6 KiB
RPMSpec
112 lines
3.6 KiB
RPMSpec
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,
|
|
<namespace> is a UUID and <name> is a free form string.
|
|
|
|
%prep
|
|
%setup -q -n Data-UUID-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
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
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes LICENSE README
|
|
%{perl_vendorarch}/auto/*
|
|
%{perl_vendorarch}/Data*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.226-2.sme
|
|
- import to SME11
|
|
|
|
* Thu Jan 13 2022 Gavin Carr <gavin@openfusion.net> 1.226-1
|
|
- Update to version 1.226.
|
|
|
|
* Wed Jul 23 2014 Gavin Carr <gavin@openfusion.com.au> 1.219-1
|
|
- Update to version 1.219.
|
|
|
|
* Tue Feb 15 2011 Gavin Carr <gavin@openfusion.com.au> 1.217-1
|
|
- Specfile autogenerated by cpanspec 1.79.
|