Accepting request 222158 from home:gladiac
This is a special library for creating testing environments. OBS-URL: https://build.opensuse.org/request/show/222158 OBS-URL: https://build.opensuse.org/package/show/devel:tools/socket_wrapper?expand=0&rev=1
This commit is contained in:
commit
a420bdc009
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
socket_wrapper-1.0.1.tar.gz
Normal file
3
socket_wrapper-1.0.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bf128bb57d827e128a317d5459b60f15cc68a7f401322e4b581435d962c0e754
|
||||
size 37291
|
5
socket_wrapper.changes
Normal file
5
socket_wrapper.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 13 10:22:38 UTC 2014 - asn@cryptomilk.org
|
||||
|
||||
- Initial package.
|
||||
|
9
socket_wrapper.rpmlintrc
Normal file
9
socket_wrapper.rpmlintrc
Normal file
@ -0,0 +1,9 @@
|
||||
# This is a special library only for testing purposes. You cannot link this
|
||||
# library. It is only inteded to be used with LD_PRELOAD. This package is
|
||||
# the devel package.
|
||||
#
|
||||
# Learn more at http://cwrap.org
|
||||
#
|
||||
addFilter("shlib-policy-name-error")
|
||||
addFilter("shared-lib-calls-exit")
|
||||
addFilter("devel-file-in-non-devel-package")
|
84
socket_wrapper.spec
Normal file
84
socket_wrapper.spec
Normal file
@ -0,0 +1,84 @@
|
||||
#
|
||||
# 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
|
||||
Version: 1.0.1
|
||||
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
|
||||
%__make test
|
||||
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*
|
||||
%dir %{_libdir}/cmake
|
||||
%{_libdir}/cmake/socket_wrapper-config-version.cmake
|
||||
%{_libdir}/cmake/socket_wrapper-config.cmake
|
||||
%dir %{_libdir}/pkgconfig
|
||||
%{_libdir}/pkgconfig/socket_wrapper.pc
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user