2014-02-13 13:00:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package socket_wrapper
|
|
|
|
#
|
2024-06-13 07:50:49 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2014-02-13 13:00:06 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-11-13 14:11:31 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-13 13:00:06 +01:00
|
|
|
#
|
|
|
|
|
2015-09-02 13:55:00 +02:00
|
|
|
|
2015-05-11 08:23:26 +02:00
|
|
|
############################# NOTE ##################################
|
|
|
|
#
|
|
|
|
# This is a special library. You are not able to link this library.
|
|
|
|
# Do NOT create library package or a devel package!
|
|
|
|
#
|
|
|
|
############################# NOTE ##################################
|
2014-02-13 13:00:06 +01:00
|
|
|
|
|
|
|
Name: socket_wrapper
|
2024-06-13 07:50:49 +02:00
|
|
|
Version: 1.4.3
|
2014-02-13 13:00:06 +01:00
|
|
|
Release: 0
|
2021-02-10 17:20:27 +01:00
|
|
|
Summary: A library passing all socket communications through Unix sockets
|
2014-02-13 13:00:06 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-03-24 14:13:42 +01:00
|
|
|
URL: https://cwrap.org/
|
2019-10-31 13:17:37 +01:00
|
|
|
#
|
2014-02-13 13:00:06 +01:00
|
|
|
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
|
2019-10-31 13:17:37 +01:00
|
|
|
Source1: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc
|
|
|
|
Source2: socket_wrapper.keyring
|
|
|
|
Source3: %{name}-rpmlintrc
|
|
|
|
#
|
2014-02-13 13:00:06 +01:00
|
|
|
BuildRequires: cmake
|
2015-05-09 13:09:01 +02:00
|
|
|
BuildRequires: pkg-config
|
2023-08-31 09:14:31 +02:00
|
|
|
BuildRequires: cmake(cmocka)
|
2015-05-09 13:09:01 +02:00
|
|
|
|
2015-05-11 08:23:26 +02:00
|
|
|
%description
|
2021-02-10 17:20:27 +01:00
|
|
|
socket_wrapper helps client/server software development to gain functional test
|
|
|
|
coverage. It can run several instances of a software stack on the same machine
|
|
|
|
and perform functional testing of network configurations locally.
|
2015-05-09 13:09:01 +02:00
|
|
|
|
2021-02-10 17:20:27 +01:00
|
|
|
To use it, set the following environment variables:
|
2015-05-09 13:09:01 +02:00
|
|
|
|
|
|
|
LD_PRELOAD=libsocket_wrapper.so
|
|
|
|
SOCKET_WRAPPER_DIR=/path/to/swrap_dir
|
|
|
|
|
2021-03-17 10:42:55 +01:00
|
|
|
%package -n libsocket_wrapper_noop0
|
|
|
|
Summary: A library providing dummies for socket_wrapper
|
|
|
|
|
|
|
|
%description -n libsocket_wrapper_noop0
|
|
|
|
Applications with the need to call socket_wrapper_enabled() should link against
|
|
|
|
-lsocket_wrapper_noop in order to resolve the symbol at link time.
|
|
|
|
|
|
|
|
%package -n libsocket_wrapper_noop-devel
|
|
|
|
Summary: Development headers for libsocket_wrapper_noop
|
|
|
|
Requires: libsocket_wrapper_noop0 = %{version}
|
|
|
|
|
|
|
|
%description -n libsocket_wrapper_noop-devel
|
|
|
|
Development headers for applications with the need to call
|
|
|
|
socket_wrapper_enabled().
|
|
|
|
|
2014-02-13 13:00:06 +01:00
|
|
|
%prep
|
2023-02-23 15:35:51 +01:00
|
|
|
%autosetup -p1
|
2014-02-13 13:00:06 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
2015-05-11 08:17:44 +02:00
|
|
|
-DUNIT_TESTING=ON
|
2014-02-13 13:00:06 +01:00
|
|
|
|
2021-02-10 17:20:27 +01:00
|
|
|
%make_build VERBOSE=1
|
2014-02-13 13:00:06 +01:00
|
|
|
|
|
|
|
%install
|
2015-05-09 13:09:01 +02:00
|
|
|
%cmake_install
|
2014-02-13 13:00:06 +01:00
|
|
|
|
|
|
|
%check
|
2019-07-16 11:35:04 +02:00
|
|
|
%ctest
|
2014-02-13 13:00:06 +01:00
|
|
|
|
2015-05-11 08:23:26 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2014-02-13 13:00:06 +01:00
|
|
|
|
2015-05-11 08:23:26 +02:00
|
|
|
%postun -p /sbin/ldconfig
|
2015-05-11 08:17:44 +02:00
|
|
|
|
2021-03-17 10:42:55 +01:00
|
|
|
%post -n libsocket_wrapper_noop0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libsocket_wrapper_noop0 -p /sbin/ldconfig
|
|
|
|
|
2015-05-11 08:23:26 +02:00
|
|
|
%files
|
2020-03-24 14:13:42 +01:00
|
|
|
%doc AUTHORS README.md CHANGELOG
|
2018-11-13 14:11:31 +01:00
|
|
|
%license LICENSE
|
2015-05-09 13:09:01 +02:00
|
|
|
%{_libdir}/libsocket_wrapper.so.*
|
|
|
|
%{_mandir}/man1/socket_wrapper.1*
|
|
|
|
%{_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
|
|
|
%{_libdir}/pkgconfig/socket_wrapper.pc
|
|
|
|
|
2021-03-17 10:42:55 +01:00
|
|
|
%files -n libsocket_wrapper_noop0
|
|
|
|
%{_libdir}/libsocket_wrapper_noop.so.*
|
|
|
|
|
|
|
|
%files -n libsocket_wrapper_noop-devel
|
|
|
|
%{_includedir}/socket_wrapper.h
|
|
|
|
%{_libdir}/libsocket_wrapper_noop.so
|
|
|
|
%{_libdir}/cmake/socket_wrapper/socket_wrapper_noop-config*.cmake
|
|
|
|
%{_libdir}/pkgconfig/socket_wrapper_noop.pc
|
|
|
|
|
2014-02-13 13:00:06 +01:00
|
|
|
%changelog
|