1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 06:46:39 +01:00

Included ramalama.conf in wheel

Currently other data files such as shortnames.conf, man pages, and shell
completions are included in the Python wheel.  Including ramalama.conf
as well means we can avoid several calls to make in the RPM spec file,
instead relying on the wheel mechanisms to put these files in place.  As
long as `make docs` is run before the wheel generation, all the
necessary files are included.

Signed-off-by: Carl George <carlwgeorge@gmail.com>
This commit is contained in:
Carl George
2025-07-17 01:20:28 -05:00
parent 42ac787686
commit 1d8a2e5b6c
2 changed files with 2 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ log_cli_date_format = "%Y-%m-%d %H:%M:%S"
include = ["ramalama", "ramalama.*"]
[tool.setuptools.data-files]
"share/ramalama" = ["shortnames/shortnames.conf"]
"share/ramalama" = ["shortnames/shortnames.conf", "docs/ramalama.conf"]
"share/man/man1" = ["docs/*.1"]
"share/man/man5" = ["docs/*.5"]
"share/man/man7" = ["docs/*.7"]

View File

@@ -56,14 +56,12 @@ will run the AI Models within a container based on the OCI image.
%forgeautosetup -p1
%build
make docs
%pyproject_wheel
%{__make} docs
%install
%pyproject_install
%pyproject_save_files -l %{pypi_name}
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install-docs install-shortnames
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install-completions
%check
%pytest -v test/unit