File libArcus-lulzbot.spec of Package libArcus-lulzbot

#
# spec file for package libArcus-lulzbot
#
# Copyright (c) 2018 SUSE LINUX 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/
#


%define sover 3
Name:           libArcus-lulzbot
Version:        3.2.20
Release:        0
Summary:        3D printer control software
License:        AGPL-3.0-or-later
Group:          Development/Libraries/C and C++
Url:            https://code.alephobjects.com/source/arcus.git
Source:         libArcus-%{version}.tar.xz
Patch1:         fix-build.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  protobuf-c
BuildRequires:  protobuf-devel
BuildRequires:  python3-sip-devel
BuildRequires:  pkgconfig(libprotobuf-c)

%description
Communication library between internal components for cura ulzbot edition.

The lulzbot edition is incompatible to the ultimaker one.

%package -n libArcus%{sover}-lulzbot
Summary:        3D printer control software
Group:          System/Libraries
Conflicts:      libArcus%{sover}

%description -n libArcus%{sover}-lulzbot
Communication library between internal components for cura lulzbot edition

%package devel
Summary:        Header files for libArcus
Group:          Development/Libraries/C and C++
Conflicts:      libArcus-devel
Requires:       libArcus%{sover}-lulzbot = %{version}
Requires:       protobuf-devel
Requires:       python3-sip-devel
Requires:       pkgconfig(libprotobuf-c)

%description devel

%prep
%setup -q -n libArcus-%version
%patch1 -p1

%build
%cmake
make %{?_smp_mflags}

%install
cd build
%make_install

%post   -n libArcus%{sover}-lulzbot -p /sbin/ldconfig
%postun -n libArcus%{sover}-lulzbot -p /sbin/ldconfig

%files devel
%defattr(-,root,root,-)
%doc TODO.md
/usr/include/Arcus
%_libdir/cmake/Arcus
%_libdir/libArcus.so

%files -n libArcus%{sover}-lulzbot
%defattr(-,root,root,-)
%doc LICENSE README.md
%{python3_sitearch}/Arcus.so
%_libdir/libArcus.so.*

%changelog
openSUSE Build Service is sponsored by