diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 4e7bc275f42f1a354a8d946cdd66ea27cc4cc503..377325e8f131e9c46a04d98938e1acedb278da5b 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -1,15 +1,18 @@ -%global srcname virtualenv -Name: python-%{srcname} -Version: 20.4.7 +%global _empty_manifest_terminate_build 0 +Name: python-virtualenv +Version: 20.17.1 Release: 1 Summary: A tool to create isolated Python environments License: MIT URL: http://pypi.python.org/pypi/virtualenv -Source0: https://files.pythonhosted.org/packages/7c/46/4d4c37b6d96eb06961f8b2f38f7df12bb1a4951ff1145ac5dead9977e674/virtualenv-20.4.7.tar.gz - +Source0: https://files.pythonhosted.org/packages/7b/19/65f13cff26c8cc11fdfcb0499cd8f13388dd7b35a79a376755f152b42d86/virtualenv-20.17.1.tar.gz BuildArch: noarch -BuildRequires: python3-appdirs python3-distlib python3-filelock python3-six -BuildRequires: python3-devel python3-setuptools_scm python3-setuptools + +Requires: python3-setuptools python3-appdirs python3-virtualenv-python26 +Requires: python3-distlib python3-filelock python3-six +Requires: python-pip-wheel python-setuptools-wheel python-wheel-wheel +Requires: python3-appdirs python3-distlib python3-filelock +Requires: python3-virtualenv = %{version}-%{release} %description Virtualenv is a tool to create isolated Python environments. Since Python @@ -21,53 +24,58 @@ not relocatable, etc.). Tools in general as such still may prefer using virtualenv for its ease of upgrading (via pip), unified handling of different Python versions and some more advanced features. -%package -n python3-virtualenv -Summary: Tool to create isolated Python environments -Requires: python3-setuptools python3-appdirs python3-virtualenv-python26 -Requires: python3-distlib python3-filelock python3-six -%{?python_provide:%python_provide python3-virtualenv} -Provides: virtualenv = %{version}-%{release} -Requires: python-pip-wheel python-setuptools-wheel python-wheel-wheel -Requires: python3-appdirs python3-distlib python3-filelock - +%package -n python3-virtualenv +Summary: A tool to create isolated Python environments +Provides: python-virtualenv = %{version}-%{release} +BuildRequires: python3-appdirs python3-distlib python3-filelock python3-six +BuildRequires: python3-devel python3-setuptools_scm python3-setuptools %description -n python3-virtualenv virtualenv support in python3. -%package -n python3-virtualenv-python26 -Summary: Extra bits of virtuelenv only needed with Python 2.6 -Requires: python3-virtualenv = %{version}-%{release} -%{?python_provide:%python_provide python3-virtualenv-python26} -Provides: bundled(python2dist(argparse)) = 1.4.0 -Provides: bundled(python2dist(pip)) = 19.1.1 -Provides: bundled(python2dist(pip)) = 21.1.2 -Provides: bundled(python2dist(setuptools)) = 43.0.0 -Provides: bundled(python2dist(setuptools)) = 44.1.1 -Provides: bundled(python2dist(setuptools)) = 50.3.2 -Provides: bundled(python2dist(wheel)) = 0.33.6 -Provides: bundled(python2dist(wheel)) = 0.36.2 - -%description -n python3-virtualenv-python26 -Tools that support for python2.6 virtual environments with python3. - %prep -%autosetup -n virtualenv-%{version} -p1 +%autosetup -n virtualenv-%{version} %build %py3_build %install %py3_install - -%files -n python3-virtualenv -%license LICENSE -%doc docs/*rst PKG-INFO -%{python3_sitelib}/virtualenv* -%{_bindir}/virtualenv - -%files -n python3-virtualenv-python26 -%{python3_sitelib}/virtualenv/seed/wheels/embed/*.whl +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-virtualenv -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Tue Dec 06 2022 liqiuyu - 20.17.1-1 +- Update package to version 20.17.1 + * Thu Dec 09 2021 shixuantong - 20.4.7-1 - update version to 20.4.7 diff --git a/virtualenv-20.4.7.tar.gz b/virtualenv-20.17.1.tar.gz similarity index 63% rename from virtualenv-20.4.7.tar.gz rename to virtualenv-20.17.1.tar.gz index 35e644fa72fb39a4205594c4184136c5db8c5cd4..95ea686a2d6c4917616106096332ddc34c08f5b9 100644 Binary files a/virtualenv-20.4.7.tar.gz and b/virtualenv-20.17.1.tar.gz differ