## START: Set by rpmautospec ## (rpmautospec version 0.3.1) ## 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 # Tests are enabled %bcond_without tests %global _description %{expand: Python implementations of commonly used sensitivity analysis methods. Useful in systems modeling to calculate the effects of model inputs or exogenous factors on outputs of interest. Herman, J. and Usher, W. (2017) SALib: An open-source Python library for sensitivity analysis. Journal of Open Source Software, 2(9). Methods included: - Sobol Sensitivity Analysis (Sobol 2001, Saltelli 2002, Saltelli et al. 2010) - Method of Morris, including groups and optimal trajectories (Morris 1991, Campolongo et al. 2007) - Fourier Amplitude Sensitivity Test (FAST) (Cukier et al. 1973, Saltelli et al. 1999) - Delta Moment-Independent Measure (Borgonovo 2007, Plischke et al. 2013) - Derivative-based Global Sensitivity Measure (DGSM) (Sobol and Kucherenko 2009) - Fractional Factorial Sensitivity Analysis (Saltelli et al. 2008)} Name: python-SALib Version: 1.4.7 Release: %autorelease Summary: Sensitivity Analysis Library License: MIT URL: http://salib.github.io/SALib/ Source0: https://github.com/SALib/SALib/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch %description %_description %package -n python3-SALib Summary: %{summary} BuildRequires: python3-devel %if %{with tests} BuildRequires: %{py3_dist pytest} %endif # Not mentioned in setup.py, so won't be picked up by the generator Requires: %{py3_dist pandas} Requires: %{py3_dist numpy} >= 1.9.0 Requires: %{py3_dist scipy} Requires: %{py3_dist matplotlib} >= 1.4.3 %description -n python3-SALib %_description %prep %autosetup -n SALib-%{version} # python3, not python in tests sed -i 's/python {cli}/python3 {cli}/' tests/test_cli_sample.py sed -i 's/python {cli}/python3 {cli}/' tests/test_cli_analyze.py # Correct permission chmod -x LICENSE.md src/SALib/analyze/__init__.py src/SALib/sample/__init__.py # Remove /usr/bin/env python shebang find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' # Correct end of line encoding sed -i 's/\r$//' LICENSE.md sed -i 's/\r$//' src/SALib/analyze/rbd_fast.py %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_install %pyproject_save_files SALib %check %if %{with tests} export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib} %{pytest} %endif %files -n python3-SALib -f %{pyproject_files} %doc README.rst README-advanced.md CHANGELOG.md CITATIONS.rst AUTHORS.rst FAQ.MD %{_bindir}/salib %changelog * Fri Jan 20 2023 Fedora Release Engineering - 1.4.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jan 11 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.4.7-1 - feat: update to 1.4.7 (fixes rhbz#2099926) * Fri Jul 22 2022 Fedora Release Engineering - 1.4.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 15 2022 Python Maint - 1.4.5-3 - Rebuilt for Python 3.11 * Wed Feb 09 2022 Ankur Sinha (Ankur Sinha Gmail) - 1.4.5-2 - chore: bump for branch * Mon Feb 07 2022 Ankur Sinha (Ankur Sinha Gmail) - 1.4.5-1 - feat: update to 1.4.5 * Mon Feb 07 2022 Ankur Sinha (Ankur Sinha Gmail) - 1.4.4-5 - chore: use correct py3 macro * Mon Feb 07 2022 Ankur Sinha (Ankur Sinha Gmail) - 1.4.4-4 - feat: drop sphinx documentation * Fri Jan 21 2022 Fedora Release Engineering - 1.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Sep 03 2021 Ankur Sinha - 1.4.4-1 - update to 1.4.4 - Drop patch (merged upstream) * Fri Sep 03 2021 Ankur Sinha - 1.4.0.2-1 - Update to new release - Use pyproject macros * Fri Jul 23 2021 Fedora Release Engineering - 1.3.11-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.3.11-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.3.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.3.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Ankur Sinha - 1.3.11-3 - Explicitly BR setuptools * Tue May 26 2020 Miro Hrončok - 1.3.11-2 - Rebuilt for Python 3.9 * Wed Apr 22 2020 Ankur Sinha - 1.3.11-1 - Update to new release * Mon Mar 16 2020 Ankur Sinha - 1.3.8-2 - Add patch to fix for python 3.9 - https://bugzilla.redhat.com/show_bug.cgi?id=1794093 * Sun Feb 16 2020 Ankur Sinha - 1.3.8-1 - Update to latest release * Thu Jan 30 2020 Fedora Release Engineering - 1.3.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.3.7-3 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.3.7-2 - Rebuilt for Python 3.8 * Mon Aug 05 2019 Ankur Sinha - 1.3.7-1 - Update to new release * Tue Jan 29 2019 Ankur Sinha - 1.1.3-1 - Initial build