%global python_package_src command_line_assistant %global binary_name c %global daemon_binary_name clad Name: command-line-assistant Version: 0.1.0 Release: 1.20241206120226666520.pr58.13.g25cf486%{?dist} Summary: A simple wrapper to interact with RAG License: Apache-2.0 URL: https://github.com/rhel-lightspeed/command-line-assistant Source0: command-line-assistant-0.1.0.tar.gz # noarch because there is no extension module for this package. BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-wheel BuildRequires: python3-pip BuildRequires: systemd-units # Needed by python3-dasbus Requires: python3-dasbus Requires: python3-requests Requires: systemd # Not needed after RHEL 10 as it is native in Python 3.11+ %if 0%{?rhel} && 0%{?rhel} < 10 BuildRequires: python3-tomli Requires: python3-tomli %endif %description A simple wrapper to interact with RAG %prep %autosetup -n command-line-assistant-0.1.0 %build %py3_build_wheel %install %py3_install_wheel %{python_package_src}-%{version}-py3-none-any.whl # Move the daemon to /usr/sbin instead of /usr/bin %{__install} -d %{buildroot}/%{_sbindir} %{__install} -m 0755 %{buildroot}/%{_bindir}/%{daemon_binary_name} %{buildroot}/%{_sbindir}/%{daemon_binary_name} %{__rm} %{buildroot}/%{_bindir}/%{daemon_binary_name} # System units %{__install} -D -m 0644 data/release/%{daemon_binary_name}.service %{buildroot}/%{_unitdir}/%{daemon_binary_name}.service %files %doc README.md %license LICENSE %{python3_sitelib}/%{python_package_src}/ %{python3_sitelib}/%{python_package_src}-%{version}.dist-info/ # Binaries %{_bindir}/%{binary_name} %{_sbindir}/%{daemon_binary_name} %{_unitdir}/%{daemon_binary_name}.service %preun if [ "$1" -eq 0 ]; then systemctl stop %{daemon_binary_name}.service || : systemctl disable %{daemon_binary_name}.service || : fi %changelog * Fri Dec 06 2024 Packit - 0.1.0-1.20241206120226666520.pr58.13.g25cf486 - Add authentication with identity certificate (#59) (Rodolfo Olivieri) - Initial setup for clad (#47) (Rodolfo Olivieri) - Refactor the build specfile (#56) (Rodolfo Olivieri) - [RSPEED-299] Initial setup for clad (#40) (Rodolfo Olivieri) - Apply suggestions from code review (Rodolfo Olivieri) - Refactor CLI to have separate commands (Rodolfo Olivieri) - Refactor config module (Rodolfo Olivieri) - Add Pull Request template to keep description orgainzed (#49) (Rodolfo Olivieri) - Update dependency pytest to v8.3.4 (#57) (renovate[bot]) - Add CODEOWNERS file (#52) (Rodolfo Olivieri) - Remove container testing from pipeline (#51) (Martin "kokesak" Litwora) - Add more test cases to cover the recent features (#34) (Rodolfo Olivieri) - Update dependency coverage to v7.6.8 (#48) (renovate[bot])