Name: nng Version: 1.1.1 Release: 3%{?dist} Summary: nanomsg next generation: light-weight brokerless messaging License: MIT URL: https://nanomsg.github.io/nng/ Source0: https://github.com/nanomsg/nng/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc gcc-c++ BuildRequires: cmake BuildRequires: libnsl2-devel BuildRequires: mbedtls-devel BuildRequires: rubygem-asciidoctor %description nng (nanomsg next generation) is a socket library that provides several common communication patterns. It aims to make the networking layer fast, scalable, and easy to use. Implemented in C, it works on a wide range of operating systems with no further dependencies. The communication patterns, also called "scalability protocols", are basic blocks for building distributed systems. By combining them you can create a vast array of distributed applications. %package devel Summary: Development files for the nng socket library Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains files needed to develop applications using nanomsg, a socket library that provides several common communication patterns. %package utils Summary: Command line interface for communicating with nng %description utils Includes nngcat, a simple utility for reading and writing to nanomsg sockets and bindings, which can include local and remote connections. %prep %autosetup %build %cmake -DCMAKE_CXX_FLAGS="%optflags -fPIC" -DBUILD_SHARED_LIBS=ON \ -DNNG_SUPP_TLS=ON -DNNG_SUPP_WEBSOCKET=ON -DNNG_ENABLE_NNGCAT=ON \ -DNNG_TESTS=ON -DNNG_ENABLE_DOC=ON . %make_build %install %make_install # No need to ship dev docs as both html and man format rm -rf %{buildroot}/%{_mandir}/man[3-7]* %ldconfig_scriptlets %files %license LICENSE.txt %{_libdir}/libnng.so.1* %files devel %{_docdir}/nng/ %{_includedir}/nng/ %{_libdir}/libnng.so %{_libdir}/cmake/nng/ %files utils %{_bindir}/nngcat %{_mandir}/man1/nngcat.1.gz %changelog * Thu Jul 25 2019 Fedora Release Engineering - 1.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Dec 19 2018 Peter Robinson 1.1.1-1 - Update to 1.1.1 * Mon Nov 19 2018 Peter Robinson 1.1.0-1 - Update to 1.1.0 * Sat Oct 06 2018 Morten Stevens 1.0.1-2 - Rebuilt for mbed TLS 2.13.0 * Wed Aug 8 2018 Peter Robinson 1.0.1-1 - Update to 1.0.1 * Sun Jun 17 2018 Peter Robinson 1.0.0-1 - Initial package