mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* 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:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "shadowenv.spec"
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh_tag("Shopify/shadowenv"));
|
||||
Reference in New Issue
Block a user