Initial Commit
This commit is contained in:
+77
@@ -0,0 +1,77 @@
|
||||
# SPDX-FileCopyrightText: 2026 Christian Tosta
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
%global plugins ccache virtualenv pip-migrate
|
||||
%global _prefix @PACKAGE_PREFIX@
|
||||
|
||||
Name: @CPACK_PACKAGE_NAME@
|
||||
Version: @CPACK_PACKAGE_VERSION@
|
||||
Release: @CPACK_PACKAGE_RELEASE@%{?dist}
|
||||
Summary: Simple Python version management
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/pyenv/pyenv
|
||||
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: git
|
||||
|
||||
Requires: bash
|
||||
Requires: git
|
||||
Requires: gcc
|
||||
Requires: make
|
||||
Requires: openssl-devel
|
||||
Requires: bzip2-devel
|
||||
Requires: readline-devel
|
||||
Requires: sqlite-devel
|
||||
Requires: libffi-devel
|
||||
Requires: xz-devel
|
||||
Requires: tk-devel
|
||||
Requires: gdbm-devel
|
||||
Requires: ncurses-devel
|
||||
Requires: zlib-devel
|
||||
Requires: libuuid-devel
|
||||
|
||||
%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.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
set +x
|
||||
for plugin in %{plugins}; do
|
||||
echo -n "Cloning plugin [${plugin}]... "
|
||||
git clone -q https://github.com/pyenv/pyenv-${plugin} plugins/${plugin}
|
||||
echo "done."
|
||||
done
|
||||
set -x
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/%{name}/{versions,shims,hooks}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||
|
||||
pushd pyenv
|
||||
cp -r bin libexec plugins pyenv.d %{buildroot}%{_datadir}/%{name}/
|
||||
cp -r man %{buildroot}%{_datadir}
|
||||
popd
|
||||
|
||||
install -p -m 0644 pyenv.sh %{buildroot}%{_sysconfdir}/profile.d/pyenv.sh
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%license pyenv/LICENSE
|
||||
%doc pyenv/README.md pyenv/CHANGELOG.md
|
||||
|
||||
%{_sysconfdir}/profile.d/pyenv.sh
|
||||
%{_mandir}/man1/*.1*
|
||||
%{_datadir}/%{name}/
|
||||
|
||||
%changelog
|
||||
* Thu Jun 18 2026 Ekaaty Build Service <noreply@ekaaty.com> - @CPACK_PACKAGE_VERSION@-@CPACK_PACKAGE_RELEASE@
|
||||
- Initial RPM package release for enterprise multi-user environments.
|
||||
- Added pyenv.sh into /etc/profile.d/ for automated initialization.
|
||||
Reference in New Issue
Block a user