OBS-URL: https://build.opensuse.org/package/show/science/libArcus-lulzbot?expand=0&rev=44
104 lines
2.8 KiB
RPMSpec
104 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package libArcus-lulzbot
|
|
#
|
|
# Copyright (c) 2019 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
%define pythons 311
|
|
|
|
%define sover 1
|
|
Name: libArcus-lulzbot
|
|
Version: 3.6.21
|
|
Release: 0
|
|
Summary: 3D printer control software
|
|
License: LGPL-3.0-only
|
|
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++
|
|
%if 0%{suse_version} < 1599
|
|
BuildRequires: protobuf-devel
|
|
BuildRequires: python-sip-devel
|
|
%else
|
|
# python 3.11 breaks Qt5
|
|
BuildRequires: protobuf21-devel
|
|
BuildRequires: python311-sip4-devel
|
|
BuildRequires: python311-devel
|
|
%endif
|
|
BuildRequires: python3-qt5-sip
|
|
|
|
%description
|
|
Communication library between internal components for cura ulzbot edition.
|
|
|
|
The lulzbot edition is incompatible to the ultimaker one.
|
|
|
|
%package -n libArcus%{sover}
|
|
Summary: 3D printer control software
|
|
Group: System/Libraries
|
|
|
|
%description -n libArcus%{sover}
|
|
Communication library between internal components for cura lulzbot edition
|
|
|
|
%package -n python3-Arcus
|
|
Summary: Python bindings for libArcus
|
|
Group: Development/Languages/Python
|
|
Requires: libArcus%{sover} = %{version}
|
|
|
|
%description -n python3-Arcus
|
|
Python bindings for the Arcus communication library.
|
|
|
|
%package devel
|
|
Summary: Header files for libArcus
|
|
Group: Development/Libraries/C and C++
|
|
Conflicts: libArcus-devel
|
|
Requires: libArcus%{sover} = %{version}
|
|
Requires: protobuf21-devel
|
|
Requires: python311-sip4-devel
|
|
|
|
%description devel
|
|
|
|
%prep
|
|
%setup -q -n libArcus-%version
|
|
%patch1 -p1
|
|
|
|
%build
|
|
%cmake -DPYTHON_EXECUTABLE=/usr/bin/python3.11
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
cd build
|
|
%make_install
|
|
|
|
%post -n libArcus%{sover} -p /sbin/ldconfig
|
|
%postun -n libArcus%{sover} -p /sbin/ldconfig
|
|
|
|
%files devel
|
|
%doc TODO.md
|
|
/usr/include/Arcus
|
|
%_libdir/cmake/Arcus
|
|
%_libdir/libArcus.so
|
|
|
|
%files -n libArcus%{sover}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%_libdir/libArcus.so.*
|
|
|
|
%files -n python3-Arcus
|
|
%license LICENSE
|
|
/usr/lib64/python3.11/site-packages/Arcus.so
|
|
|
|
%changelog
|