Projects
Eulaceura:Factory
perl-UUID
_service:obs_scm:perl-UUID.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:perl-UUID.spec of Package perl-UUID
Name: perl-UUID Version: 0.36 Release: 1 Summary: Universally Unique Identifier library for Perl License: Artistic-2.0 URL: https://metacpan.org/release/UUID Source0: https://cpan.metacpan.org/authors/id/J/JR/JRM/UUID-%{version}.tar.gz # Fix running tests from a read-only location, proposed to an upstream, BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.5.63 BuildRequires: perl(Config) BuildRequires: perl(Devel::CheckLib) >= 1.14 BuildRequires: perl(ExtUtils::MakeMaker) >= 7.06 BuildRequires: perl(File::Temp) >= 0.10 BuildRequires: perl(List::Util) >= 1.29 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(DynaLoader) BuildRequires: perl(Exporter) BuildRequires: perl(Time::HiRes) BuildRequires: perl(vars) # Tests: BuildRequires: perl(File::Spec) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Thread::Semaphore) BuildRequires: perl(threads) BuildRequires: perl(threads::shared) BuildRequires: perl(Try::Tiny) BuildRequires: perl(version) >= 0.77 # Optional tests: BuildRequires: perl(Digest::SHA1) # Filter under-specified dependencies %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((File::Temp|Test::More)\\)$ # Filter private modules %global __requires_exclude %{__requires_exclude}|^perl\\(MyNote\\) %global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(MyNote\\) %description The UUID library is used to generate unique identifiers for objects that may be accessible beyond the local system. The generated UUIDs are compatible with those created by the Open Software Foundation (OSF) Distributed Computing Environment (DCE). All generated UUIDs are either version 1, 3, 4, 5, 6, or version 7. And all are variant 1, meaning compliant with the OSF DCE standard as described in RFC 4122. Versions 6 and 7 are not standardized. They are presented here as proposed in RFC 4122bis, version 14, and may change in the future. %package tests Summary: Tests for %{name} License: Artistic-2.0 BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Requires: perl(Test::More) >= 0.88 Requires: perl(Digest::SHA1) Requires: perl(File::Temp) >= 0.10 %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %autosetup -p1 -n UUID-%{version} # Remove always skipped tests for T in t/0gen.t t/5persist/symlink.t t/9benchmark/*.t; do rm -- "$T" perl -i -ne 'print $_ unless m{^\Q'"$T"'\E}' MANIFEST done %build unset AUTOMATED_TESTING NONINTERACTIVE_TESTING PERL_CPAN_REPORTER_CONFIG perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" %{make_build} %install %{make_install} find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -r -I t/0LIB -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %license LICENSE %doc Changes NOTES README %{perl_vendorarch}/auto/UUID %{perl_vendorarch}/UUID.pm %{_mandir}/man3/UUID.* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 19 2024 xieyanlong <xieyanlong@kylinos.cn> - 0.36-1 - Fix distro tests run from read-only location * Wed Jun 19 2024 xieyanlong <xieyanlong@kylinos.cn> - 0.35-1 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2