1+ %global srcname envon
2+
3+ Name: python3-%{srcname }
4+ Version: 0.1.1
5+ Release: 1%{?dist }
6+ Summary: Emit the activation command for the nearest Python virtual environment
7+
8+ License: MIT
9+ URL: https://github.com/userfrom1995/%{srcname }
10+ Source0: https://github.com/userfrom1995/%{srcname }/archive/refs/tags/v%{version }.tar.gz#/%{srcname}-%{version}.tar.gz
11+
12+ BuildArch: noarch
13+ BuildRequires: python3-devel
14+ BuildRequires: python3-setuptools
15+ BuildRequires: python3-build
16+ BuildRequires: python3-hatchling
17+ BuildRequires: python3-installer
18+
19+ Requires: python3-virtualenv >= 20
20+
21+ %description
22+ envon is a cross-shell Python virtual environment activator that emits the correct
23+ activation command for your shell. It auto-detects the nearest or specified virtual
24+ environment and supports bash, zsh, sh, fish, powershell, pwsh, nushell, cmd, and
25+ csh/tcsh/cshell.
26+
27+ %prep
28+ %autosetup -n %{srcname }-%{version }
29+
30+ %build
31+ python3 -m build --wheel --no-isolation
32+
33+ %install
34+ python3 -m installer --destdir=%{buildroot } dist/* .whl
35+
36+ # Create directories for shell bootstrap files
37+ mkdir -p %{buildroot }%{_datadir }/%{srcname }
38+
39+ # Install bootstrap files
40+ cp -r src/%{srcname }/bootstrap_*.sh %{buildroot }%{_datadir }/%{srcname }/
41+ cp -r src/%{srcname }/bootstrap_*.fish %{buildroot }%{_datadir }/%{srcname }/
42+ cp -r src/%{srcname }/bootstrap_*.ps1 %{buildroot }%{_datadir }/%{srcname }/
43+ cp -r src/%{srcname }/bootstrap_*.csh %{buildroot }%{_datadir }/%{srcname }/
44+ cp -r src/%{srcname }/bootstrap_*.nu %{buildroot }%{_datadir }/%{srcname }/
45+
46+ %files
47+ %license LICENSE
48+ %doc README.md docs/
49+ %{python3_sitelib }/%{srcname }-%{version }.dist-info/
50+ %{python3_sitelib }/%{srcname }/
51+ %{_bindir }/%{srcname }
52+ %{_datadir }/%{srcname }/
53+
54+ %changelog
55+ *
Tue Nov 18 2025 User1995 <[email protected] > -
0.1.1-1 56+ - Initial package</content>
57+ <parameter name="filePath">\\wsl.localhost\Ubuntu\home\base\envon\python-envon.spec
0 commit comments