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