File mingw32-nanomsg.spec of Package mingw32-nanomsg

#
# spec file for package mingw32-nanomsg
#
# Copyright (c) 2018, 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:           mingw32-%{realname}
Version:        1.1.4
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:  mingw32-cross-cmake
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-pkg-config
%_mingw32_package_header_debug
BuildArch:      noarch

%description
nanomsg is a C socket library providing several common communication
patterns.

%package -n  mingw32-%{lname}
Summary:        Shared library for nanomsg
Group:          System/Libraries

%description -n mingw32-%{lname}
nanomsg is a C socket library providing several common communication
patterns.

%package -n mingw32-%{realname}-devel
Summary:        Header files for nanomsg
Group:          Development/Libraries/C and C++
Requires:       mingw32-%{lname} = %{version}

%description -n mingw32-%{realname}-devel
Development and header files for nanomsg.

%_mingw32_debug_package

%prep
%setup -q -n %{realname}-%{version}

%build
%{_mingw32_cmake}
%{_mingw32_cmake_build}

%install
%{_mingw32_cmake_install}


%files -n mingw32-%{lname}
%defattr(-,root,root)
%doc RELEASING AUTHORS README.md COPYING
%{_mingw32_bindir}/nanocat.exe
%{_mingw32_bindir}/libnanomsg.dll

%files -n mingw32-%{realname}-devel
%defattr(-,root,root)
%{_mingw32_includedir}/nanomsg
%{_mingw32_libdir}/libnanomsg.dll.a
%{_mingw32_libdir}/pkgconfig/nanomsg.pc
%dir %{_mingw32_libdir}/cmake/nanomsg
%{_mingw32_libdir}/cmake/nanomsg/nanomsg-config*.cmake

%changelog
openSUSE Build Service is sponsored by