Files
micromamba/micromamba.spec
ebner 24420d9f0f
Build and Publish RPM / build-and-publish (push) Successful in 11s
test
2026-03-11 11:57:23 +01:00

47 lines
1.1 KiB
RPMSpec

%define debug_package %{nil}
%define install_dir /opt/micromamba
Name: micromamba
Version: 2.5.0
%define minor_ver 2
Release: 0%{?dist}
Summary: The micromamba package manager
License: MIT
URL: https://github.com/mamba-org/micromamba-releases
Source0: https://github.com/mamba-org/micromamba-releases/releases/download/%{version}-%{minor_ver}/micromamba-linux-64
BuildRequires: bash
Requires: bash
%description
Micromamba is a community-led minimal installer for Conda and Mamba,
pre-configured to use the conda-forge channel by default.
%prep
# No source to unpack, we use the shell installer directly
%build
# Nothing to compile
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{install_dir}/bin
# Copy binary into buildroot
cp %{SOURCE0} %{buildroot}%{install_dir}/bin/micromamba
chmod 755 %{buildroot}%{install_dir}/bin/micromamba
# Create symlink
mkdir -p %{buildroot}/usr/bin
ln -sf %{install_dir}/bin/micromamba %{buildroot}/usr/bin/micromamba
%files
%attr(755, root, root) %dir %{install_dir}
%attr(755, root, root) %{install_dir}/bin/micromamba
/usr/bin/micromamba