## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 19; 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 # Copyright (c) 2020 SUSE LLC # # 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. Name: python-pynest2d Version: 4.8.0 Release: %autorelease Summary: Python bindings for libnest2d # Automatically converted from old format: LGPLv3 - review is highly recommended. License: LGPL-3.0-only URL: https://github.com/Ultimaker/pynest2d Source: %{url}/archive/%{version}/pynest2d-%{version}.tar.gz # Downstream patch: add PyQt5 namespace Patch0: pynest2d-PyQt5.sip.patch # Retrieve required flags from Libnest2D target # https://github.com/Ultimaker/pynest2d/pull/3 Patch1: Retrieve-required-flags-from-Libnest2D-target.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libnest2d-static BuildRequires: python3-devel BuildRequires: python3-sip-devel < 5 BuildRequires: python3-pyqt5-sip Requires: python3-pyqt5-sip # 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) %description Binding allowing libnest2d to be called from Python using NumPy. %package -n python3-pynest2d Summary: %{summary} %description -n python3-pynest2d Binding allowing libnest2d to be called from Python using NumPy. %prep %autosetup -n pynest2d-%{version} -p1 # Boost 1.75+ needs C++14, upstream: https://github.com/Ultimaker/pynest2d/pull/7 sed -i 's/CMAKE_CXX_STANDARD 11/CMAKE_CXX_STANDARD 14/' CMakeLists.txt %build %cmake %cmake_build %install %cmake_install %files -n python3-pynest2d %license LICENSE %doc README.md %{python3_sitearch}/pynest2d.so %changelog ## START: Generated by rpmautospec * Fri Jul 26 2024 Miroslav Suchý - 4.8.0-19 - convert LGPLv3 license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 4.8.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 4.8.0-17 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 4.8.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 4.8.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 4.8.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jun 16 2023 Python Maint - 4.8.0-10 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 4.8.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 4.8.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Python Maint - 4.8.0-7 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 4.8.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 4.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 4.8.0-4 - Rebuilt for Python 3.10 * Tue Mar 30 2021 Jonathan Wakely - 4.8.0-3 - Rebuilt for removed libstdc++ symbol (#1937698) * Wed Jan 27 2021 Fedora Release Engineering - 4.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 28 2020 Miro Hrončok - 4.8.0-1 - Initial package adapted from SUSE (by Stefan Brüns ) ## END: Generated by rpmautospec