Skip to content

Commit d6eace9

Browse files
authored
Merge pull request #127 from DrDaveD/isolate-htgettoken
Isolate htgettoken from the environment, update to 2.2-2
2 parents cd0551c + a519f4f commit d6eace9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

htgettoken.spec

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Get OIDC bearer tokens by interacting with Hashicorp vault
22
Name: htgettoken
33
Version: 2.2
4-
Release: 1%{?dist}
4+
Release: 2%{?dist}
55

66
License: BSD-3-Clause
77
URL: https://github.com/fermitools/htgettoken
@@ -54,6 +54,9 @@ htgettoken gets OIDC bearer tokens by interacting with Hashicorp vault
5454
%install
5555
# install the Python project
5656
%py3_install_wheel %{name}-%{version}-*.whl
57+
# add -I to the shebang on the main program to ignore PYTHONPATH
58+
%define py3_shebang_flags I
59+
%py3_shebang_fix %{buildroot}%{_bindir}/%{name}
5760
# link httokendecode to htdecodetoken
5861
(cd %{buildroot}%{_bindir}/; ln -s htdecodetoken httokendecode)
5962
# install man pages
@@ -71,6 +74,10 @@ rm -rf $RPM_BUILD_ROOT
7174

7275

7376
%changelog
77+
* Thu May 8 2025 Dave Dykstra <dwd@fnal.gov> 2.2-2
78+
- Add "-I" to the shebang on /usr/bin/htgettoken to ignore PYTHONPATH
79+
and user libraries.
80+
7481
* Fri Mar 21 2025 Dave Dykstra <dwd@fnal.gov> 2.2-1
7582
- Add BuildRequires python3-devel to generate correct Python metadata.
7683
- Remove explicit Requires for python dependencies, rely on Python metadata.

0 commit comments

Comments
 (0)