%{!?_with_bootstrap: %global bootstrap 0} Name: conda Version: 4.6.14 Release: 2%{?dist} Summary: Cross-platform, Python-agnostic binary package manager License: BSD and ASL 2.0 and LGPLv2+ and MIT # The conda code is BSD # progressbar is LGPLv2+ # six is MIT/X11 # adapters/ftp.py is ASL 2.0 URL: http://conda.pydata.org/docs/ Source0: https://github.com/conda/conda/archive/%{version}/%{name}-%{version}.tar.gz # Source0: https://pypi.io/packages/source/c/%%{name}/%%{name}-%%{version}.tar.gz Patch0: conda_sys_prefix.patch Patch1: conda_gateways_disk_create.patch Patch2: setup.patch Patch3: conda-tests.patch Patch11: 0001-Fix-toolz-imports.patch Patch12: 0002-Adjust-ruamel.yaml-imports.patch Patch13: 0003-Drop-fs-path-encoding-manipulation-under-python2.patch Patch14: 0004-Do-not-try-to-run-usr-bin-python.patch Patch15: 0005-Fix-failing-tests-in-test_api.py.patch # Backport https://github.com/conda/conda/pull/10970 Patch16: conda-py3.10.patch BuildArch: noarch Requires: python%{python3_pkgversion}-conda = %{version}-%{release} # Removed upstream in favour of calling "conda activate" in version 4.4.0 Obsoletes: conda-activate < 4.4 %?python_enable_dependency_generator BuildRequires: /usr/bin/pathfix.py BuildRequires: sed %global _description \ Conda is a cross-platform, Python-agnostic binary package manager. It is the\ package manager used by Anaconda installations, but it may be used for other\ systems as well. Conda makes environments first-class citizens, making it easy\ to create independent environments even for C libraries. Conda is written\ entirely in Python. %description %_description %global _py3_reqs \ python%{python3_pkgversion}-crypto \ python%{python3_pkgversion}-distro >= 1.0.4 \ python%{python3_pkgversion}-pycosat >= 0.6.3 \ python%{python3_pkgversion}-requests \ python%{python3_pkgversion}-ruamel-yaml %global py3_reqs %(c="%_py3_reqs"; echo "$c" | xargs) %package -n python%{python3_pkgversion}-conda Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: %py3_reqs BuildRequires: python%{python3_pkgversion}-yaml # When this is present, vendored toolz should not be used %if 0%{?fedora} || 0%{?rhel} >= 8 # EPEL7 does not have new enough cytoolz BuildRequires: python%{python3_pkgversion}-cytoolz >= 0.8.2 %endif # For tests BuildRequires: python%{python3_pkgversion}-mock BuildRequires: python%{python3_pkgversion}-pytest-cov BuildRequires: python%{python3_pkgversion}-responses Requires: %py3_reqs Requires: python%{python3_pkgversion}-yaml %if 0%{?fedora} || 0%{?rhel} >= 8 # EPEL7 does not have new enough cytoolz Requires: python%{python3_pkgversion}-cytoolz >= 0.8.2 %endif Provides: bundled(python%{python3_pkgversion}-appdirs) = 1.2.0 Provides: bundled(python%{python3_pkgversion}-auxlib) Provides: bundled(python%{python3_pkgversion}-boltons) = 16.5.1 Provides: bundled(python%{python3_pkgversion}-six) = 1.10.0 Provides: bundled(python%{python3_pkgversion}-toolz) = 0.8.2 Provides: bundled(python%{python3_pkgversion}-urllib3) = 1.19.1 %{?python_provide:%python_provide python%{python3_pkgversion}-conda} %description -n python%{python3_pkgversion}-conda %_description %prep %autosetup -p1 sed -r -i 's/^(__version__ = ).*/\1"%{version}"/' conda/__init__.py # disable some stupid tests which fail with EXDEV sed -r -i 's/test_trash_outside_prefix/_disabled_\0/' tests/test_install.py sed -r -i 's/test_move_to_trash|test_move_path_to_trash_couldnt/_disabled_\0/' tests/gateways/disk/test_delete.py # Skip TestJson.test_list which wants to muck around with /usr. sed -r -i 's/\btest_list\b/_disabled_\0/' tests/test_cli.py # delete interpreter line, the user can always call the file # explicitly as python3 /usr/lib/python3.6/site-packages/conda/_vendor/appdirs.py # or so. sed -r -i '1 {/#![/]usr[/]bin[/]env/d}' conda/_vendor/appdirs.py # Replaced by cytools, byte compilation fails under python3.7 %if 0%{?fedora} || 0%{?rhel} >= 8 # EPEL7 does not have new enough cytoolz # We need to keep __init__.py which does the dispatch between vendored and non-vendored rm conda/_vendor/toolz/[a-zA-Z]* %endif # Use system versions rm -r conda/_vendor/distro.py find conda -name \*.py | xargs sed -i -e 's/^\( *\)from .*_vendor\.\(\(distro\).*\) import/\1from \2 import/' %build # build conda executable %define py_setup utils/setup-testing.py %py3_build %install # install conda executable %define py_setup utils/setup-testing.py %py3_install mkdir -p %{buildroot}%{_datadir}/conda/condarc.d cat >%{buildroot}%{_datadir}/conda/condarc.d/defaults.yaml < - 4.6.14-2 - Backport fix for python 3.10 support * Sun Dec 15 2019 Orion Poplawski - 4.6.14-1 - Update 4.6.14 - Make "conda shell.bash hook" work (bz#1737165) - Unbundle more libraries * Tue Apr 16 2019 Orion Poplawski - 4.6.13-1 - Update to 4.6.13 * Thu Apr 4 2019 Orion Poplawski - 4.6.11-1 - Update to 4.6.11 * Tue Apr 2 2019 Orion Poplawski - 4.6.9-2 - Fix conda profile scripts - Do not build for python2 on EPEL - Ignore test failures on EPEL7 * Sat Mar 30 2019 Orion Poplawski - 4.6.9-1 - Update to 4.6.9 * Wed Feb 13 2019 Zbigniew Jędrzejewski-Szmek - 4.6.5-1 - Update to latest upstream version (#1668145) * Thu Jan 31 2019 Fedora Release Engineering - 4.5.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Dec 31 2018 Orion Poplawski - 4.5.12-1 - Update to 4.5.12 * Mon Dec 31 2018 Orion Poplawski - 4.5.11-2 - EPEL7 compatability * Fri Sep 21 2018 Zbigniew Jędrzejewski-Szmek - 4.5.11-1 - Update to latest stable version (#1570217) - Disable python2 subpackage on F30+ * Fri Jul 13 2018 Zbigniew Jędrzejewski-Szmek - 4.4.11-4 - Pull in python[23]-cytoolz to replace bundled toolz * Thu Jul 12 2018 Fedora Release Engineering - 4.4.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 4.4.11-3 - Rebuilt for Python 3.7 * Wed Apr 18 2018 Orion Poplawski - 4.4.11-2 - Set _CONDA_ROOT in /etc/profile.d/conda.csh - Fix python2 requires - Require pycosat >= 0.6.3 * Sat Apr 14 2018 Zbigniew Jędrzejewski-Szmek - 4.4.11-1 - Update to latest upstream version in the 4.4.x branch (#1544046) * Wed Feb 7 2018 Zbigniew Jędrzejewski-Szmek - 4.4.9-1 - Update to v4.4.9 (#1542874) - conda-activate binary rpm is retired. The new way to activate the environment is to say 'conda activate'. See https://github.com/conda/conda/releases/tag/4.4.0 for more information. * Wed Feb 07 2018 Iryna Shcherbina - 4.3.24-5 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Wed Feb 07 2018 Fedora Release Engineering - 4.3.24-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek - 4.3.24-3 - Install just one version of the executables (python 2 or 3) * Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek - 4.3.24-2 - Add all licenses to the License tag - Add Provides: bundled(...) for all the "vendored" dependencies - Update descriptions and simplify the spec file a bit - Move condarc.d directory under /usr/share/conda * Thu Aug 3 2017 Zbigniew Jędrzejewski-Szmek - 4.3.24-1 - Update to latest version - Switch /usr/bin/conda to python3 * Thu Jul 21 2016 Orion Poplawski - 4.1.6-1 - Update to 4.1.6 * Thu Dec 31 2015 Orion Poplawski - 3.19.0-1 - Update to 3.19.0 * Thu Dec 31 2015 Orion Poplawski - 3.18.8-2 - Add python 3 version * Mon Dec 7 2015 Orion Poplawski - 3.18.8-1 - Update to 3.18.8 * Thu Sep 24 2015 Orion Poplawski - 3.17.0-6 - Do not create broken symlinks if activate/deactivate are not installed - Do not create /usr/conda-meta to prevent accidental installs into system * Thu Sep 24 2015 Orion Poplawski - 3.17.0-5 - Non-bootstrap build * Wed Sep 23 2015 Orion Poplawski - 3.17.0-4 - Add patch to support rootless mode - Require python-crypto - Create /usr/conda-meta, /usr/.condarc, /var/cache/conda * Tue Sep 22 2015 Orion Poplawski - 3.17.0-3 - Require python-requests, python-yaml * Tue Sep 22 2015 Orion Poplawski - 3.17.0-2 - Add patch to allow overriding pkgs_dirs in .condarc * Mon Sep 21 2015 Orion Poplawski - 3.17.0-1 - Initial package