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:
commit
4523b68d2b
@ -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>
|
||||
|
||||
|
@ -28,12 +28,12 @@ Url: https://github.com/yyuu/pyenv
|
||||
Source0: https://github.com/pyenv/pyenv/archive/v%{version}.tar.gz
|
||||
Source1: %{name}-rpmlintrc
|
||||
Source2: %{name}.rst
|
||||
BuildRequires: bash-completion
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: zsh
|
||||
# BuildArch: noarch
|
||||
|
||||
%description
|
||||
pyenv lets the user switch between multiple versions of Python.
|
||||
@ -63,6 +63,7 @@ Zsh command line completion support for %{name}.
|
||||
%prep
|
||||
%setup -q
|
||||
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
|
||||
##
|
||||
@ -109,7 +110,7 @@ cp -R bin %{buildroot}%{pyenv_dir}
|
||||
cp -a pyenv.d %{buildroot}%{_sysconfdir}/
|
||||
|
||||
## 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 manpage
|
||||
@ -150,7 +151,7 @@ popd
|
||||
%{_mandir}/man1/python-build.1%{ext_man}
|
||||
|
||||
%files bash-completion
|
||||
%config %{_sysconfdir}/bash_completion.d/pyenv
|
||||
%{_datadir}/bash-completion/completions/pyenv
|
||||
|
||||
%files zsh-completion
|
||||
%config %{_sysconfdir}/zsh_completion.d/pyenv
|
||||
|
Loading…
Reference in New Issue
Block a user