]>
Commit | Line | Data |
---|---|---|
3a4186b0 JB |
1 | Summary: Socket wrapper library |
2 | Summary(pl.UTF-8): Biblioteka obudowująca dla gniazd | |
3 | Name: socket_wrapper | |
b03556a5 | 4 | Version: 1.0.2 |
3a4186b0 JB |
5 | Release: 1 |
6 | License: BSD | |
7 | Group: Libraries | |
8 | Source0: http://www.samba.org/ftp/cwrap/%{name}-%{version}.tar.gz | |
b03556a5 | 9 | # Source0-md5: 70e49650406c4747e0524b8e7dd0117e |
3a4186b0 JB |
10 | URL: http://cwrap.org/socket_wrapper.html |
11 | BuildRequires: cmake >= 2.8.5 | |
12 | BuildRequires: rpmbuild(macros) >= 1.605 | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | This library makes possible to run several instances of the full | |
17 | software stack on the same machine and perform locally functional | |
18 | testing of complex network configurations. It passes all socket | |
19 | communication over unix domain sockets. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | Ta biblioteka umożliwia uruchamianie kilku instancji pełnego stosu | |
23 | programowego na tej samej maszynie i wykonywanie lokalnie testów | |
24 | funkcjonalnych złożonych konfiguracji sieciowych. Przekazuje całą | |
25 | komunikację przez gniazda uniksowe. | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %build | |
31 | install -d build | |
32 | cd build | |
33 | %cmake .. | |
34 | ||
35 | %{__make} | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %{__make} -C build install \ | |
41 | DESTDIR=$RPM_BUILD_ROOT | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %post -p /sbin/ldconfig | |
47 | %postun -p /sbin/ldconfig | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc AUTHORS COPYING ChangeLog README TODO | |
52 | %attr(755,root,root) %{_libdir}/libsocket_wrapper.so.*.*.* | |
53 | %attr(755,root,root) %ghost %{_libdir}/libsocket_wrapper.so.0 | |
54 | %attr(755,root,root) %{_libdir}/libsocket_wrapper.so | |
55 | %{_pkgconfigdir}/socket_wrapper.pc | |
b03556a5 | 56 | %{_libdir}/cmake/socket_wrapper |