Name: goose-proxy Version: 0.1.0 Release: 1.20260407180628939123.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 BuildRequires: python3-setuptools BuildRequires: python3-wheel BuildRequires: python3-pip # 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 %build %py3_build_wheel # Build the manpages sphinx-build -b man docs/man docs/build/man %install %py3_install_wheel goose_proxy-%{version}-py3-none-any.whl # Install the manpages for goose-proxy and goose-proxy-config %{__install} -D -m 0644 docs/build/man/%{name}-config.5 %{buildroot}%{_mandir}/man5/%{name}-config.5 %{__install} -D -m 0644 docs/build/man/%{name}.7 %{buildroot}%{_mandir}/man7/%{name}.7 # Config file %{__install} -d -m 0700 %{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 %license LICENSE # Python sources %{python3_sitelib}/goose_proxy/ %{python3_sitelib}/goose_proxy-%{version}.dist-info/ # 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