Summary: Socket wrapper library
Summary(pl.UTF-8): Biblioteka obudowująca dla gniazd
Name: socket_wrapper
-Version: 1.2.5
+Version: 1.3.3
Release: 1
License: BSD
Group: Libraries
-Source0: https://www.samba.org/ftp/cwrap/%{name}-%{version}.tar.gz
-# Source0-md5: 2c5bd1337de9ce5f09d48a6c3f553b5a
+Source0: https://download.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
+# Source0-md5: e0f7574b1c1812dd4991f16023a19bcc
URL: https://cwrap.org/socket_wrapper.html
BuildRequires: cmake >= 3.5.0
# for tests
funkcjonalnych złożonych konfiguracji sieciowych. Przekazuje całą
komunikację przez gniazda uniksowe.
+%package noop
+Summary: Socket wrapper noop library
+Summary(pl.UTF-8): Biblioteka socket wrapper noop
+Group: Libraries
+
+%description noop
+Applications with the need to alter their behaviour when socket
+wrapper is active, can link to this with -lsocket_wrapper_noop in
+order to call get the required public functions at link time.
+
+During runtime these are overloaded with LD_PRELOAD by the real
+libsocket_wrapper.so.
+
+%description noop -l pl.UTF-8
+Aplikacje potrzebujące zmienić swoje zachowanie, kiedy moduł socket
+wrapper jest aktywny mogą włączyć tę bibliotekę jako
+-lsocket_wrapper_noop, aby uzyskać potrzebne funkcje publiczne w
+czasie budowania.
+
+W czasie działania funkcje te są nadpisywane poprzez LD_PRELOAD
+prawdziwej biblioteki libsocket_wrapper.so.
+
+%package noop-devel
+Summary: Header file for socket_wrapper_noop library
+Summary(pl.UTF-8): Plik nagłówkowy biblioteki socket_wrapper_noop
+Group: Development/Libraries
+Requires: %{name}-noop = %{version}-%{release}
+
+%description noop-devel
+Applications with the need to alter their behaviour when socket
+wrapper is active, can link to this with -lsocket_wrapper_noop in
+order to call get the required public functions at link time.
+
+During runtime these are overloaded with LD_PRELOAD by the real
+libsocket_wrapper.so.
+
+This package contains header file with public functions.
+
+%description noop-devel -l pl.UTF-8
+Aplikacje potrzebujące zmienić swoje zachowanie, kiedy moduł socket
+wrapper jest aktywny mogą włączyć tę bibliotekę jako
+-lsocket_wrapper_noop, aby uzyskać potrzebne funkcje publiczne w
+czasie budowania.
+
+W czasie działania funkcje te są nadpisywane poprzez LD_PRELOAD
+prawdziwej biblioteki libsocket_wrapper.so.
+
+Ten pakiet zawiera plik nagłówkowy z funkcjami publicznymi.
+
%prep
%setup -q
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+%post noop -p /sbin/ldconfig
+%postun noop -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%doc AUTHORS CHANGELOG LICENSE README.md TODO
%attr(755,root,root) %ghost %{_libdir}/libsocket_wrapper.so.0
%attr(755,root,root) %{_libdir}/libsocket_wrapper.so
%{_pkgconfigdir}/socket_wrapper.pc
-%{_libdir}/cmake/socket_wrapper
+%dir %{_libdir}/cmake/socket_wrapper
+%{_libdir}/cmake/socket_wrapper/socket_wrapper-config*.cmake
%{_mandir}/man1/socket_wrapper.1*
+
+%files noop
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsocket_wrapper_noop.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libsocket_wrapper_noop.so.0
+
+%files noop-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsocket_wrapper_noop.so
+%{_includedir}/socket_wrapper.h
+%{_pkgconfigdir}/socket_wrapper_noop.pc
+%dir %{_libdir}/cmake/socket_wrapper
+%{_libdir}/cmake/socket_wrapper/socket_wrapper_noop-config*.cmake