]>
Commit | Line | Data |
---|---|---|
02b51e75 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
4 | # | |
5 | Summary: Multiprocess IPC library | |
6 | Summary(pl.UTF-8): Biblioteka komunikacji międzyprocesowej | |
7 | Name: libmultiprocess | |
8 | Version: 0 | |
9 | %define gitref 9f4dac644acfd79e532a7da54b5e1363d555a5cc | |
10 | %define snap 20220110 | |
11 | Release: 0.%{snap}.1 | |
12 | License: MIT | |
13 | Group: Libraries | |
14 | #Source0Download: https://github.com/chaincodelabs/libmultiprocess/releases | |
15 | Source0: https://github.com/chaincodelabs/libmultiprocess/archive/%{gitref}/%{name}-%{snap}.tar.gz | |
16 | # Source0-md5: 0380ba289853ee950e6b4415552f57ca | |
17 | Patch0: %{name}-cmake.patch | |
18 | URL: https://github.com/chaincodelabs/libmultiprocess | |
19 | BuildRequires: capnproto-c++-devel | |
20 | BuildRequires: cmake >= 3.0 | |
21 | BuildRequires: libstdc++-devel >= 6:7 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | libmultiprocess is a C++ library and code generator making it easy to | |
26 | call functions and reference objects in different processes. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | libmultiprocess to biblioteka i generator kodu C++, ułatwiająca | |
30 | wywoływanie funkcji i obiektów referencyjnych w różnych procesach. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for libmultiprocess library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmultiprocess | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: capnproto-c++-devel | |
38 | Requires: libstdc++-devel >= 6:7 | |
39 | ||
40 | %description devel | |
41 | Header files for libmultiprocess library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki libmultiprocess. | |
45 | ||
46 | %prep | |
47 | %setup -q -n %{name}-%{gitref} | |
48 | %patch0 -p1 | |
49 | ||
50 | %build | |
51 | install -d build | |
52 | cd build | |
53 | %cmake .. \ | |
54 | -DCMAKE_INSTALL_LIBDIR=%{_lib} | |
55 | ||
56 | %{__make} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %{__make} -C build install \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %post -p /sbin/ldconfig | |
68 | %postun -p /sbin/ldconfig | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %doc COPYING README.md | |
73 | %attr(755,root,root) %{_libdir}/libmultiprocess.so.*.* | |
74 | %attr(755,root,root) %ghost %{_libdir}/libmultiprocess.so.0 | |
75 | ||
76 | %files devel | |
77 | %defattr(644,root,root,755) | |
78 | %doc doc/{design,usage}.md | |
79 | %attr(755,root,root) %{_bindir}/mpgen | |
80 | %attr(755,root,root) %{_libdir}/libmultiprocess.so | |
81 | %{_includedir}/mp | |
82 | %{_includedir}/mpgen.mk | |
83 | %{_pkgconfigdir}/libmultiprocess.pc | |
84 | %{_libdir}/cmake/Multiprocess |