Sisyphus repositório
Última atualização: 22 setembro 2021 | SRPMs: 17352 | Visitas: 21925564
en ru br
ALT Linux repositórios
S:1.1.2-alt1

Group :: Rede/Outros
RPM: libbroker

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

# TODO: add pybind11

Name: libbroker
Version: 1.1.2
Release: alt1

Summary: Zeek's Messaging Library

Group: Networking/Other
License: BSD
Url: https://github.com/zeek/broker

# Source-url: https://github.com/zeek/broker/archive/v%version.tar.gz

Source: %name-%version.tar

Patch1: libbroker-external-sqlite.patch

BuildRequires: cmake gcc-c++
BuildRequires: libcaf-devel
BuildRequires: librocksdb-devel
BuildRequires: libsqlite3-devel
BuildRequires: libssl-devel

BuildRequires: zeek-cmake
# for doc
#BuildRequires: python-module-sphinx

%description
The Broker library implements Bro's high-level communication patterns:

* remote logging
* remote events
* distributed data stores

%package devel
Summary: Development file for %name
Requires: %name = %EVR
Group: Networking/Other

%description devel
This package contains the header files for %name.

%prep
%setup
%patch1 -p2

# use cmake file from zeek-cmake package

rm -rf cmake/
ln -s %_datadir/zeek-cmake/ cmake

# use system lib

rm -rf src/3rdparty/caf/ aux/libbrokerker/3rdparty/caf/

# TODO

#find -name CMakeLists.txt | xargs sed -i "s|DESTINATION lib|DESTINATION %_lib|"
#sed -i "s|INSTALL_LIB_DIR lib|INSTALL_LIB_DIR %_lib|" CMakeLists.txt
#sed -i "s|{CMAKE_INSTALL_PREFIX}/lib|{CMAKE_INSTALL_PREFIX}/%_lib|" CMakeLists.txt
#sed -i "s|CMAKE_CURRENT_BINARY_DIR}/lib|CMAKE_CURRENT_BINARY_DIR}/%_lib|" CMakeLists.txt
sed -i "s|.{BROKER_VERSION_MAJOR}\..{BROKER_VERSION_MINOR}|0.%version|" CMakeLists.txt

%build
./configure \
   --prefix=%prefix \
   --libdir=%_libdir \
   --with-caf=%prefix \
   --enable-debug \
   --disable-docs \
   --with-rocksdb=%prefix
%make_build
#make doc

%install
%makeinstall_std
# DESTDIR=%buildroot INSTALL="install -p"

%files
%doc CHANGES COPYING README VERSION
%_libdir/libbroker.so.*

%files devel
%_includedir/broker/
%_libdir/libbroker.so

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009