September 27-30 - Sailathon 24 in Prague

Yes. do all the export and other definitions in one or several RPM macros, and then reduce any rust/cargo .specs to something like

BuildRequires: cargo-rpm-macros
[...]

%define vendor_tarball vendor.tar.gz

%build
%cargo_obs_set_build_flags
%cargo_obs_build

%install
%cargo_obs_install

The Chum Qt5/KF5 packages use a similar approach, which I have copied for retroarch, where .spec files look like

https://build.sailfishos.org/package/view_file/home:nephros:devel:games:retroarch/bsnes-libretro/bsnes-libretro.spec?expand=1

by depending on

https://build.sailfishos.org/package/show/home:nephros:devel:games:retroarch/retroarch-rpm-macros

which has

1 Like