Name: socket_wrapper Version: 1.2.3 Release: 1%{?dist} License: BSD Summary: A library passing all socket communications through Unix sockets Url: http://cwrap.org/ Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz Source1: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc Source2: socket_wrapper.keyring BuildRequires: cmake3 BuildRequires: gcc BuildRequires: gnupg2 BuildRequires: libcmocka-devel >= 1.1.0 %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 %autosetup -p1 gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} %build if test ! -e "obj"; then mkdir obj fi pushd obj %cmake3 \ -DUNIT_TESTING=ON \ %{_builddir}/%{name}-%{version} make %{?_smp_mflags} popd %install pushd obj make DESTDIR=%{buildroot} install popd %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %check pushd obj ctest3 --output-on-failure LD_PRELOAD=src/libsocket_wrapper.so bash -c '>/dev/null' popd %files %defattr(-,root,root) %doc AUTHORS README.md ChangeLog %license LICENSE %{_libdir}/libsocket_wrapper.so* %dir %{_libdir}/cmake/socket_wrapper %{_libdir}/cmake/socket_wrapper/socket_wrapper-config-version.cmake %{_libdir}/cmake/socket_wrapper/socket_wrapper-config.cmake %{_libdir}/pkgconfig/socket_wrapper.pc %{_mandir}/man1/socket_wrapper.1* %changelog * Thu Mar 28 2019 Andreas Schneider - 1.2.3-1 - Update to version 1.2.3 * Wed Nov 14 2018 Andreas Schneider - 1.2.1-1 - Update to version 1.2.1 * Removed error message to fix applications doing stupid things * Tue Nov 13 2018 Andreas Schneider - 1.2.0-1 - Update to vesrion 1.2.0 * Added threading support * Moved to modern cmake * Several smaller bugfixes * Wed Dec 06 2017 Andreas Schneider - 1.1.9-1 - Update to version 1.1.9 * Fix thread deadlock with due to a signal interrupt * Fri Oct 13 2017 Andreas Schneider - 1.1.8-1 - Update to version 1.1.8 * Added support for openat() * Added support for open64() and fopen64() * Always enabled logging support * Increased maximum for wrapped interfaces to 64 * Improved fd duplication code * Fixed strict-aliasing issues * Fixed some use after free issues * Fixed issues on ppc64le * Thu Jun 02 2016 Andreas Schneider - 1.1.7-1 - Update to version 1.1.7 * Added support for accept4() * Added support for OpenBSD * Fixed sendto() with UDP and a connected socket * Fixed AF_RAWLINK sockets * Wed Mar 23 2016 Andreas Schneider - 1.1.6-1 - Update to version 1.1.6 * Added a wrapper for write() * Added support for automatic binding of ephemeral ports * Fixed recvmsg() with UDP * Fixed AF_NETLINK sockets * Mon Nov 02 2015 Andreas Schneider - 1.1.5-1 - Update to version 1.1.5 o Added support for TCP_NODELAY in setsockopt/getsockopt o Fixed cmsg space calculation * Thu Sep 03 2015 Andreas Schneider - 1.1.4-1 - Update to version 1.1.4 o Fixed handling of msg_name in recvmsg() o Fixed sendmsg()/recvmsg() TCP support o Fixed several compile warnings o Added environment variable to change MTU * Mon Feb 23 2015 Andreas Schneider - 1.1.3-1 - Update to version 1.1.3. o Added support for address sanitizer. o Fixed leaking of memory and fds of stale sockets. o Fixed the library loading code. * Mon Dec 15 2014 Michael Adam - 1.1.2-2 - Fix format of changelog entries. - Require cmake. - Require pkgconfig instead of owning {_libdir}/pkgconfig * Fri Dec 12 2014 Michael Adam - 1.1.2-2 - Fix typos. * Wed Oct 01 2014 Andreas Schneider - 1.1.2-1 - Update to version 1.1.2. * Wed Oct 01 2014 Andreas Schneider - 1.1.1-2 - resolves: #1146409 - Do not own /usr/lib64/cmake * Tue Sep 09 2014 Andreas Schneider - 1.1.1-1 - Update to version 1.1.1. * Mon Jun 02 2014 Andreas Schneider - 1.1.0-1 - Update to version 1.1.0. * Tue May 06 2014 Andreas Schneider - 1.0.2-1 - Update to version 1.0.2. * Tue Feb 11 2014 Andreas Schneider - 1.0.1-3 - Remove Group - Remove glibc-devel build requirement - Do not create a subpackage. * Tue Feb 04 2014 Andreas Schneider - 1.0.1-2 - Fixed a typo. * Tue Feb 04 2014 Andreas Schneider - 1.0.1-1 - Update to version 1.0.1 * Added --libs to pkg-config. * Added socket_wrapper-config.cmake * Fixed a bug packaging the obj directory. * Mon Feb 03 2014 Andreas Schneider - 1.0.0-1 - Initial version 1.0.0