File mingw64-nanomsg.spec of Package mingw64-nanomsg
#
# spec file for package mingw64-nanomsg
#
# Copyright (c) 2018-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/
#
%define lname lib%{realname}
%define realname nanomsg
Name: mingw64-%{realname}
Version: 1.2.1
Release: 0
Summary: Socket library providing several common communication patterns
License: MIT
Group: Development/Languages/C and C++
Url: http://nanomsg.org/
Source: https://github.com/nanomsg/nanomsg/archive/%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
%{_mingw64_package_header_debug}
BuildArch: noarch
%description
nanomsg is a C socket library providing several common communication
patterns.
%package -n mingw64-%{lname}
Summary: Shared library for nanomsg
Group: System/Libraries
%description -n mingw64-%{lname}
nanomsg is a C socket library providing several common communication
patterns.
%package -n mingw64-%{realname}-devel
Summary: Header files for nanomsg
Group: Development/Libraries/C and C++
Requires: mingw64-%{lname} = %{version}
%description -n mingw64-%{realname}-devel
Development and header files for nanomsg.
%{_mingw64_debug_package}
%prep
%setup -q -n %{realname}-%{version}
%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
%files -n mingw64-%{lname}
%license COPYING
%doc RELEASING AUTHORS README.md
%{_mingw64_bindir}/nanocat.exe
%{_mingw64_bindir}/libnanomsg.dll
%files -n mingw64-%{realname}-devel
%{_mingw64_includedir}/nanomsg
%{_mingw64_libdir}/libnanomsg.dll.a
%{_mingw64_libdir}/pkgconfig/nanomsg.pc
%{_mingw64_libdir}/cmake/nanomsg-%{version}
%changelog