File perl-UUID.spec of Package perl-UUID
#
# spec file for package perl-UUID
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name UUID
Name: perl-UUID
Version: 0.31
Release: 0
License: Artistic-2.0
Summary: DCE compatible Universally Unique Identifier library for Perl
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/J/JR/JRM/%{cpan_name}-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Devel::CheckLib) >= 1.14
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
%{perl_requires}
# MANUAL BEGIN
BuildRequires: libuuid-devel
Provides: perl(UUID) = %{version}
# MANUAL END
%description
The UUID library is used to generate unique identifiers for objects that
may be accessible beyond the local system. For instance, they could be used
to generate unique HTTP cookies across multiple web servers without
communication between the servers, and without fear of a name clash.
The generated UUIDs can be reasonably expected to be unique within a
system, and unique across all systems, and are compatible with those
created by the Open Software Foundation (OSF) Distributed Computing
Environment (DCE) utility uuidgen.
%prep
%autosetup -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%if 0%{?fedora}
%{_fixperms} $RPM_BUILD_ROOT
%endif
%files -f %{name}.files
%doc Changes README
%license LICENSE
%changelog