File mingw64-confuse.spec of Package mingw64-confuse

#
# spec file for package mingw64-confuse
#
# Copyright (c) 2025, 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 confuse
%define lname mingw64-libconfuse

Name:           mingw64-%{realname}
Version:        3.3
Release:        0
Summary:        A configuration file parser library
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
URL:            http://www.nongnu.org/confuse/
Source:         https://github.com/martinh/libconfuse/releases/download/v%{version}/confuse-%{version}.tar.xz
# PATCH-FIX_UPSTREAM
Patch0:         libconfuse-d73777c2c3566fb2647727bb56d9a2295b81669b.patch
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
%_mingw64_package_header_debug
BuildArch:      noarch

%description
libConfuse is a configuration file parser library. It supports
sections and (lists of) values (strings, integers, floats, booleans
or other sections), as well as single/double-quoted strings,
environment variable expansion, functions and nested include
statements.

%package -n %{lname}
Summary:        A configuration file parser library
Group:          System/Libraries

%description -n %{lname}
libConfuse is a configuration file parser library. It supports
sections and (lists of) values (strings, integers, floats, booleans
or other sections), as well as single/double-quoted strings,
environment variable expansion, functions and nested include
statements.

%package -n mingw64-%{realname}-devel
Summary:        The development files for libconfuse
Group:          Development/Libraries/C and C++
Requires:       %{lname} = %{version}

%description -n mingw64-%{realname}-devel
libConfuse is a configuration file parser library. It supports
sections and (lists of) values (strings, integers, floats, booleans
or other sections), as well as single/double-quoted strings,
environment variable expansion, functions and nested include
statements.

This package holds the development files for libconfuse.

%_mingw64_debug_package

%prep
%autosetup -p1 -n %{realname}-%{version}

%build
%{_mingw64_configure} \
  --disable-static \
  --disable-examples
%{_mingw64_make} %{?_smp_mflags}

%install
%{_mingw64_make_install}
rm -Rv %{buildroot}%{_mingw64_datadir}/doc/confuse

%files -n %lname
%{_mingw64_bindir}/libconfuse-2.dll

%files -n mingw64-%{realname}-devel
%license LICENSE
%doc ChangeLog.md README.md
%{_mingw64_includedir}/confuse.h
%{_mingw64_libdir}/libconfuse.dll.a
%{_mingw64_libdir}/pkgconfig/libconfuse.pc

%changelog
openSUSE Build Service is sponsored by