* 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 843dba8501
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,25 +1,52 @@
%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.
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.
@ -38,38 +65,47 @@ 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.
%changelog
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
- Initial code - create RPM [SME:99999]
%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 <dir> 'attr(755,user,grp)' \
#--file <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 <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
#uninstall
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
* 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.