]> git.pld-linux.org Git - packages/socket_wrapper.git/blob - socket_wrapper.spec
- updated to 1.4.2
[packages/socket_wrapper.git] / socket_wrapper.spec
1 Summary:        Socket wrapper library
2 Summary(pl.UTF-8):      Biblioteka obudowująca dla gniazd
3 Name:           socket_wrapper
4 Version:        1.4.2
5 Release:        1
6 License:        BSD
7 Group:          Libraries
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
12 # for tests
13 #BuildRequires: cmocka >= 1.1.0
14 BuildRequires:  rpmbuild(macros) >= 1.605
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
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.
22
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.
28
29 %package noop
30 Summary:        Socket wrapper noop library
31 Summary(pl.UTF-8):      Biblioteka socket wrapper noop
32 Group:          Libraries
33
34 %description 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.
38
39 During runtime these are overloaded with LD_PRELOAD by the real
40 libsocket_wrapper.so.
41
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
46 czasie budowania.
47
48 W czasie działania funkcje te są nadpisywane poprzez LD_PRELOAD
49 prawdziwej biblioteki libsocket_wrapper.so.
50
51 %package noop-devel
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}
56
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.
61
62 During runtime these are overloaded with LD_PRELOAD by the real
63 libsocket_wrapper.so.
64
65 This package contains header file with public functions.
66
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
71 czasie budowania.
72
73 W czasie działania funkcje te są nadpisywane poprzez LD_PRELOAD
74 prawdziwej biblioteki libsocket_wrapper.so.
75
76 Ten pakiet zawiera plik nagłówkowy z funkcjami publicznymi.
77
78 %prep
79 %setup -q
80
81 %build
82 install -d build
83 cd build
84 %cmake ..
85
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} -C build install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %post   noop -p /sbin/ldconfig
101 %postun noop -p /sbin/ldconfig
102
103 %files
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*
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.111953 seconds and 4 git commands to generate.