File mingw64-libuuid.spec of Package mingw64-libuuid
#
# spec file for package mingw64-libuuid
#
# 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/
#
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !!!! br0ken !!!
# [ 3s] file /usr/x86_64-w64-mingw32/sys-root/mingw/lib/libuuid.a conflicts between attempted installs of mingw64-libuuid-devel-1.0.3-2.1.noarch and mingw64-runtime-11.0.1-14.4.noarch
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
%define realname libuuid
%define libname mingw64-lib%{realname}
Name: mingw64-%{realname}
Version: 1.0.3
Release: 0
Summary: Portable uuid C library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://sourceforge.net/projects/libuuid/
#Git-Clone: git clone https://git.code.sf.net/p/libuuid/code
Source: https://deac-fra.dl.sourceforge.net/project/libuuid/%{realname}-%{version}.tar.gz
# randutils.c needs sys/syscall.h ...
Patch0: libuuid-no-randutils.patch
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem
%_mingw64_package_header_debug
BuildArch: noarch
%description
Portable uuid C library.
%package -n %{libname}
Summary: Portable uuid C library
%description -n %{libname}
Portable uuid C library.
This subpackage contains the implementation as a shared library.
%package -n mingw64-%{realname}-devel
Summary: Development files for libuuid
Group: Development/Libraries/C and C++
#Requires: %{libname} = %{version}
%description -n mingw64-%{realname}-devel
Portable uuid C library.
Needed for compiling programs that link with the library.
%_mingw64_debug_package
%prep
%setup -q -n %{realname}-%{version}
%autopatch -p1
%build
autoreconf -fiv
%{_mingw64_configure}
%{_mingw64_make} %{?_smp_mflags}
%check
%install
%{_mingw64_make_install}
#%%files -n %%{libname}
#%%{_mingw64_bindir}/libuuid.dll
%files -n mingw64-%{realname}-devel
%dir %{_mingw64_includedir}/uuid
%{_mingw64_includedir}/uuid/uuid.h
%{_mingw64_libdir}/libuuid.a
%{_mingw64_libdir}/pkgconfig/uuid.pc
%changelog