File mingw64-nng.spec of Package mingw64-nng

#
# spec file for package mingw64-nng
#
# 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/
#


%{_mingw64_package_header_debug}
Name:           mingw64-nng
Version:        1.10.1
Release:        0
Summary:        Lightweight Messaging Library
License:        MIT
Group:          Development/Libraries/C and C++
URL:            https://github.com/nanomsg/nng/
Source0:        https://github.com/nanomsg/nng/archive/refs/tags/v1.10.1.tar.gz#/nng-%version.tar.gz
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-filesystem
#!BuildIgnore:  post-build-checks
BuildArch:      noarch

%description
NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery.

%package -n mingw64-libnng
Summary:        Lightweight Messaging Library
Group:          Development/Libraries/C and C++

%description -n mingw64-libnng
NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery.

%package        devel
Summary:        Lightweight Messaging Library
Group:          Development/Libraries/C and C++
Requires:       mingw64-libnng = %{version}

%description    devel
NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery.

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

%build
mingw64-cmake
cd build
%make_build


%install
cd build
%make_install

%files -n mingw64-libnng
%license LICENSE.txt
%doc *.adoc
%{_mingw64_bindir}

%files devel
%license LICENSE.txt
%doc *.adoc
%{_mingw64_includedir}
%{_mingw64_libdir}

%changelog
openSUSE Build Service is sponsored by