summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-pyenv-win.spec150
-rw-r--r--sources1
3 files changed, 152 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..27bae16 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyenv-win-3.1.1.tar.gz
diff --git a/python-pyenv-win.spec b/python-pyenv-win.spec
new file mode 100644
index 0000000..afdf4d9
--- /dev/null
+++ b/python-pyenv-win.spec
@@ -0,0 +1,150 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyenv-win
+Version: 3.1.1
+Release: 1
+Summary: pyenv lets you easily switch between multiple versions of Python. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.
+License: MIT License
+URL: https://github.com/pyenv-win/pyenv-win.git
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/23/35/18680cc47b93ef8f02b04e63e1be969b60d2c193a7089d5d51d09d4cd920/pyenv-win-3.1.1.tar.gz
+BuildArch: noarch
+
+
+%description
+To keep in sync with [pyenv][1] linux/mac, pyenv-win now installs 64bit versions by default. To support compatibility with older versions of pyenv-win, we maintain a 32bit train (branch) as a separate release.
+Both releases can install 64bit and 32bit python versions; the difference is in version names, for example:
+* 64bit-train (master), i.e. pyenv version _2.64.x_
+```
+> pyenv install -l | findstr 3.8
+3.8.0-win32
+3.8.0
+3.8.1rc1-win32
+3.8.1rc1
+3.8.1-win32
+3.8.1
+3.8.2-win32
+3.8.2
+3.9.0-win32
+3.9.0
+```
+* 32bit-train, i.e. pyenv version _2.32.x_
+```
+>pyenv install -l | findstr 3.8
+3.8.0
+3.8.0-amd64
+3.8.1rc1
+3.8.1rc1-amd64
+3.8.1
+3.8.1-amd64
+3.8.2
+3.8.2-amd64
+
+%package -n python3-pyenv-win
+Summary: pyenv lets you easily switch between multiple versions of Python. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.
+Provides: python-pyenv-win
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyenv-win
+To keep in sync with [pyenv][1] linux/mac, pyenv-win now installs 64bit versions by default. To support compatibility with older versions of pyenv-win, we maintain a 32bit train (branch) as a separate release.
+Both releases can install 64bit and 32bit python versions; the difference is in version names, for example:
+* 64bit-train (master), i.e. pyenv version _2.64.x_
+```
+> pyenv install -l | findstr 3.8
+3.8.0-win32
+3.8.0
+3.8.1rc1-win32
+3.8.1rc1
+3.8.1-win32
+3.8.1
+3.8.2-win32
+3.8.2
+3.9.0-win32
+3.9.0
+```
+* 32bit-train, i.e. pyenv version _2.32.x_
+```
+>pyenv install -l | findstr 3.8
+3.8.0
+3.8.0-amd64
+3.8.1rc1
+3.8.1rc1-amd64
+3.8.1
+3.8.1-amd64
+3.8.2
+3.8.2-amd64
+
+%package help
+Summary: Development documents and examples for pyenv-win
+Provides: python3-pyenv-win-doc
+%description help
+To keep in sync with [pyenv][1] linux/mac, pyenv-win now installs 64bit versions by default. To support compatibility with older versions of pyenv-win, we maintain a 32bit train (branch) as a separate release.
+Both releases can install 64bit and 32bit python versions; the difference is in version names, for example:
+* 64bit-train (master), i.e. pyenv version _2.64.x_
+```
+> pyenv install -l | findstr 3.8
+3.8.0-win32
+3.8.0
+3.8.1rc1-win32
+3.8.1rc1
+3.8.1-win32
+3.8.1
+3.8.2-win32
+3.8.2
+3.9.0-win32
+3.9.0
+```
+* 32bit-train, i.e. pyenv version _2.32.x_
+```
+>pyenv install -l | findstr 3.8
+3.8.0
+3.8.0-amd64
+3.8.1rc1
+3.8.1rc1-amd64
+3.8.1
+3.8.1-amd64
+3.8.2
+3.8.2-amd64
+
+%prep
+%autosetup -n pyenv-win-3.1.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+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-pyenv-win -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 3.1.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..9d5e73c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6e15013936c89352f15b58e522f6d18d pyenv-win-3.1.1.tar.gz