automatic version update by autodist [release 20.19.0-1mamba;Sat Feb 11 2023]

This commit is contained in:
Automatic Build System 2024-01-05 16:50:44 +01:00
parent 8940474021
commit 1e4d36707a

View File

@ -1,5 +1,6 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-virtualenv
Version: 20.17.1
Version: 20.19.0
Release: 1mamba
Summary: Virtual Python Environment builder
Group: System/Libraries/Python
@ -15,7 +16,6 @@ BuildRequires: python3.7dist(distlib)
BuildRequires: python3.7dist(filelock)
BuildRequires: python3.7dist(importlib-metadata)
BuildRequires: python3.7dist(platformdirs)
BuildRequires: python3.7dist(setuptools)
## AUTOBUILDREQ-END
BuildRequires: help2man
BuildArch: noarch
@ -37,40 +37,35 @@ Obsoletes: python-virtualenv-py36 < 20.4.0
%prep
%setup -q -n virtualenv-%{version}
# Removed unsatisfyable requirement versions
sed -i "s|platformdirs.*|platformdirs|" setup.cfg
sed -i "s|backports.entry_points_selectable.*|backports.entry_points_selectable|" setup.cfg
#sed -i "s|platformdirs.*|platformdirs|" setup.cfg
#sed -i "s|backports.entry_points_selectable.*|backports.entry_points_selectable|" setup.cfg
%build
%{__python} setup.py build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--single-version-externally-managed \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
install -d %{buildroot}%{_mandir}/man1
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
%if "%{?with_pyver}" != "3"
mv %{buildroot}%{_bindir}/virtualenv{,-%{?pyappend}}
sed -i "s|%{_bindir}/virtualenv|%{_bindir}/virtualenv-%{?pyappend}|" %{name}.filelist
# Rename any conflicting file outside of python site packages tree
for f in %{_bindir}/virtualenv; do
mv %{buildroot}${f}{,-%{?pyappend}}
done
%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} -f %{name}.filelist
%files %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitearch}/virtualenv-%{version}-py*.egg-info
%{python_sitearch}/virtualenv-%{version}-py*.egg-info/*
%{_bindir}/virtualenv*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%changelog
* Sat Feb 11 2023 Automatic Build System <autodist@mambasoft.it> 20.19.0-1mamba
- automatic version update by autodist
* Tue Dec 06 2022 Automatic Build System <autodist@mambasoft.it> 20.17.1-1mamba
- automatic version update by autodist