2014-02-13 13:00:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package socket_wrapper
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: socket_wrapper
|
2015-02-23 16:56:21 +01:00
|
|
|
Version: 1.1.3
|
2014-02-13 13:00:06 +01:00
|
|
|
Release: 0
|
|
|
|
|
|
|
|
Summary: A library passing all socket communications trough Unix sockets
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: http://cwrap.org/
|
|
|
|
|
|
|
|
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: libcmocka-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
socket_wrapper aims to help client/server software development teams willing to
|
|
|
|
gain full functional test coverage. It makes 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 cause this project is for
|
|
|
|
development/testing.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
|
|
|
-DUNIT_TESTING=ON \
|
|
|
|
%{_builddir}/%{name}-%{version}
|
|
|
|
|
|
|
|
%__make %{?jobs:-j%jobs} VERBOSE=1
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd build
|
|
|
|
%makeinstall
|
|
|
|
popd
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd build
|
2014-10-02 14:00:11 +02:00
|
|
|
%__make test || cat $(find Testing -name "*.log")
|
2014-02-13 13:00:06 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%__rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS README ChangeLog COPYING
|
|
|
|
%{_libdir}/libsocket_wrapper.so*
|
2014-09-11 17:50:24 +02:00
|
|
|
%dir %{_libdir}/cmake/socket_wrapper
|
|
|
|
%{_libdir}/cmake/socket_wrapper/socket_wrapper-config-version.cmake
|
|
|
|
%{_libdir}/cmake/socket_wrapper/socket_wrapper-config.cmake
|
2014-02-13 13:00:06 +01:00
|
|
|
%dir %{_libdir}/pkgconfig
|
|
|
|
%{_libdir}/pkgconfig/socket_wrapper.pc
|
2014-10-02 11:46:18 +02:00
|
|
|
%{_mandir}/man1/socket_wrapper.1*
|
2014-02-13 13:00:06 +01:00
|
|
|
|
|
|
|
%changelog
|