Name: goose-proxy Version: 0.1.0 Release: 1.20260407173039275089.pr23%{?dist} Summary: A proxy API for RHEL Lightspeed License: Apache-2.0 URL: https://github.com/rhel-lightspeed/goose-proxy Source: goose-proxy-0.1.0.tar.gz BuildArch: noarch BuildRequires: tomcli BuildRequires: python3-devel # Test dependencies BuildRequires: python3-pytest BuildRequires: python3-pytest-asyncio # Docs dependencies BuildRequires: python3-sphinx %global _description %{expand: A small python api to proxy requests for Goose.} %description %_description %prep %autosetup -p1 -n goose-proxy-0.1.0 # Remove options from pytest as some of them are not available in Fedora at all tomcli set pyproject.toml del tool.pytest.ini_options.addopts %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel # Build the manpages sphinx-build -b man docs/man docs/build/man %install %pyproject_install %pyproject_save_files -l goose_proxy # Install the manpages for goose-proxy and goose-proxy-config %{__install} -D -m 644 docs/build/man/%{name}-config.5 %{buildroot}%{_mandir}/man5/%{name}-config.5 %{__install} -D -m 644 docs/build/man/%{name}.7 %{buildroot}%{_mandir}/man7/%{name}.7 # Config file %{__install} -d -m 0755 %{buildroot}/%{_sysconfdir}/xdg/%{name} %{__install} -D -m 0600 data/release/xdg/config.toml %{buildroot}/%{_sysconfdir}/xdg/%{name}/config.toml %check %pytest %files -f %{pyproject_files} %{_bindir}/goose-proxy %doc README.md # Manpages %{_mandir}/man5/%{name}-config.5* %{_mandir}/man7/%{name}.7* # Needed directories %dir %attr(0700, root, root) %{_sysconfdir}/xdg/%{name} # Config file %config(noreplace) %attr(0600, root, root) %{_sysconfdir}/xdg/%{name}/config.toml %changelog %autochangelog