1 Summary: Socket wrapper library
2 Summary(pl.UTF-8): Biblioteka obudowująca dla gniazd
8 Source0: https://download.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
9 # Source0-md5: e4051475d15118ce1e89e68af7e8ccd9
10 URL: https://cwrap.org/socket_wrapper.html
11 BuildRequires: cmake >= 3.5.0
13 #BuildRequires: cmocka >= 1.1.0
14 BuildRequires: rpmbuild(macros) >= 1.605
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 This library makes possible to run several instances of the full
19 software stack on the same machine and perform locally functional
20 testing of complex network configurations. It passes all socket
21 communication over unix domain sockets.
23 %description -l pl.UTF-8
24 Ta biblioteka umożliwia uruchamianie kilku instancji pełnego stosu
25 programowego na tej samej maszynie i wykonywanie lokalnie testów
26 funkcjonalnych złożonych konfiguracji sieciowych. Przekazuje całą
27 komunikację przez gniazda uniksowe.
30 Summary: Socket wrapper noop library
31 Summary(pl.UTF-8): Biblioteka socket wrapper noop
35 Applications with the need to alter their behaviour when socket
36 wrapper is active, can link to this with -lsocket_wrapper_noop in
37 order to call get the required public functions at link time.
39 During runtime these are overloaded with LD_PRELOAD by the real
42 %description noop -l pl.UTF-8
43 Aplikacje potrzebujące zmienić swoje zachowanie, kiedy moduł socket
44 wrapper jest aktywny mogą włączyć tę bibliotekę jako
45 -lsocket_wrapper_noop, aby uzyskać potrzebne funkcje publiczne w
48 W czasie działania funkcje te są nadpisywane poprzez LD_PRELOAD
49 prawdziwej biblioteki libsocket_wrapper.so.
52 Summary: Header file for socket_wrapper_noop library
53 Summary(pl.UTF-8): Plik nagłówkowy biblioteki socket_wrapper_noop
54 Group: Development/Libraries
55 Requires: %{name}-noop = %{version}-%{release}
57 %description noop-devel
58 Applications with the need to alter their behaviour when socket
59 wrapper is active, can link to this with -lsocket_wrapper_noop in
60 order to call get the required public functions at link time.
62 During runtime these are overloaded with LD_PRELOAD by the real
65 This package contains header file with public functions.
67 %description noop-devel -l pl.UTF-8
68 Aplikacje potrzebujące zmienić swoje zachowanie, kiedy moduł socket
69 wrapper jest aktywny mogą włączyć tę bibliotekę jako
70 -lsocket_wrapper_noop, aby uzyskać potrzebne funkcje publiczne w
73 W czasie działania funkcje te są nadpisywane poprzez LD_PRELOAD
74 prawdziwej biblioteki libsocket_wrapper.so.
76 Ten pakiet zawiera plik nagłówkowy z funkcjami publicznymi.
89 rm -rf $RPM_BUILD_ROOT
91 %{__make} -C build install \
92 DESTDIR=$RPM_BUILD_ROOT
95 rm -rf $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
100 %post noop -p /sbin/ldconfig
101 %postun noop -p /sbin/ldconfig
104 %defattr(644,root,root,755)
105 %doc AUTHORS CHANGELOG LICENSE README.md TODO
106 %attr(755,root,root) %{_libdir}/libsocket_wrapper.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libsocket_wrapper.so.0
108 %attr(755,root,root) %{_libdir}/libsocket_wrapper.so
109 %{_pkgconfigdir}/socket_wrapper.pc
110 %dir %{_libdir}/cmake/socket_wrapper
111 %{_libdir}/cmake/socket_wrapper/socket_wrapper-config*.cmake
112 %{_mandir}/man1/socket_wrapper.1*
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libsocket_wrapper_noop.so.*.*.*
117 %attr(755,root,root) %ghost %{_libdir}/libsocket_wrapper_noop.so.0
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libsocket_wrapper_noop.so
122 %{_includedir}/socket_wrapper.h
123 %{_pkgconfigdir}/socket_wrapper_noop.pc
124 %dir %{_libdir}/cmake/socket_wrapper
125 %{_libdir}/cmake/socket_wrapper/socket_wrapper_noop-config*.cmake