Name: libarcus-lulzbot Version: 3.6.12 Release: 3%{?dist} Summary: Communication library between Cura components, Lulzbot fork License: LGPLv3+ URL: https://code.alephobjects.com/source/arcus # git clone https://code.alephobjects.com/source/arcus.git # cd arcus # git checkout v3.6.12 ## CANNOT use git archive here, because we need to scrape the hash for version # cd .. # mv arcus libarcus-lulzbot-3.6.12 # tar cvfz libarcus-lulzbot-3.6.12.tar.gz libarcus-lulzbot-3.6.12 Source0: %{name}-%{version}.tar.gz # https://bugzilla.redhat.com/show_bug.cgi?id=1601917 Patch1: libArcus-3.5.1-PyQt5.sip.patch # Gonna make this our fork Patch2: libArcus-3.6.12-lulzbot.patch Patch3: libarcus-lulzbot-3.6.12-find-sip.patch BuildRequires: protobuf-devel BuildRequires: python3-devel BuildRequires: python3-protobuf BuildRequires: python3-sip-devel BuildRequires: /usr/bin/sip BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: git-core %description Arcus library contains C++ code and Python 3 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. This is the Lulzbot fork. %package devel # The cmake scripts are BSD License: LGPLv3+ and BSD Summary: Development files for libarcus, Lulzbot fork Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Arcus library contains C++ code and Python 3 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. This is the Lulzbot fork. Development files. %package -n python3-arcus-lulzbot Summary: Python 3 libArcus bindings, Lulzbot fork Requires: python3-sip %{?python_provide:%python_provide python3-arcus-lulzbot} %description -n python3-arcus-lulzbot Arcus Python 3 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. This is the Lulzbot fork. %prep %setup -q -n libarcus-lulzbot-%{version} %patch1 -p1 -b .pyQT5 %patch2 -p1 -b .lulzbot %patch3 -p1 -b .sipfix %build %{cmake} -DBUILD_EXAMPLES:BOOL=OFF -DCMAKE_SKIP_RPATH:BOOL=ON . make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} mv %{buildroot}%{_libdir}/cmake/Arcus-lulzbot/ArcusConfig.cmake %{buildroot}%{_libdir}/cmake/Arcus-lulzbot/Arcus-lulzbotConfig.cmake %files %license LICENSE %doc README.md TODO.md %{_libdir}/libArcus-lulzbot.so.* %files devel %license LICENSE cmake/COPYING-CMAKE-SCRIPTS %doc examples/example.cpp examples/example.proto %{_libdir}/libArcus-lulzbot.so %{_includedir}/Arcus-lulzbot # Own the dir not to depend on cmake: %{_libdir}/cmake %files -n python3-arcus-lulzbot %license LICENSE %doc README.md TODO.md %doc examples/example.py %{python3_sitearch}/Arcus-lulzbot.so %changelog * Thu Jul 11 2019 Tom Callaway - 3.6.12-3 - add lulzbot fork info to subpackage summaries * Wed Jul 10 2019 Tom Callaway - 3.6.12-2 - fix python_provide to refer to this fork - fix license tag in -devel * Fri Jun 28 2019 Tom Callaway - 3.6.12-1 - initial package (based on libarcus package)