refactor: rename package from mistralrs-server to mistralrs
All checks were successful
deploy-ui / build-and-deploy (push) Successful in 20s

Rename the RPM package from mistralrs-server-<flavour> to
mistralrs-<flavour> and the installed binary from mistralrs-server
to mistralrs, matching the upstream CLI binary name.

Adds Obsoletes/Provides for the old package name so dnf will cleanly
replace it on upgrade.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 18:53:32 +03:00
parent 3e4191a7d9
commit ef7e3a3183
5 changed files with 19 additions and 16 deletions

View File

@@ -6,7 +6,7 @@
%{!?mistralrs_version: %global mistralrs_version 0.7.0}
%{!?mistralrs_flavour: %global mistralrs_flavour cuda13}
Name: mistralrs-server-%{mistralrs_flavour}
Name: mistralrs-%{mistralrs_flavour}
Version: %{mistralrs_version}
Release: 1%{?dist}
Summary: Fast, flexible LLM inference server (mistral.rs, %{mistralrs_flavour} flavour)
@@ -29,7 +29,8 @@ ExclusiveArch: x86_64
%global __requires_exclude ^lib(cuda|cudart|cudnn|cublas|cublasLt|curand|nvrtc|nccl)
Requires: systemd
Provides: mistralrs-server = %{version}-%{release}
Obsoletes: mistralrs-server-%{mistralrs_flavour} < %{version}-%{release}
Provides: mistralrs-server-%{mistralrs_flavour} = %{version}-%{release}
%description
mistral.rs is a blazingly fast LLM inference engine written in Rust.
@@ -46,14 +47,14 @@ cp %{SOURCE2} .
%install
install -D -m 0755 mistralrs-%{mistralrs_flavour} \
%{buildroot}%{_bindir}/mistralrs-server
%{buildroot}%{_bindir}/mistralrs
install -D -m 0644 mistralrs@.service \
%{buildroot}%{_unitdir}/mistralrs@.service
install -D -m 0644 mistralrs@.conf.example \
%{buildroot}%{_sysconfdir}/mistralrs/default.conf.example
# Patch the unit to point at the binary
sed -i "s|@BINARY@|%{_bindir}/mistralrs-server|g" \
sed -i "s|@BINARY@|%{_bindir}/mistralrs|g" \
%{buildroot}%{_unitdir}/mistralrs@.service
sed -i "s|@FLAVOUR@|%{mistralrs_flavour}|g" \
%{buildroot}%{_unitdir}/mistralrs@.service
@@ -72,7 +73,7 @@ getent passwd mistralrs >/dev/null || useradd -r -g mistralrs -d /var/lib/mistra
%systemd_postun_with_restart mistralrs@.service
%files
%{_bindir}/mistralrs-server
%{_bindir}/mistralrs
%{_unitdir}/mistralrs@.service
%{_sysconfdir}/mistralrs/default.conf.example