File mingw64-libHX.spec of Package mingw64-libHX
#
# spec file for package mingw64-libHX
#
# Copyright (c) 2025 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 lname mingw64-libHX32
Name: mingw64-libHX
Version: 4.27
Release: 0
Summary: Collection of routines for C and C++ programming
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://inai.de/projects/libhx/
Source: https://inai.de/files/libhx/libHX-%version.tar.xz
Source2: https://inai.de/files/libhx/libHX-%version.tar.asc
Source4: %name.keyring
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-winpthreads-devel
BuildRequires: xz
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
libHX is a C library (with some C++ bindings available) that provides
data structures and functions commonly needed, such as maps, deques,
linked lists, string formatting and autoresizing, option and config
file parsing, type checking casts and more.
%package -n %lname
Summary: Collection of routines for C and C++ programming
Group: System/Libraries
%description -n %lname
libHX is a C library (with some C++ bindings available) that provides
data structures and functions commonly needed, such as maps, deques,
linked lists, string formatting and autoresizing, option and config
file parsing, type checking casts and more.
%package devel
Summary: Useful collection of routines for C and C++ programming
Group: Development/Libraries/C and C++
Requires: %lname = %version
Provides: %name-devel-static = %version
%description devel
libHX is a C library (with some C++ bindings available) that provides
data structures and functions commonly needed, such as maps, deques,
linked lists, string formatting and autoresizing, option and config
file parsing, type checking casts and more.
This subpackage contains the header files.
%_mingw64_debug_package
%prep
%autosetup -p1 -n libHX-%version
%build
%_mingw64_configure --enable-static
%make_build
%install
%make_install
rm -Rf "%buildroot/%_mingw64_docdir"
%files -n %lname
%_mingw64_bindir/libHX-32.dll
%files devel
%_mingw64_includedir/
%_mingw64_libdir/libHX.dll.a
%_mingw64_libdir/libHX.a
%_mingw64_libdir/pkgconfig/libHX.pc
%changelog