Sisyphus repository
Last update: 24 june 2019 | SRPMs: 17678 | Visits: 14174716
en ru br
ALT Linux repos
S:1.2.1-alt1

Group :: Development/Other
RPM: socket_wrapper

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name:           socket_wrapper
Version:        1.2.1
Release:        alt1
Group:          Development/Other
License:        BSD
Summary:        A library passing all socket communications through Unix sockets
Url:            http://cwrap.org/

# git://git.samba.org/socket_wrapper.git

Source0:        %name-%version.tar
Patch0:         %name-%version-alt.patch

BuildRequires:  cmake ctest
BuildRequires:  libcmocka-devel

Requires:       cmake
Requires:       pkgconfig

%description
socket_wrapper aims to help client/server software development teams willing to
gain full functional test coverage. It makes it possible to run several
instances of the full software stack on the same machine and perform locally
functional testing of complex network configurations.

To use it set the following environment variables:

LD_PRELOAD=libsocket_wrapper.so
SOCKET_WRAPPER_DIR=/path/to/swrap_dir

This package doesn't have a devel package because this project is for
development/testing.

%prep
%setup -q
%patch -p1

%build
if test ! -e "obj"; then
mkdir obj
fi

pushd obj
%cmake_insource \
 -DUNIT_TESTING=ON \
 %_builddir/%name-%version

%make VERBOSE=1
popd

%install
pushd obj
%make DESTDIR=%buildroot install
popd

%check
pushd obj
LD_LIBRARY_PATH=. ctest -V

LD_PRELOAD=src/libsocket_wrapper.so bash -c '>/dev/null'

popd

%files
%doc AUTHORS README ChangeLog LICENSE
%_libdir/lib%name.so*
%dir %_libdir/cmake/%name
%_libdir/cmake/%name/*.cmake
%_pkgconfigdir/socket_wrapper.pc
%_man1dir/socket_wrapper.1*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin