A new user interface for you! Read more...

File libArcus1.spec of Package libArcus

#
# spec file for package libArcus1
#
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:       libArcus1
Version:	15.10
Release:	1
License:	AGPL-3.0
Summary:	Communication library between internal components for Ultimaker software
Url:		https://github.com/Ultimaker/libArcus.git
Group:		Development/Science
Source:		%{name}-%{version}.tar.xz
Patch0:		set_system_path.patch
BuildRequires:	gcc-c++ cmake libprotobuf0 protobuf-devel-static protobuf-devel automake autoconf libtool python3
BuildRequires: pkg-config python3 python3-devel python3-sip python3-sip-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This library contains C++ code and Python3 bindings for creating a socket in a thread and using this socket to send and receive messages based on the Protocol Buffers library. It is designed to facilitate the communication between Cura and its backend and similar code.

%package devel
Summary: Development files for libArcus

%description devel
Development headers and libraries for the libArcus library.

%prep
%setup -q
%patch0 -p0 

%build

mkdir build
cd build
export CFLAGS=$RPM_OPT_FLAGS
export CXXFLAGS=$RPM_OPT_FLAGS

%ifarch x86_64 || aarch64
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DCMAKE_SKIP_RPATH=ON -DPYTHON_DESTDIR:PATH=%{python3_sitelib} -DLIB64=1 ..
%else
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DCMAKE_SKIP_RPATH=ON -DPYTHON_DESTDIR:PATH=%{python3_sitelib} ..
%endif

make

%install
cd build
%make_install

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-,root,root)
%doc README.md
%{_libdir}/lib*.so*
%{_libdir}/lib*.so*
%{python3_sitelib}/*

%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/cmake/*

%changelog