1
1
Summary: Cross-platform, Python-agnostic binary package manager
2
2
Name: conda
3
3
Version: 24.3.0
4
- Release: 3 %{?dist }
4
+ Release: 4 %{?dist }
5
5
License: BSD-3-Clause AND Apache-2.0
6
6
# The conda code is BSD-3-Clause
7
7
# adapters/ftp.py is Apache-2.0
@@ -44,7 +44,6 @@ BuildRequires: python3-setuptools
44
44
BuildRequires: python3-setuptools_scm
45
45
BuildRequires: python3-trove-classifiers
46
46
BuildRequires: sed
47
-
48
47
Requires: python%{python3_pkgversion }-conda = %{version }-%{release }
49
48
50
49
%?python_enable_dependency_generator
@@ -187,13 +186,14 @@ mkdir -p %{buildroot}%{_localstatedir}/cache/conda/pkgs/cache
187
186
188
187
# install does not create the directory on EL7
189
188
install -m 0644 -Dt %{buildroot }/etc/profile.d/ conda/shell/etc/profile.d/conda.{sh,csh}
189
+ install -m 0644 -Dt %{buildroot }/etc/profile.d/ conda/shell/conda.xsh
190
190
sed -r -i -e '1i [ -z "$CONDA_EXE" ] && CONDA_EXE= %{_bindir }/conda' \
191
191
-e '/PATH= .*condabin/s|PATH= |[ -d $(dirname "$CONDA_EXE")/condabin ] \&\& PATH= |' %{buildroot }/etc/profile.d/conda.sh
192
192
sed -r -i -e '1i set _CONDA_EXE= %{_bindir }/conda\nset _CONDA_ROOT= ' \
193
193
-e 's/CONDA_PFX= .*/CONDA_PFX= /' %{buildroot }/etc/profile.d/conda.csh
194
- install -m 0644 -Dt %{buildroot }%{ _datadir }/ fish/vendor_conf .d/ conda/shell/etc/fish/conf.d/conda.fish
194
+ install -m 0644 -Dt %{buildroot }/etc/ fish/conf .d/ conda/shell/etc/fish/conf.d/conda.fish
195
195
sed -r -i -e '1i set -gx CONDA_EXE "/usr/bin/conda"\nset _CONDA_ROOT "/usr"\nset _CONDA_EXE "/usr/bin/conda"\nset -gx CONDA_PYTHON_EXE "/usr/bin/python3"' \
196
- %{buildroot }%{ _datadir }/ fish/vendor_conf .d/conda.fish
196
+ %{buildroot }/etc/ fish/conf .d/conda.fish
197
197
198
198
# Install bash completion script
199
199
install -m 0644 -Dt %{buildroot }%{bash_completionsdir }/ %SOURCE1
@@ -384,11 +384,11 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info
384
384
%{_bindir }/conda
385
385
%{_bindir }/conda-env
386
386
%{bash_completionsdir }/conda
387
- # TODO - better ownership for fish/vendor_conf.d
388
- %dir %{_datadir }/fish/vendor_conf.d
389
- %{_datadir }/fish/vendor_conf.d/conda.fish
387
+ %dir /etc/fish/conf.d
388
+ /etc/fish/conf.d/conda.fish
390
389
/etc/profile.d/conda.sh
391
390
/etc/profile.d/conda.csh
391
+ /etc/profile.d/conda.xsh
392
392
393
393
%files tests
394
394
%{_datadir }/conda/tests/
@@ -402,6 +402,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} conda info
402
402
%{_datadir }/conda/condarc.d/
403
403
404
404
%changelog
405
+ *
Thu Aug 07 2025 Riken Maharjan <[email protected] > -
24.3.0-4
406
+ - Add missing conda.xsh file to /etc/profile.d
407
+ - also move conda.fish to /etc/fish/conf.d/
408
+
405
409
*
Thu May 01 2025 Riken Maharjan <[email protected] > -
24.3.0-3
406
410
- Skip some test cases that are failing in the current version of conda using Fedora (License: MIT)
407
411
0 commit comments