SHA256
1
0
forked from pool/pyenv

Accepting request 653690 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/653690
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pyenv?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2018-12-14 19:53:15 +00:00 committed by Git OBS Bridge
commit 4523b68d2b
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 8 16:25:48 UTC 2018 - Antonio Larrosa <alarrosa@suse.com>
- Install bash completion file to /usr/share/bash-completion/completions
and fix shebangs of several bash scripts.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 30 09:58:41 UTC 2018 - Jan Engelhardt <jengelh@inai.de> Tue Oct 30 09:58:41 UTC 2018 - Jan Engelhardt <jengelh@inai.de>

View File

@ -28,12 +28,12 @@ Url: https://github.com/yyuu/pyenv
Source0: https://github.com/pyenv/pyenv/archive/v%{version}.tar.gz Source0: https://github.com/pyenv/pyenv/archive/v%{version}.tar.gz
Source1: %{name}-rpmlintrc Source1: %{name}-rpmlintrc
Source2: %{name}.rst Source2: %{name}.rst
BuildRequires: bash-completion
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc BuildRequires: gcc
BuildRequires: make BuildRequires: make
BuildRequires: python3-Sphinx BuildRequires: python3-Sphinx
BuildRequires: zsh BuildRequires: zsh
# BuildArch: noarch
%description %description
pyenv lets the user switch between multiple versions of Python. pyenv lets the user switch between multiple versions of Python.
@ -63,6 +63,7 @@ Zsh command line completion support for %{name}.
%prep %prep
%setup -q %setup -q
install -D %{SOURCE2} docs/%{name}.rst install -D %{SOURCE2} docs/%{name}.rst
sed -i -e '1s,^#!%{_bindir}/env bash,#!/bin/bash,' libexec/* pyenv.d/exec/pip-rehash/* plugins/python-build/bin/*
%build %build
## ##
@ -109,7 +110,7 @@ cp -R bin %{buildroot}%{pyenv_dir}
cp -a pyenv.d %{buildroot}%{_sysconfdir}/ cp -a pyenv.d %{buildroot}%{_sysconfdir}/
## Install shell completions: ## Install shell completions:
install -D -m0644 completions/pyenv.bash %{buildroot}%{_sysconfdir}/bash_completion.d/pyenv install -D -m0644 completions/pyenv.bash %{buildroot}%{_datadir}/bash-completion/completions/pyenv
install -D -m0644 completions/pyenv.zsh %{buildroot}%{_sysconfdir}/zsh_completion.d/pyenv install -D -m0644 completions/pyenv.zsh %{buildroot}%{_sysconfdir}/zsh_completion.d/pyenv
## Install manpage ## Install manpage
@ -150,7 +151,7 @@ popd
%{_mandir}/man1/python-build.1%{ext_man} %{_mandir}/man1/python-build.1%{ext_man}
%files bash-completion %files bash-completion
%config %{_sysconfdir}/bash_completion.d/pyenv %{_datadir}/bash-completion/completions/pyenv
%files zsh-completion %files zsh-completion
%config %{_sysconfdir}/zsh_completion.d/pyenv %config %{_sysconfdir}/zsh_completion.d/pyenv