]> git.pld-linux.org Git - packages/socket_wrapper.git/blame - socket_wrapper.spec
- updated to 1.4.2
[packages/socket_wrapper.git] / socket_wrapper.spec
CommitLineData
3a4186b0
JB
1Summary: Socket wrapper library
2Summary(pl.UTF-8): Biblioteka obudowująca dla gniazd
3Name: socket_wrapper
cc55092e 4Version: 1.4.2
2fcc5cbf 5Release: 1
3a4186b0
JB
6License: BSD
7Group: Libraries
56471229 8Source0: https://download.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
cc55092e 9# Source0-md5: e4051475d15118ce1e89e68af7e8ccd9
86e100dc 10URL: https://cwrap.org/socket_wrapper.html
16707db6
JB
11BuildRequires: cmake >= 3.5.0
12# for tests
13#BuildRequires: cmocka >= 1.1.0
3a4186b0
JB
14BuildRequires: rpmbuild(macros) >= 1.605
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18This library makes possible to run several instances of the full
19software stack on the same machine and perform locally functional
20testing of complex network configurations. It passes all socket
21communication over unix domain sockets.
22
23%description -l pl.UTF-8
24Ta biblioteka umożliwia uruchamianie kilku instancji pełnego stosu
25programowego na tej samej maszynie i wykonywanie lokalnie testów
26funkcjonalnych złożonych konfiguracji sieciowych. Przekazuje całą
27komunikację przez gniazda uniksowe.
28
56471229
JB
29%package noop
30Summary: Socket wrapper noop library
31Summary(pl.UTF-8): Biblioteka socket wrapper noop
32Group: Libraries
33
34%description noop
35Applications with the need to alter their behaviour when socket
36wrapper is active, can link to this with -lsocket_wrapper_noop in
37order to call get the required public functions at link time.
38
39During runtime these are overloaded with LD_PRELOAD by the real
40libsocket_wrapper.so.
41
42%description noop -l pl.UTF-8
43Aplikacje potrzebujące zmienić swoje zachowanie, kiedy moduł socket
44wrapper jest aktywny mogą włączyć tę bibliotekę jako
45-lsocket_wrapper_noop, aby uzyskać potrzebne funkcje publiczne w
46czasie budowania.
47
48W czasie działania funkcje te są nadpisywane poprzez LD_PRELOAD
49prawdziwej biblioteki libsocket_wrapper.so.
50
51%package noop-devel
52Summary: Header file for socket_wrapper_noop library
53Summary(pl.UTF-8): Plik nagłówkowy biblioteki socket_wrapper_noop
54Group: Development/Libraries
55Requires: %{name}-noop = %{version}-%{release}
56
57%description noop-devel
58Applications with the need to alter their behaviour when socket
59wrapper is active, can link to this with -lsocket_wrapper_noop in
60order to call get the required public functions at link time.
61
62During runtime these are overloaded with LD_PRELOAD by the real
63libsocket_wrapper.so.
64
65This package contains header file with public functions.
66
67%description noop-devel -l pl.UTF-8
68Aplikacje potrzebujące zmienić swoje zachowanie, kiedy moduł socket
69wrapper jest aktywny mogą włączyć tę bibliotekę jako
70-lsocket_wrapper_noop, aby uzyskać potrzebne funkcje publiczne w
71czasie budowania.
72
73W czasie działania funkcje te są nadpisywane poprzez LD_PRELOAD
74prawdziwej biblioteki libsocket_wrapper.so.
75
76Ten pakiet zawiera plik nagłówkowy z funkcjami publicznymi.
77
3a4186b0
JB
78%prep
79%setup -q
80
81%build
82install -d build
83cd build
84%cmake ..
85
86%{__make}
87
88%install
89rm -rf $RPM_BUILD_ROOT
90
91%{__make} -C build install \
92 DESTDIR=$RPM_BUILD_ROOT
93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
97%post -p /sbin/ldconfig
98%postun -p /sbin/ldconfig
99
56471229
JB
100%post noop -p /sbin/ldconfig
101%postun noop -p /sbin/ldconfig
102
3a4186b0
JB
103%files
104%defattr(644,root,root,755)
ccaf58e7 105%doc AUTHORS CHANGELOG LICENSE README.md TODO
3a4186b0
JB
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
56471229
JB
110%dir %{_libdir}/cmake/socket_wrapper
111%{_libdir}/cmake/socket_wrapper/socket_wrapper-config*.cmake
bcb6e901 112%{_mandir}/man1/socket_wrapper.1*
56471229
JB
113
114%files noop
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
118
119%files noop-devel
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
This page took 0.191953 seconds and 4 git commands to generate.