SHA256
1
0
forked from pool/pyenv
pyenv/pyenv.spec
Matej Cepl b05b7ef585 Accepting request 1063456 from home:thomas-schraitle:branches:devel:languages:python
- Update to 2.3.12
  - Undefined name: do not forget self when accessing flavor by @cclauss in #2595
  - Fix wrong libpython being linked to in MacOS by @native-api in #2596
  - Fix :latest by @native-api in #2599
  - Fix pyenv which to support auto-resolved prefixes by @native-api in #2601
  - Add more recent build of nogil Python. by @colesbury in #2602
  - Fix overriding arguments for --enable-framework and --enable-universalsdk by @native-api in #2605
Full Changelog: https://github.com/pyenv/pyenv/compare/v2.3.11...v2.3.12
- Update to 2.3.11
  - Add CPython 3.12.0a4 by @Afront in #2590
  - Add a script to add the latest miniforge and mambaforge versions
    by @smcgivern in #2560
  - Add missing Miniforge/Mambaforge versions (4.10.2-0 - 22.9.0-3)
    by @smcgivern in #2591
  - Fix using dependencies from Ports in FreeBSD that are not searched with
    pkg-config by @native-api in #2593
  - Fix priority for user-supplied configure and make flags by
    (only set --enable-shared if user hasn't supplied --disable-shared)
    @native-api in #2592
  - Fix a compilation error in 3.8.10+ and 3.9.5+ when linking against Op…
    by @native-api in #2594
Full Changelog: https://github.com/pyenv/pyenv/compare/v2.3.10...v2.3.11
- Update to 2.3.10
  - Remove stray newline after python-build installation by @tklauser in #2566
  - Allow multiple versions for pyenv-install by @rockandska in #2568
  - --enable-shared by default by @anton-petrov in #2554
  - Fix non-bash output while detecting shell by @ianchen-tw in #2561
  - add pypy 7.3.11 release by @dand-oss in #2576
  - Mention how to build for maximum performance by @hauntsaninja in #2579
  - Add miniconda 22.11.1-1 by @aphedges in #2583
  - Add Fig as autocomplete suggestion by @brendanfalk in #2574
  - Fix using dependencies from Ports in BSD with no pkg-config
    by @native-api in #2586
Full Changelog: https://github.com/pyenv/pyenv/compare/v2.3.9...v2.3.10

OBS-URL: https://build.opensuse.org/request/show/1063456
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/pyenv?expand=0&rev=49
2023-02-07 00:58:46 +00:00

150 lines
4.3 KiB
RPMSpec

#
# spec file for package pyenv
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define pyenv_dir %{_libexecdir}/pyenv
#
Name: pyenv
Version: 2.3.12
Release: 0
Summary: Python Version Management
License: MIT
Group: Development/Languages/Python
URL: https://github.com/pyenv/pyenv
Source: https://github.com/pyenv/pyenv/archive/refs/tags/v%{version}.tar.gz#/pyenv-%{version}.tar.gz
#
BuildRequires: bash-completion
BuildRequires: fdupes
BuildRequires: fish
BuildRequires: gcc
BuildRequires: make
BuildRequires: zsh
%description
pyenv lets the user switch between multiple versions of Python.
This project was forked from rbenv and ruby-build, and modified for Python.
%package bash-completion
Summary: Bash completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (pyenv and bash-completion)
BuildArch: noarch
%description bash-completion
Bash command line completion support for %{name}.
%package fish-completion
Summary: Fish completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (pyenv and fish)
BuildArch: noarch
%description fish-completion
Fish command line completion support for %{name}.
%package zsh-completion
Summary: Zsh completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (pyenv and zsh)
BuildArch: noarch
%description zsh-completion
Zsh command line completion support for %{name}.
%prep
%autosetup -p1 -n %{name}-%{version}
sed -i -e '1s,^#!%{_bindir}/env bash,#!/bin/bash,' libexec/* pyenv.d/exec/pip-rehash/* plugins/python-build/bin/*
%build
##
pushd src
%configure
%make_build
popd
%install
mkdir -p %{buildroot}%{pyenv_dir} \
%{buildroot}%{pyenv_dir}/plugins \
%{buildroot}%{pyenv_dir}/shims/ \
%{buildroot}%{pyenv_dir}/share/python-build/ \
%{buildroot}%{_sysconfdir}/pyenv.d/ \
%{buildroot}%{_bindir}
cp -R libexec %{buildroot}%{pyenv_dir}
cp -R bin %{buildroot}%{pyenv_dir}
cp -a pyenv.d %{buildroot}%{_sysconfdir}/
## Install shell completions:
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.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/pyenv.fish
## Install manpage
install -D -m0644 man/man1/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
pushd %{buildroot}%{_mandir}/man1/
ln -s %{name}.1 python-build.1
popd
ln -s %{pyenv_dir}/bin/pyenv %{buildroot}%{_bindir}/pyenv
## python-build
pushd plugins/python-build
install -m755 bin/* %{buildroot}%{pyenv_dir}/libexec
cp -a share/python-build %{buildroot}%{pyenv_dir}/share/
popd
%fdupes %{buildroot}%{pyenv_dir}
%files
%doc CHANGELOG.md COMMANDS.md README.md
%license LICENSE
%exclude %{_sysconfdir}/pyenv.d/rehash/*/.gitignore
%config %{_sysconfdir}/pyenv.d/rehash/*.d/default.list
%config %{_sysconfdir}/pyenv.d/exec/pip-rehash.bash
%config %{_sysconfdir}/pyenv.d/rehash/*.bash
%config %{_sysconfdir}/pyenv.d/install/*.bash
%{pyenv_dir}
%dir %{_sysconfdir}/pyenv.d
%dir %{_sysconfdir}/pyenv.d/exec/
%dir %{_sysconfdir}/pyenv.d/rehash/
%dir %{_sysconfdir}/pyenv.d/rehash/*.d/
%dir %{_sysconfdir}/pyenv.d/install/
%{_sysconfdir}/pyenv.d/exec/pip-rehash
%{_bindir}/pyenv
#
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/python-build.1%{?ext_man}
%files bash-completion
%{_datadir}/bash-completion/completions/pyenv
%files fish-completion
%{_datadir}/fish/vendor_completions.d/pyenv.fish
%files zsh-completion
%config %{_sysconfdir}/zsh_completion.d/pyenv
%changelog