Files

39 lines
1.2 KiB
RPMSpec

Summary: pyenv
Name: pyenv
Version: 2.6.3
Release: 2%{?dist}
License: MIT
Group: Applications/System
BuildArch: noarch
Vendor: PSI
URL: https://github.com/pyenv/pyenv
Requires: gcc, make, patch, zlib-devel, bzip2, bzip2-devel, readline-devel, sqlite, sqlite-devel, openssl-devel, tk-devel, libffi-devel, xz-devel
%description
Provides pyenv
# do not mangle shebangs
%global __brp_mangle_shebangs %{nil}
%install
mkdir -p %{buildroot}/opt/pyenv
mkdir -p %{buildroot}/etc/profile.d/
git clone --depth 1 --branch v2.6.3 https://github.com/pyenv/pyenv %{buildroot}/opt/pyenv
git clone --depth 1 --branch v1.2.4 https://github.com/pyenv/pyenv-virtualenv.git %{buildroot}/opt/pyenv/plugins/pyenv-virtualenv
rm -rf %{buildroot}/opt/pyenv/.git
rm -rf %{buildroot}/opt/pyenv/.github
rm -rf %{buildroot}/opt/pyenv/test
rm -rf %{buildroot}/opt/pyenv/src
rm -rf %{buildroot}/opt/pyenv/plugins/pyenv-virtualenv/.git
# cp %{_topdir}/pyenv.sh %{buildroot}/etc/profile.d/pyenv.sh
mkdir -p %{buildroot}/usr/bin
ln -s /opt/pyenv/bin/pyenv %{buildroot}/usr/bin/pyenv
%files
# %defattr(-,root,root,0755)
/opt/pyenv
# /etc/profile.d/pyenv.sh
/usr/bin/pyenv