From 8797a84111079153b2b9bda302e893018e73cd66 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 5 Jan 2025 21:56:24 +0300 Subject: [PATCH] import python-scikit-build-0.17.6-7.el10 --- .gitignore | 1 + .python-scikit-build.metadata | 1 + SPECS/python-scikit-build.spec | 132 +++++++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 .gitignore create mode 100644 .python-scikit-build.metadata create mode 100644 SPECS/python-scikit-build.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbbf944 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/scikit_build-0.17.6.tar.gz diff --git a/.python-scikit-build.metadata b/.python-scikit-build.metadata new file mode 100644 index 0000000..e57acc7 --- /dev/null +++ b/.python-scikit-build.metadata @@ -0,0 +1 @@ +1fda1a7b825d6054da9f3c5a4af9fc449e6dec39 SOURCES/scikit_build-0.17.6.tar.gz diff --git a/SPECS/python-scikit-build.spec b/SPECS/python-scikit-build.spec new file mode 100644 index 0000000..110728a --- /dev/null +++ b/SPECS/python-scikit-build.spec @@ -0,0 +1,132 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 7; + 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: python-scikit-build +Version: 0.17.6 +Release: %autorelease +Summary: Improved build system generator for Python C/C++/Fortran/Cython extensions + +# This project is mainly MIT but LICENSE also mentions some code +# that is BSD-2-Clause-Views licensed. +# All bundled(cmake()) files listed are Apache-2.0 licensed. +License: MIT AND BSD-2-Clause-Views AND Apache-2.0 +URL: https://github.com/scikit-build/scikit-build +Source: %{pypi_source scikit_build} + +BuildArch: noarch +BuildRequires: python3-devel + +# For tests: +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: gcc-gfortran +BuildRequires: git-core +BuildRequires: ninja-build + +%global _description %{expand: +Improved build system generator for CPython C/C++/Fortran/Cython extensions. +Better support is available for additional compilers, build systems, cross +compilation, and locating dependencies and determining their build requirements. +The scikit-build package is fundamentally just glue between the setuptools +Python module and CMake.} + +%description %_description + +%package -n python3-scikit-build +Summary: %{summary} +Requires: cmake +Requires: ninja-build + +# Files listed below are located in skbuild/resources/cmake. +# Since they contain "Copyright 2011 Kitware, Inc." in them we list them as bundled, +# their versions are unknown. +# There is no such copyright in the remaining files so we assume +# they are original part of the project. +Provides: bundled(cmake(FindCython)) +Provides: bundled(cmake(FindPythonExtensions)) +Provides: bundled(cmake(UseCython)) +Provides: bundled(cmake(UseF2PY)) +Provides: bundled(cmake(UsePythonExtensions)) + +%description -n python3-scikit-build %_description + + +%prep +%autosetup -p1 -n scikit_build-%{version} + + +%generate_buildrequires +%pyproject_buildrequires -x test + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files skbuild + + +%check +# Some tests have assumptions that don't work if the RPM build flags are set, +# so we clean them. +export CFLAGS=' ' +export CXXFLAGS=' ' +# isolated tests are disabled because they require internet +%pytest -v -m "not isolated and not deprecated and not nosetuptoolsscm" + + +%files -n python3-scikit-build -f %{pyproject_files} +%doc README.* + + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 0.17.6-7 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.17.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 0.17.6-6 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.17.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.17.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.17.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jun 15 2023 Python Maint - 0.17.6-2 +- Rebuilt for Python 3.12 + +* Mon Jun 05 2023 Packit - 0.17.6-1 +- 0.17.6 upstream release + +* Wed May 31 2023 Tomáš Hrnčiar - 0.17.1-5 +- Add -p1 option to autosetup so patch applies + +* Thu Apr 13 2023 Cristian Le - 0.17.1 +- Update to 0.17.1 +- Pypi archive name changed +- Switched to autospec + +* Fri Feb 17 2023 Tomáš Hrnčiar - 0.16.7-1 +- Update to 0.16.7 + +* Thu Feb 09 2023 Tomáš Hrnčiar - 0.16.6-1 +- Initial package + +## END: Generated by rpmautospec