File mingw64-libbinio.spec of Package mingw64-libbinio

#
# spec file for package mingw64-libbinio
#
# Copyright (c) 2024-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/
#

Name:           mingw64-libbinio
Version:        1.5+git20240205
Release:        0
Summary:        Binary I/O Stream Class Library
License:        LGPL-2.1-only
Group:          System/Libraries
#Git-Clone:     https://github.com/adplug/libbinio.git
URL:            https://adplug.github.io/libbinio/
Source:         libbinio-%{version}.tar.xz
Patch0:         mingw64-libbinio-no-docs.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
%_mingw64_package_header_debug
BuildArch:      noarch

%description
The binary I/O stream class library presents a platform-independent way to
access binary data streams in C++. It transparently converts between
machine-internal binary data representation and can be used on arbitrary
binary data sources.

%package -n mingw64-libbinio1
Summary:        Binary I/O Stream Class Library
Group:          System/Libraries

%description -n mingw64-libbinio1
The binary I/O stream class library presents a platform-independent way to
access binary data streams in C++. It transparently converts between
machine-internal binary data representation and can be used on arbitrary
binary data sources.

%package -n mingw64-libbinio-devel
Summary:        Development files for libbinio
Group:          Development/Libraries/C and C++
Requires:       mingw64-libbinio1 = %{version}

%description -n mingw64-libbinio-devel
The binary I/O stream class library presents a platform-independent way to
access binary data streams in C++. It transparently converts between
machine-internal binary data representation and can be used on arbitrary
binary data sources

This package contains development tools and libraries for use when
cross-compiling Windows software.

%_mingw64_debug_package

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

%build
autoreconf -fiv
%{_mingw64_configure} --disable-static
%{_mingw64_make} %{?_smp_mflags}

%install
%{_mingw64_make_install}

%files -n mingw64-libbinio1
%{_mingw64_bindir}/libbinio-1.dll

%files -n mingw64-libbinio-devel
%{_mingw64_includedir}/libbinio
%{_mingw64_libdir}/libbinio.dll.a
%{_mingw64_libdir}/pkgconfig/libbinio.pc

%changelog
openSUSE Build Service is sponsored by