File mingw64-uuid.spec of Package mingw64-uuid
#
# spec file for package mingw64-uuid
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# 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 http://bugs.opensuse.org/
#
%define realname uuid
%define libname mingw64-lib%{realname}
Name: mingw64-%{realname}
Version: 1.6.2+git20240330
Release: 0
Summary: OSSP's Universally Unique Identifier generator
License: MIT
Group: Development/Libraries/C and C++
Url: https://github.com/mnhauke/ossp-uuid-win32
Source: %{realname}-%{version}.tar.xz
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-filesystem
%_mingw64_package_header_debug
BuildArch: noarch
%description
OSSP uuid is an ISO-C and Perl application programming interface (API)
and corresponding command line interface (CLI) for the generation of
DCE 1.1 and ISO/IEC 11578:1996 compliant Universally Unique Identifier
(UUID). It supports DCE 1.1 variant UUIDs of version 1 (time and node
based), version 3 (name based) and version 4 (random number based).
UUIDs are 128 bit numbers which are intended to have a high likelihood
of uniqueness over space and time and are computationally difficult
to guess. They are globally unique identifiers which can be locally
generated without contacting a global registration authority. UUIDs
are intended as unique identifiers for both mass tagging objects
with an extremely short lifetime and to reliably identifying very
persistent objects across a network.
%package -n %{libname}
Summary: OSSP uuid ISO-C and C++ - shared library
%description -n %{libname}
OSSP uuid is an ISO-C and Perl application programming interface (API)
and corresponding command line interface (CLI) for the generation of
DCE 1.1 and ISO/IEC 11578:1996 compliant Universally Unique Identifier
(UUID). It supports DCE 1.1 variant UUIDs of version 1 (time and node
based), version 3 (name based) and version 4 (random number based).
UUIDs are 128 bit numbers which are intended to have a high likelihood
of uniqueness over space and time and are computationally difficult
to guess. They are globally unique identifiers which can be locally
generated without contacting a global registration authority. UUIDs
are intended as unique identifiers for both mass tagging objects
with an extremely short lifetime and to reliably identifying very
persistent objects across a network.
This subpackage contains the implementation as a shared library.
%package -n mingw64-%{realname}-devel
Summary: Development files for the OSSP uuid library
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description -n mingw64-%{realname}-devel
OSSP uuid is an ISO-C and Perl application programming interface (API)
and corresponding command line interface (CLI) for the generation of
DCE 1.1 and ISO/IEC 11578:1996 compliant Universally Unique Identifier
(UUID). It supports DCE 1.1 variant UUIDs of version 1 (time and node
based), version 3 (name based) and version 4 (random number based).
UUIDs are 128 bit numbers which are intended to have a high likelihood
of uniqueness over space and time and are computationally difficult
to guess. They are globally unique identifiers which can be locally
generated without contacting a global registration authority. UUIDs
are intended as unique identifiers for both mass tagging objects
with an extremely short lifetime and to reliably identifying very
persistent objects across a network.
Needed for compiling programs that link with the library.
%_mingw64_debug_package
%prep
%setup -q -n %{realname}-%{version}
%autopatch -p0
%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}
%check
%install
%{_mingw64_cmake_install}
%files -n %{libname}
%%license LICENSE
%{_mingw64_bindir}/libossp-uuid.dll
%files -n mingw64-%{realname}-devel
%dir %{_mingw64_includedir}/ossp
%{_mingw64_includedir}/ossp/uuid.h
%{_mingw64_libdir}/libossp-uuid.dll.a
%{_mingw64_libdir}/pkgconfig/ossp-uuid.pc
%changelog