9aa8bdd
# Header-only library.
9aa8bdd
%global debug_package %{nil}
9aa8bdd
9aa8bdd
Name:           cppzmq
199df9f
Version:        4.7.1
199df9f
Release:        1%{?dist}
9aa8bdd
Summary:        Header-only C++ binding for libzmq
9aa8bdd
9aa8bdd
License:        MIT
1794487
URL:            https://zeromq.org
9aa8bdd
Source0:        https://github.com/zeromq/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
9aa8bdd
# https://github.com/zeromq/cppzmq/issues/283
1794487
Patch0001:      0001-Fix-broken-test-macro-condition.patch
1794487
# https://github.com/zeromq/cppzmq/pull/288
1794487
Patch0002:      0002-Use-external-Catch2.patch
9aa8bdd
9aa8bdd
BuildRequires:  cmake
9aa8bdd
BuildRequires:  gcc-c++
9aa8bdd
BuildRequires:  pkgconfig(libzmq)
1794487
BuildRequires:  cmake(Catch2)
9aa8bdd
9aa8bdd
%global _description \
9aa8bdd
cppzmq is a C++ binding for libzmq. \
9aa8bdd
\
9aa8bdd
cppzmq maps the libzmq C API to C++ concepts. In particular, it is type-safe, \
9aa8bdd
provides exception-based error handling, and provides RAII-style classes that \
9aa8bdd
automate resource management. cppzmq is a light-weight, header-only binding.
9aa8bdd
9aa8bdd
%description %{_description}
9aa8bdd
9aa8bdd
9aa8bdd
%package devel
9aa8bdd
Summary:        %{summary}
9aa8bdd
Provides:       %{name}-static = %{version}-%{release}
9aa8bdd
f4f3ceb
Requires:       pkgconfig(libzmq)
f4f3ceb
9aa8bdd
%description devel %{_description}
9aa8bdd
9aa8bdd
9aa8bdd
%prep
9aa8bdd
%autosetup -p1
9aa8bdd
9aa8bdd
9aa8bdd
%build
2caf30b
%cmake
2caf30b
%cmake_build
9aa8bdd
9aa8bdd
9aa8bdd
%install
2caf30b
%cmake_install
9aa8bdd
9aa8bdd
9aa8bdd
%check
2caf30b
%ctest
9aa8bdd
9aa8bdd
9aa8bdd
%files devel
9aa8bdd
%doc README.md
9aa8bdd
%license LICENSE
9aa8bdd
%{_includedir}/zmq*.hpp
9aa8bdd
%{_datadir}/cmake/%{name}
9aa8bdd
9aa8bdd
9aa8bdd
%changelog
199df9f
* Tue Oct 06 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.7.1-1
199df9f
- Update to latest version (#1884030)
199df9f
908e91e
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-3
908e91e
- Second attempt - Rebuilt for
908e91e
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
908e91e
7a4f1e2
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-2
7a4f1e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7a4f1e2
1df715c
* Fri Feb 14 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.6.0-1
1df715c
- Update to latest version
1df715c
d246118
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-2
d246118
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d246118
4ecc7dd
* Tue Nov 05 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.5.0-1
4ecc7dd
- Update to latest version
4ecc7dd
1794487
* Sun Sep 08 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.4.1-1
1794487
- Update to latest version
1794487
38ebfa0
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-3
38ebfa0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
38ebfa0
f4f3ceb
* Sat Feb 16 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.3.0-2
f4f3ceb
- Add missing Requires on zeromq
f4f3ceb
9aa8bdd
* Tue Jan 22 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.3.0-1
9aa8bdd
- Initial package (split out of zeromq)