## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: libarcus Version: 5.3.0 Release: %autorelease Summary: Communication library between internal components for Ultimaker software License: LGPL-3.0-or-later URL: https://github.com/Ultimaker/libArcus Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz # Python bits Source1: https://github.com/Ultimaker/pyArcus/archive/%{version}.tar.gz#/pyArcus-%{version}.tar.gz # Cmake bits taken from 4.13.1, before upstream went nuts with conan Source2: FindSIP.cmake Source3: SIPMacros.cmake Source4: CMakeLists.txt Source5: CPackConfig.cmake Source6: ArcusConfig.cmake.in Source7: COPYING-CMAKE-SCRIPTS # https://bugzilla.redhat.com/show_bug.cgi?id=1601917 Patch1: libArcus-3.10.0-PyQt6.sip.patch # Actually export symbols Patch2: libArcus-5.2.2-actually-export-symbols.patch BuildRequires: protobuf-devel BuildRequires: python3-devel BuildRequires: python3-protobuf BuildRequires: python3-pyqt6-sip BuildRequires: python3-sip-devel BuildRequires: /usr/bin/sip BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: git-core # we add a dependency on setuptools to provide the distutils module # upstream already removed the distutils usage in version 5+ BuildRequires: (python3-setuptools if python3-devel >= 3.12) # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} %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. %package devel # The cmake scripts are BSD License: LGPLv3+ and BSD Summary: Development files for libarcus 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. Development files. %package -n python3-arcus Summary: Python 3 libArcus bindings Requires: %{name}%{?_isa} = %{version}-%{release} %{?_sip_api:Requires: python3-pyqt5-sip-api(%{_sip_api_major}) >= %{_sip_api}} %description -n python3-arcus 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. %prep %setup -q -n libArcus-%{version} -a 1 cp -a pyArcus-%{version}/python . cp -a pyArcus-%{version}/include/pyArcus include mkdir cmake cp -a %{SOURCE2} %{SOURCE3} %{SOURCE7} cmake/ rm -rf CMakeLists.txt cp -a %{SOURCE4} %{SOURCE5} %{SOURCE6} . cp -a pyArcus-%{version}/src/PythonMessage.cpp python/ %patch -P1 -p1 %patch -P2 -p1 -b .export %build %cmake -DBUILD_EXAMPLES:BOOL=OFF -DCMAKE_SKIP_RPATH:BOOL=ON %cmake_build %install %cmake_install %files %license LICENSE %doc README.md %{_libdir}/libArcus.so.* %files devel %license LICENSE cmake/COPYING-CMAKE-SCRIPTS %{_libdir}/libArcus.so %{_includedir}/Arcus # Own the dir not to depend on cmake: %{_libdir}/cmake %files -n python3-arcus %license LICENSE %doc README.md %{python3_sitearch}/pyArcus.so %changelog ## START: Generated by rpmautospec * Thu Jul 18 2024 Fedora Release Engineering - 5.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 5.3.0-4 - Rebuilt for Python 3.13 * Thu Jan 25 2024 Fedora Release Engineering - 5.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 5.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Dec 05 2023 Miro Hrončok - 5.3.0-1 - Update to 5.3.0 * Tue Dec 05 2023 Miro Hrončok - 5.2.2-6 - Update the License tag to SPDX * Tue Dec 05 2023 Miro Hrončok - 5.2.2-5 - Remove old cruft * Thu Jul 20 2023 Fedora Release Engineering - 5.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 5.2.2-2 - Rebuilt for Python 3.12 * Tue Mar 7 2023 Tom Callaway - 5.2.2-1 - update to 5.2.2 with the help of forward ported CMake bits * Thu Jan 19 2023 Fedora Release Engineering - 4.13.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 4.13.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Python Maint - 4.13.1-3 - Rebuilt for Python 3.11 * Mon Apr 11 2022 Tomáš Hrnčiar - 4.13.1-2 - Fix build failure with cmake 3.23+ * Tue Feb 01 2022 Gabriel Féron - 4.13.1-1 - Update to 4.13.1 * Thu Jan 20 2022 Gabriel Féron - 4.13.0-1 - Update to 4.13.0 * Thu Jan 20 2022 Fedora Release Engineering - 4.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Dec 13 2021 Gabriel Féron - 4.12.1-1 - Update to 4.12.1 * Sat Nov 06 2021 Adrian Reber - 4.11.0-3 - Rebuilt for protobuf 3.19.0 * Mon Oct 25 2021 Adrian Reber - 4.11.0-2 - Rebuilt for protobuf 3.18.1 * Wed Sep 15 2021 Gabriel Féron - 4.11.0-1 - Update to 4.11.0 * Mon Aug 16 2021 Gabriel Féron - 4.10.0-1 - Update to 4.10.0 * Thu Jul 22 2021 Fedora Release Engineering - 4.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 10 2021 Gabriel Féron - 4.9.1-1 - Update to 4.9.1 * Fri Jun 04 2021 Python Maint - 4.9.0-2 - Rebuilt for Python 3.10 * Mon Apr 26 2021 Gabriel Féron - 4.9.0-1 - Update to 4.9.0 * Tue Mar 30 2021 Jonathan Wakely - 4.8.0-4 - Rebuilt for removed libstdc++ symbol (#1937698) * Tue Jan 26 2021 Fedora Release Engineering - 4.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 13 09:45:36 CET 2021 Adrian Reber - 4.8.0-2 - Rebuilt for protobuf 3.14 * Tue Dec 22 2020 Jan Pazdziora - 4.8.0-1 - Update to 4.8.0 * Wed Sep 23 2020 Adrian Reber - 4.7.1-2 - Rebuilt for protobuf 3.13 * Thu Sep 03 2020 Miro Hrončok - 4.7.1-1 - Update to 4.7.1 * Tue Jul 28 2020 Fedora Release Engineering - 4.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Jun 14 2020 Adrian Reber - 4.6.1-3 - Rebuilt for protobuf 3.12 * Tue May 26 2020 Miro Hrončok - 4.6.1-2 - Rebuilt for Python 3.9 * Tue May 5 2020 Gabriel Féron - 4.6.0-1 - Update to 4.6.1 * Tue Apr 21 2020 Gabriel Féron - 4.6.0-1 - Update to 4.6.0 * Wed Jan 29 2020 Fedora Release Engineering - 4.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Dec 19 2019 Orion Poplawski - 4.4.0-2 - Rebuild for protobuf 3.11 * Thu Nov 21 2019 Gabriel Féron - 4.4.0-1 - Update to 4.4.0 * Fri Nov 01 2019 Miro Hrončok - 4.1.0-5 - Make the dependency of python3-arcus on libarcus strict (#1767762) * Mon Sep 16 2019 Rex Dieter - 4.1.0-4 - use python3-pyqt5-sip (#1748527#c12) * Mon Aug 19 2019 Miro Hrončok - 4.1.0-3 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Fedora Release Engineering - 4.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 18 2019 Gabriel Féron - 4.1.0-1 - Update to 4.1.0 * Wed Apr 03 2019 Gabriel Féron - 4.0.0-1 - Update to 4.0.0 * Fri Feb 01 2019 Fedora Release Engineering - 3.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jan 26 2019 Gabriel Féron - 3.6.0-1 - Update to 3.6.0 * Wed Nov 21 2018 Igor Gnatenko - 3.5.1-3 - Rebuild for protobuf 3.6 * Mon Nov 12 2018 Miro Hrončok - Use PyQt5.sip (#1601917) * Mon Nov 12 2018 Miro Hrončok - 3.5.1-1 - Update to 3.5.1 (#1644323) * Tue Aug 28 2018 Rex Dieter - 3.4.1-2 - use more robust upstreamable sip_flags.patch (#1601917) * Tue Aug 28 2018 Miro Hrončok - 3.4.1-1 - Update to 3.4.1 (#1599716) * Thu Aug 23 2018 Rex Dieter - 3.3.0-4 - Use PyQt5.sip (#1601917) * Fri Jul 13 2018 Fedora Release Engineering - 3.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 3.3.0-2 - Rebuilt for Python 3.7 * Wed May 02 2018 Miro Hrončok - 3.3.0-1 - Update to 3.3.0 (#1571482) * Mon Mar 19 2018 Miro Hrončok - 3.2.1-1 - Update to 3.2.1 (#1523891) * Wed Feb 07 2018 Fedora Release Engineering - 3.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Dec 09 2017 Miro Hrončok - 3.1.0-1 - Update to 3.1.0 (#1523891) - Don't sed lib -> lib64 (not needed now) * Wed Nov 29 2017 Igor Gnatenko - 3.0.3-3 - Rebuild for protobuf 3.5 * Mon Nov 13 2017 Igor Gnatenko - 3.0.3-2 - Rebuild for protobuf 3.4 * Fri Oct 20 2017 Charalampos Statakis - 3.0.3-1 - Update to 3.0.3 * Wed Aug 30 2017 Miro Hrončok - 2.7.0-1 - Update to 2.7.0 * Thu Aug 03 2017 Fedora Release Engineering - 2.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jun 28 2017 Miro Hrončok - 2.6.1-1 - Update to 2.6.1 * Tue Jun 27 2017 Miro Hrončok - 2.6.0-1 - Update to 2.6.0 * Tue Jun 13 2017 Miro Hrončok - 2.5.0-3 - Rebuilt for new protobuf 3.3.1 * Wed May 03 2017 Miro Hrončok - 2.5.0-2 - Clarify licensing information on cmake files * Wed Apr 26 2017 Miro Hrončok - 2.5.0-1 - Update to 2.5.0 * Sat Mar 25 2017 Miro Hrončok - 2.4.0-1 - Initial package ## END: Generated by rpmautospec