## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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-pyscipopt Version: 5.5.0 Release: %autorelease Summary: Python interface and modeling environment for SCIP # The entire source is MIT, except that the following are WTFNMFPL: # - examples/tutorial/even.py # - examples/tutorial/logical.py License: MIT AND WTFNMFPL URL: https://github.com/scipopt/PySCIPOpt Source: %{url}/archive/v%{version}/PySCIPOpt-%{version}.tar.gz # Remove bogus execute permission and shebang line from sudoku example # https://github.com/scipopt/PySCIPOpt/pull/1008 Patch: %{url}/pull/1008.patch BuildSystem: pyproject BuildOption(install): -l pyscipopt # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval # Furthermore, dependency libscip is ExcludeArch: %%{ix86}. ExcludeArch: %{ix86} BuildRequires: gcc-c++ BuildRequires: libscip-devel BuildRequires: %{py3_dist pytest} %global common_description %{expand: This project provides an interface from Python to the SCIP Optimization Suite.} %description %{common_description} %package -n python3-pyscipopt Summary: %{summary} # This subpackage does not contain the WTFNMFPL-licensed examples. License: MIT %description -n python3-pyscipopt %{common_description} %package examples Summary: Examples for PySCIPOpt BuildArch: noarch %description examples %{summary}. %prep -a # https://docs.fedoraproject.org/en-US/packaging-guidelines/#_beware_of_rpath sed -r -i 's/^([[:blank:]]*)(.*-Wl,-rpath)/\1# \2/' setup.py %build -p export CFLAGS="${CFLAGS} -I/usr/include/scip" %check -a %pytest -v %files -n python3-pyscipopt -f %{pyproject_files} %doc CHANGELOG.md %doc CITATION.bib %doc README.md %files examples %license LICENSE %doc examples/* %changelog ## START: Generated by rpmautospec * Tue Aug 19 2025 Benjamin A. Beasley - 5.5.0-4 - Include WTFNMFPL-licensed examples * Fri Aug 15 2025 Python Maint - 5.5.0-3 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 5.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jun 12 2025 Benjamin A. Beasley - 5.5.0-1 - Initial package (close RHBZ#2369464) ## END: Generated by rpmautospec