779006d
Name:           nanomsg
779006d
Summary:        Socket library that provides several common communication patterns
779006d
Version:        1.1.5
779006d
Release:        1%{?dist}
779006d
License:        MIT
779006d
URL:            https://nanomsg.org/
779006d
Source0:        https://github.com/nanomsg/nanomsg/archive/%{version}/%{name}-%{version}.tar.gz
779006d
BuildRequires:  cmake
779006d
BuildRequires:  gcc
779006d
# For docs only, can be skipped
779006d
BuildRequires:  rubygem-asciidoctor
779006d
779006d
%description
779006d
The nanomsg library is a simple high-performance implementation of several
779006d
"scalability protocols". These scalability protocols are light-weight messaging
779006d
protocols which can be used to solve a number of very common messaging patterns,
779006d
such as request/reply, publish/subscribe, surveyor/respondent, and so forth.
779006d
These protocols can run over a variety of transports such as TCP, UNIX sockets,
779006d
and even WebSocket.
779006d
779006d
779006d
%package        devel
779006d
Summary:        Development files for %{name}
779006d
Requires:       %{name}%{?_isa} = %{version}-%{release}
779006d
779006d
%description    devel
779006d
This package contains libraries and header files for
779006d
developing applications that use %{name}.
779006d
779006d
779006d
%package        doc
779006d
Summary:        Documentation for %{name}
779006d
Requires:       %{name}%{?_isa} = %{version}-%{release}
779006d
779006d
%description    doc
779006d
This package contains documentation for %{name}.
779006d
779006d
779006d
%prep
779006d
%setup -q
779006d
779006d
%build
779006d
%cmake -DTHREADSAFE=ON .
779006d
%make_build
779006d
779006d
%install
779006d
%make_install
779006d
779006d
%check
779006d
ctest .
779006d
779006d
779006d
%files
779006d
%license COPYING
779006d
%{_bindir}/nanocat
779006d
%{_libdir}/libnanomsg.so.5*
779006d
%{_mandir}/man1/*.1*
779006d
779006d
%files devel
779006d
%doc tests
779006d
%{_libdir}/libnanomsg.so
779006d
%{_libdir}/pkgconfig/nanomsg.pc
779006d
%{_libdir}/cmake/nanomsg-%{version}/
779006d
%{_includedir}/nanomsg/
779006d
%{_defaultdocdir}/nanomsg/
779006d
%{_mandir}/man3/*.3*
779006d
%{_mandir}/man7/*.7*
779006d
779006d
%files doc
779006d
%doc AUTHORS doc README.md RELEASING SUPPORT
779006d
779006d
%changelog
779006d
* Mon Feb 18 2019 Troy Dawson <tdawson@redhat.com> - 1.1.5-1
779006d
- Initial package