add: shadowenv (#8804) (#8806)

* add: shadowenv



* clean up



* clean up



---------


(cherry picked from commit b78cf5e00b)

Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2026-01-01 02:06:36 -08:00
committed by GitHub
parent da2d777d23
commit 2a90ebf7eb
3 changed files with 46 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "shadowenv.spec"
}
}
+40
View File
@@ -0,0 +1,40 @@
Name: shadowenv
Version: 3.5.0
Release: 1%?dist
License: MIT
Summary: Reversible directory-local environment variable manipulations
URL: https://shopify.github.io/shadowenv/
Source0: https://github.com/Shopify/shadowenv/archive/refs/tags/%version.tar.gz
BuildRequires: cargo cargo-rpm-macros mold
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%summary.
%prep
%autosetup
%cargo_prep_online
%build
%cargo_build
%install
mkdir -p %{buildroot}%{_mandir}/man1/
mkdir -p %{buildroot}%{_mandir}/man5/
install -Dm755 target/rpm/shadowenv %{buildroot}%{_bindir}/shadowenv
install -Dm644 man/man1/shadowenv.1 %{buildroot}%{_mandir}/man1/
install -Dm644 man/man5/shadowlisp.5 %{buildroot}%{_mandir}/man5/
%{cargo_license_online -a} > LICENSE.dependencies
%files
%doc README.md CONTRIBUTING.md
%license LICENSE
%license LICENSE.dependencies
%{_bindir}/shadowenv
%{_mandir}/man1/shadowenv.*.*
%{_mandir}/man5/shadowlisp.*.*
%changelog
* Thu Jan 01 2026 Owen Zimmerman <owen@fyralabs.com>
- Initial commit
+1
View File
@@ -0,0 +1 @@
rpm.version(gh_tag("Shopify/shadowenv"));