## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 12; 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: libnest2d %global commit da4782500da4eb8cb6e38e5e3f10164ec5a59778 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Version: 0.4^20200805git%{shortcommit} Release: %autorelease Summary: Library for the 2D bin packaging problem # Automatically converted from old format: LGPLv3 - review is highly recommended. License: LGPL-3.0-only URL: https://github.com/tamasmeszaros/libnest2d Source: %{url}/archive/%{commit}/libnest2d-%{shortcommit}.tar.gz # Add disallowed areas Patch0: %{url}/pull/18.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: boost-devel BuildRequires: polyclipping-devel BuildRequires: pkgconfig(nlopt) # This is a header only library %global debug_package %{nil} %description A library and framework for the 2D bin packaging problem. %package devel Summary: %{summary} Provides: %{name}-static = %{?epoch:%{epoch}:}%{version}-%{release} Requires: boost-devel Requires: polyclipping-devel Requires: pkgconfig(nlopt) %description devel A library and framework for the 2D bin packaging problem. %prep %autosetup -n %{name}-%{commit} -p1 sed -i -e "s/ lib\([^n]\)/ "%{_lib}"\1/" CMakeLists.txt %build %cmake -DLIBNEST2D_HEADER_ONLY=ON %cmake_build %install %cmake_install %files devel %license LICENSE.txt %doc README.md %{_includedir}/libnest2d/ %{_libdir}/cmake/Libnest2D/ %changelog ## START: Generated by rpmautospec * Fri Jul 26 2024 Miroslav Suchý - 0.4^20200805gitda47825-12 - convert LGPLv3 license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 0.4^20200805gitda47825-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.4^20200805gitda47825-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.4^20200805gitda47825-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.4^20200805gitda47825-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 0.4^20200805gitda47825-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0.4^20200805gitda47825-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.4^20200805gitda47825-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.4^20200805gitda47825-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.4^20200805gitda47825-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 28 2020 Miro Hrončok - 0.4^20200805gitda47825-1 - Initial package adapted from SUSE (by Stefan Brüns ) ## END: Generated by rpmautospec