1 Summary: Communication library between internal components for Ultimaker software
2 Summary(pl.UTF-8): Biblioteka komunikacji między wewnętrznymi komponentami oprogramowania Ultimaker
8 #Source0Download: https://github.com/Ultimaker/libArcus/releases
9 Source0: https://github.com/Ultimaker/libArcus/archive/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: 2966fc6e19f0ace9803cc90754a5f0fd
11 Patch0: PyQt5-sip.patch
12 URL: https://github.com/Ultimaker/libArcus
13 BuildRequires: cmake >= 2.8.12
14 BuildRequires: libstdc++-devel >= 6:4.7
15 BuildRequires: protobuf-devel >= 3.0.0
16 BuildRequires: python3-devel >= 1:3.2
17 BuildRequires: python3-sip-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Arcus library contains C++ code and Python 3 bindings for creating a
23 socket in a thread and using this socket to send and receive messages
24 based on the Protocol Buffers library. It is designed to facilitate
25 the communication between Cura and its backend and similar code.
27 %description -l pl.UTF-8
28 Biblioteka Arcus zawiera kod C++ oraz wiązania Pythona 3 do tworzenia
29 gniazda w wątku i wykorzystywania tego gniazda do wysyłania i
30 odbierania komunikatów w oparciu o bibliotekę Protocol Buffers.
31 Została zaprojektowana, aby ułatwić komunikację między programem Cura
32 a jego backendem i podobnym kodem.
35 Summary: Development files for libArcus
36 Summary(pl.UTF-8): Pliki programistyczne biblioteki libArcus
37 License: AGPL v3+ and BSD
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
42 Development files for libArcus.
44 %description devel -l pl
45 Pliki programistyczne biblioteki libArcus.
47 %package -n python3-Arcus
48 Summary: Python 3 bindings for libArcus
49 Summary(pl.UTF-8): Wiązania Pythona 3 do biblioteki libArcus
50 Group: Libraries/Python
51 Requires: %{name} = %{version}-%{release}
53 %description -n python3-Arcus
54 Arcus Python 3 bindings for creating a socket in a thread and using
55 this socket to send and receive messages based on the Protocol Buffers
56 library. It is designed to facilitate the communication between Cura
57 and its backend and similar code.
59 %description -n python3-Arcus -l pl.UTF-8
60 Wiązania Pythona 3 do biblioteki Arcus, tworzącej gniazdo w wątku i
61 wykorzystującej to gniazdo do wysyłania i odbierania komunikatów w
62 oparciu o bibliotekę Protocol Buffers. Biblioteka została
63 zaprojektowana, aby ułatwić komunikację między programem Cura a jego
64 backendem i podobnym kodem.
74 -DBUILD_EXAMPLES:BOOL=OFF \
75 -DCMAKE_SKIP_RPATH:BOOL=ON
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT%{py3_sitedir}
83 %{__make} -C build install \
84 DESTDIR=$RPM_BUILD_ROOT
86 # python location detection is totally screwed in this package
87 %{__mv} $RPM_BUILD_ROOT{/usr/local/%{_lib}/python3*/site-packages,%{py3_sitedir}}/Arcus.so
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc README.md TODO.md
98 %attr(755,root,root) %{_libdir}/libArcus.so.*.*.*
99 %attr(755,root,root) %ghost %{_libdir}/libArcus.so.3
102 %defattr(644,root,root,755)
103 %doc examples/example.cpp examples/example.proto
104 %attr(755,root,root) %{_libdir}/libArcus.so
106 %{_libdir}/cmake/Arcus
108 %files -n python3-Arcus
109 %defattr(644,root,root,755)
110 %doc examples/example.py
111 %attr(755,root,root) %{py3_sitedir}/Arcus.so