2020-10-28 17:28:22 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python3-pynest2d
|
|
|
|
|
#
|
2022-03-09 09:09:37 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-10-28 17:28:22 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python3-pynest2d
|
2022-03-09 09:09:37 +00:00
|
|
|
Version: 4.12.0
|
2020-10-28 17:28:22 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: CPython bindings for libnest2d
|
|
|
|
|
License: LGPL-3.0-only
|
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-11-22 15:29:02 +00:00
|
|
|
URL: https://github.com/Ultimaker/pynest2d
|
2022-03-09 09:09:37 +00:00
|
|
|
Source: https://github.com/Ultimaker/pynest2d/archive/refs/tags/%{version}.tar.gz#/pynest2d-%{version}.tar.gz
|
2020-10-28 17:28:22 +00:00
|
|
|
# PATCH-FIX-OPENSUSE -- add PyQt5 namespace
|
|
|
|
|
Patch0: pynest2d-PyQt5.sip.patch
|
2022-03-09 20:29:00 +00:00
|
|
|
# PATCH-FIX-UPSTREAM -- https://github.com/Ultimaker/pynest2d/pull/3
|
|
|
|
|
Patch1: Retrieve-required-flags-from-Libnest2D-target.patch
|
2020-10-28 17:28:22 +00:00
|
|
|
BuildRequires: cmake >= 3.6
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: libnest2d-devel
|
2020-11-22 15:29:02 +00:00
|
|
|
BuildRequires: python3-sip-devel < 5
|
2022-03-09 08:37:39 +00:00
|
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150300
|
2020-12-16 16:17:46 +00:00
|
|
|
# The PyQt5.sip module. NOT a dependency on (Py)Qt5
|
|
|
|
|
BuildRequires: python3-qt5-sip
|
|
|
|
|
Requires: python3-qt5-sip
|
|
|
|
|
%else
|
|
|
|
|
# Older distributions provide PyQt5.sip through python3-sip
|
|
|
|
|
BuildRequires: python3-sip < 5
|
|
|
|
|
Requires: python3-sip < 5
|
|
|
|
|
%endif
|
2020-10-28 17:28:22 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Binding allowing libnest2d to be called from Python using Numpy.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-03-09 09:09:37 +00:00
|
|
|
%autosetup -n pynest2d-%{version} -p1
|
2020-10-28 17:28:22 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{python3_sitearch}/pynest2d.so
|
|
|
|
|
|
|
|
|
|
%changelog
|