# Generated by rust2rpm 27 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 Name: scaleway-vmagent Version: 0.2.3 Release: %autorelease Summary: Scaleway vm agent # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown URL: https://www.scaleway.com Source: scaleway-vmagent.tgz Source: scaleway-vmagent-0.2.3-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: rustfmt BuildRequires: systemd-rpm-macros %global _description %{expand: Scaleway vm agent.} %description %{_description} %prep %autosetup -n scaleway-vmagent-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install %{__install} -Dm644 packaging/rpm/%{name}.preset %{buildroot}%{_presetdir}/50-%{name}.preset %{__install} -Dt %{buildroot}%{_unitdir} systemd/%{name}.service %{__install} -Dt %{buildroot}%{_unitdir} systemd/%{name}.service %if %{with check} %check %cargo_test %endif %files %license packaging/rpm/Licence %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/scaleway-vmagent %config %{_presetdir}/50-%{name}.preset %{_unitdir}/%{name}.service %changelog %autochangelog %{?systemd_requires} %post %systemd_post scaleway-vmagent.service %preun %systemd_preun scaleway-vmagent.service