%global distname broker Name: libbroker Version: 1.2.0 Release: 2%{?dist} Summary: Zeek's messaging library. License: BSD URL: https://docs.zeek.org/projects/broker/en/stable/ Source0: https://www.zeek.org/downloads/%{distname}-%{version}.tar.gz BuildRequires: sqlite-devel BuildRequires: caf-devel >= 0.17.3 BuildRequires: openssl-devel BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: python2-devel Requires: libcaf_core >= 0.17.3 Requires: libcaf_io >= 0.17.3 Requires: libcaf_openssl >= 0.17.3 Requires: openssl %description Broker is a library for type-rich publish/subscribe communication in Zeek's data model. ################################################################################ %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. ################################################################################ %package -n python2-%{distname} Summary: Python bindings for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description -n python2-%{distname} The python2-%{distname} package contains Python bindings for developing applications that use %{name}. Requires: python2 %prep %autosetup -n %{distname}-%{version} %build mkdir build; cd build %cmake \ -DCAF_ROOT_DIR=%{_prefix} \ -DBROKER_ROOT_DIR=%{_prefix} \ -DPY_MOD_INSTALL_DIR=%{python_sitearch} \ -DPYTHON_INCLUDE_DIR=%{_includedir} \ -DPYTHON_LIBRARIES=%{_libdir} \ -DINSTALL_LIB_DIR=%{_libdir} \ .. %make_build %install rm -rf %{buildroot} %make_install find %{buildroot} -name '*.la' -delete %check ctest -V %{?_smp_mflags} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc README %doc CHANGES %license COPYING %{_libdir}/*.so.* %files devel %doc %{_includedir}/* %{_libdir}/*.so %files -n python2-%{distname} %doc %dir %{python2_sitearch}/broker %{python2_sitearch}/broker/* %changelog * Mon Dec 16 2019 Derek Ditch 1.2.0-2 - Recompile against CAF 0.17.3 * Mon Sep 16 2019 Derek Ditch 1.2.0-1 - Version bump to 1.2.0 for Zeek 3.x - Pin to CAF 0.17.x * Fri Aug 23 2019 Derek Ditch 1.1.2-2 - Rename python package to RPM conventions - Pinned CAF versions * Wed Feb 13 2019 Derek Ditch 1.1.2-1 - Initial RPM packaging