## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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: f2py-cmake Version: 0.3.1 Release: %autorelease Summary: F2Py helpers for CMake License: Apache-2.0 URL: https://github.com/scikit-build/f2py-cmake Source: %{pypi_source f2py_cmake} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-numpy-f2py # Testing dependences BuildRequires: cmake BuildRequires: gfortran Requires: cmake Requires: python3-devel Requires: python3-numpy-f2py %global _description %{expand: This provides helpers for using F2Py. Use: include(UseF2Py) } %description %_description CMake module files. %package -n python3-f2py-cmake Summary: %{summary} Requires: f2py-cmake = %{version}-%{release} %description -n python3-f2py-cmake %_description Python package. %prep %autosetup -n f2py_cmake-%{version} %generate_buildrequires %pyproject_buildrequires -g test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l f2py_cmake # Move the actual CMake modules to /usr/share/cmake mkdir -p %{buildroot}%{_datadir}/cmake/Modules mv %{buildroot}%{python3_sitelib}/f2py_cmake/cmake/*.cmake %{buildroot}%{_datadir}/cmake/Modules/ ln -rs %{buildroot}%{_datadir}/cmake/Modules/*.cmake %{buildroot}%{python3_sitelib}/f2py_cmake/cmake/ %check %pyproject_check_import %pytest %files %{_datadir}/cmake/Modules/*.cmake %license LICENSE %doc README.md %files -n python3-f2py-cmake -f %{pyproject_files} %{_bindir}/f2py-cmake %changelog ## START: Generated by rpmautospec * Wed Jul 15 2026 Fedora Release Engineering - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Wed Jul 08 2026 Cristian Le - 0.3.1-1 - Import rhbz#2493459 ## END: Generated by rpmautospec