forked from pool/pyenv
- Remove *rpmlintrc, it is not necessary anymore.
- Remove our own manpage, it is now included in the tarball. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/pyenv?expand=0&rev=23
This commit is contained in:
parent
5bf54850bc
commit
ac11ab4bf5
@ -1,4 +0,0 @@
|
||||
# interpreter is correct, that's the nature of this package
|
||||
# so filtering this "error" message
|
||||
addFilter("wrong-script-interpreter .* /usr/bin/env")
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 22 17:27:02 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Remove *rpmlintrc, it is not necessary anymore.
|
||||
- Remove our own manpage, it is now included in the tarball.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 22 11:39:59 UTC 2021 - Alexander Graul <alexander.graul@suse.com>
|
||||
|
||||
|
52
pyenv.rst
52
pyenv.rst
@ -1,52 +0,0 @@
|
||||
:orphan:
|
||||
|
||||
.. pyenv documentation master file
|
||||
|
||||
.. _rbenv: https://github.com/rbenv/rbenv
|
||||
.. _ruby-build: https://github.com/rbenv/ruby-build
|
||||
.. _pyenv: https://github.com/pyenv/pyenv
|
||||
|
||||
|
||||
pyenv Manual Page Version 1.1.3
|
||||
===============================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
.. _invocation:
|
||||
|
||||
.. sourcecode:: bash
|
||||
|
||||
$ pyenv <command> [<args>]
|
||||
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
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.
|
||||
|
||||
This project was forked from `rbenv`_ and `ruby-build`_, and modified
|
||||
for Python.
|
||||
|
||||
|
||||
Command Reference
|
||||
-----------------
|
||||
|
||||
See the file :file:`COMMANDS.md` in the documentation directory. For
|
||||
SUSE related systems, refer to ``/usr/share/doc/packages/pyenv/COMMANDS.md``.
|
||||
|
||||
|
||||
Development
|
||||
-----------
|
||||
|
||||
The pyenv source code is hosted on GitHub, see `pyenv`_.
|
||||
It's clean, modular, and easy to understand, even if you're not a shell hacker.
|
||||
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
* Yuu Yamashita
|
||||
* Manpage from Thomas Schraitle, https://github.com/tomschr
|
30
pyenv.spec
30
pyenv.spec
@ -26,8 +26,6 @@ License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/pyenv/pyenv
|
||||
Source0: https://github.com/pyenv/pyenv/archive/refs/tags/v%{version}.tar.gz
|
||||
Source1: %{name}-rpmlintrc
|
||||
Source2: %{name}.rst
|
||||
BuildRequires: bash-completion
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: fish
|
||||
@ -73,7 +71,6 @@ 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
|
||||
@ -83,31 +80,6 @@ pushd src
|
||||
make %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
##
|
||||
cat << EOF > docs/conf.py
|
||||
# The master toctree document.
|
||||
master_doc = '%{name}'
|
||||
|
||||
project = '%{name}'
|
||||
copyright = '2017, Yuu Yamashita'
|
||||
author = 'Yuu Yamashita'
|
||||
# The short X.Y version.
|
||||
version = '%{version}'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = version
|
||||
|
||||
# Usually you set "language" from the command line for these cases.
|
||||
language = 'en'
|
||||
|
||||
man_pages = [
|
||||
(master_doc, 'pyenv', 'Simple Python Version Management',
|
||||
[author], 1)
|
||||
]
|
||||
man_show_urls=True
|
||||
EOF
|
||||
|
||||
sphinx-build -b man -v docs man/
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{pyenv_dir} \
|
||||
%{buildroot}%{pyenv_dir}/plugins \
|
||||
@ -126,7 +98,7 @@ install -D -m0644 completions/pyenv.fish %{buildroot}%{_datadir}/fish/vendor_com
|
||||
install -D -m0644 completions/pyenv.zsh %{buildroot}%{_sysconfdir}/zsh_completion.d/pyenv
|
||||
|
||||
## Install manpage
|
||||
install -D -m0644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
||||
install -D -m0644 man/man1/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
||||
pushd %{buildroot}%{_mandir}/man1/
|
||||
ln -s %{name}.1 python-build.1
|
||||
popd
|
||||
|
Loading…
Reference in New Issue
Block a user