]>
Commit | Line | Data |
---|---|---|
d8d3c612 JR |
1 | Summary: Communication library between internal components for Ultimaker software |
2 | Name: libArcus | |
3 | Version: 2.5.0 | |
eda9713c | 4 | Release: 2 |
d8d3c612 JR |
5 | License: AGPLv3+ |
6 | Group: Libraries | |
7 | URL: https://github.com/Ultimaker/libArcus | |
8 | Source0: https://github.com/Ultimaker/libArcus/archive/%{version}/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: a8f83c896793262967971b7a94fe3082 | |
10 | BuildRequires: cmake | |
11 | BuildRequires: libstdc++-devel | |
12 | BuildRequires: protobuf-devel | |
13 | BuildRequires: python3-devel | |
14 | BuildRequires: python3-protobuf | |
15 | BuildRequires: python3-sip-devel | |
16 | BuildRequires: sip | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Arcus library contains C++ code and Python 3 bindings for creating a | |
21 | socket in a thread and using this socket to send and receive messages | |
22 | based on the Protocol Buffers library. It is designed to facilitate | |
23 | the communication between Cura and its backend and similar code. | |
24 | ||
25 | %package devel | |
26 | Summary: Development files for libArcus | |
27 | License: AGPLv3+ and BSD | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description devel | |
32 | Arcus library contains C++ code and Python 3 bindings for creating a | |
33 | socket in a thread and using this socket to send and receive messages | |
34 | based on the Protocol Buffers library. It is designed to facilitate | |
35 | the communication between Cura and its backend and similar code. | |
36 | ||
37 | Development files. | |
38 | ||
39 | %package -n python3-Arcus | |
40 | Summary: Python 3 libArcus bindings | |
41 | Group: Libraries/Python | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description -n python3-Arcus | |
45 | Arcus Python 3 bindings for creating a socket in a thread and using | |
46 | this socket to send and receive messages based on the Protocol Buffers | |
47 | library. It is designed to facilitate the communication between Cura | |
48 | and its backend and similar code. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | ||
53 | %build | |
54 | mkdir build | |
55 | cd build | |
56 | %{cmake} .. \ | |
57 | -DPYTHON_SITE_PACKAGES_DIR:PATH=%{py3_sitedir} \ | |
58 | -DBUILD_EXAMPLES:BOOL=OFF \ | |
59 | -DCMAKE_SKIP_RPATH:BOOL=ON | |
60 | ||
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | %{__make} -C build install DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %post -p /sbin/ldconfig | |
71 | %postun -p /sbin/ldconfig | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %doc README.md | |
76 | %attr(755, root, root) %{_libdir}/libArcus.so.*.*.* | |
77 | %attr(755, root, root) %ghost %{_libdir}/libArcus.so.3 | |
78 | ||
79 | %files devel | |
80 | %defattr(644,root,root,755) | |
81 | %doc examples/example.cpp examples/example.proto | |
82 | %attr(755, root, root) %{_libdir}/libArcus.so | |
83 | %{_includedir}/Arcus | |
84 | %{_libdir}/cmake/Arcus | |
85 | ||
86 | %files -n python3-Arcus | |
87 | %defattr(644,root,root,755) | |
88 | %doc TODO.md | |
89 | %doc examples/example.py | |
90 | %attr(755, root, root) %{py3_sitedir}/Arcus.so |