# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/vanilla-os/apx %global goipath github.com/vanilla-os/apx Version: 2.0.0 %gometa -f %global common_description %{expand: Apx is the Vanilla OS package manager. It’s meant to be simple to use, but also powerful with support to installing packages from multiple sources without altering the root filesystem.} %global golicenses COPYING.md %global godocs README.md Name: apx Release: 3 Summary: Apx is the Vanilla OS package manager. It’s meant to be simple to use, but also powerful with support to installing packages from multiple sources without altering the root filesystem License: GPL-3.0-only URL: %{gourl} Source0: https://github.com/Vanilla-OS/apx/archive/refs/tags/v%{version}.tar.gz Requires: distrobox >= 1.5.0.2 %description %{common_description} %prep %goprep -k %autopatch -p1 %generate_buildrequires # Uncomment and remove `-k` above to disable vendoring #%go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/apx %{goipath} sed -i 's|/usr/share/apx/distrobox|%{_bindir}/distrobox|g' config/apx.json %install install -D -m 0755 -vp %{gobuilddir}/bin/apx %{buildroot}%{_bindir}/apx install -D -m 0644 -vp config/apx.json %{buildroot}%{_sysconfdir}/apx/apx.json %if %{with check} %check %gocheck %endif %files %license COPYING.md %doc README.md %{_bindir}/apx %config %{_sysconfdir}/apx/apx.json %changelog %autochangelog