Name: goose-proxy Version: 0.1.0 Release: 1.20260407135500537077.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 # 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 %generate_buildrequires %pyproject_buildrequires cat pyproject.toml # 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 %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 # System units & tmpfiles.d config # Coming from https://github.com/rhel-lightspeed/goose-proxy/pull/19 ## %{__install} -D -m 0644 data/release/systemd/%{name}.service %{buildroot}/%{_unitdir}/%{name}.service ## %{__install} -D -m 0644 data/release/systemd/%{name}.tmpfiles.conf %{buildroot}/%{_tmpfilesdir}/%{name}.conf # 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 # System units ## %{_unitdir}/%{name}.service ## %{_tmpfilesdir}/%{name}.conf # Manpages %{_mandir}/man5/%{name}-config.5 %{_mandir}/man7/%{name}.7 # Needed directories %dir %attr(0700, root, root) %{_sysconfdir}/xdg/%{name} %dir %attr(0700, root, root) %{_sysconfdir}/systemd/system/%{name}.service.d # Config file %config(noreplace) %attr(0600, root, root) %{_sysconfdir}/xdg/%{name}/config.toml %changelog %autochangelog