Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37705127
en ru br
ALT Linux repos
S:4.8-alt3

Group :: Development/Python3
RPM: python3-module-pynest2d

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1

Name:     python3-module-pynest2d
Version:  4.8
Release:  alt3

Summary:  Python bindings for libnest2d
License:  LGPL-3.0
Group:    Development/Python3
Url:      https://github.com/Ultimaker/pynest2d

Packager: Anton Midyukov <antohami at altlinux.org>

Source:   %name-%version.tar

# Add PyQt5 namespace

Patch0: pynest2d-PyQt5.sip.patch
# https://github.com/Ultimaker/pynest2d/pull/3
Patch1: Retrieve-required-flags-from-Libnest2D-target.patch

Patch2: fix-cpp-version.patch

BuildRequires(pre): rpm-macros-cmake
BuildRequires(pre): rpm-build-python3
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: python3-dev
BuildRequires: libnest2d-devel
BuildRequires: python3-module-sip-devel
BuildRequires: boost-geometry-devel
%ifarch %e2k
# there is a bug in GCC that ignores some non-existent includes
# no other compiler has this bug
# this package needs "quadmath.h" to build if
# _GLIBCXX_USE_FLOAT128 from <cstddef> is defined
BuildRequires: libquadmath-devel
%endif

%description
%summary

%prep
%setup
%patch0 -p1
%patch1 -p1
%patch2 -p1

# fix for use python3-module-sip-devel

sed -i 's/find_program(SIP_EXECUTABLE sip/find_program(SIP_EXECUTABLE sip3/' \
 cmake/FindSIP.cmake

%build
%cmake
%cmake_build

%install
%cmakeinstall_std

%files
%doc README.md
%python3_sitelibdir/pynest2d.so

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin