# Generated by rust2rpm 26 %bcond_without check %global ver 0.1.0 %global commit 88c570cf8b88beae1cf4f3e2d412cc64ec49cd7c %global date 20240328.02 Name: cosmic-randr Version: %{ver}~%{date} Release: %autorelease Summary: Cosmic-randr command line interface SourceLicense: MPL-2.0 # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # ISC # MIT # MIT OR Apache-2.0 # MIT OR Zlib OR Apache-2.0 # MPL-2.0 # Unlicense OR MIT # Zlib License: 0BSD OR MIT OR Apache-2.0 AND Apache-2.0 AND Apache-2.0 OR MIT AND Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT AND ISC AND MIT AND MIT OR Apache-2.0 AND MIT OR Zlib OR Apache-2.0 AND MPL-2.0 AND Unlicense OR MIT AND Zlib # LICENSE.dependencies contains a full license breakdown URL: https://github.com/pop-os/cosmic-randr Source: cosmic-randr-%{ver}.tar.xz Source: cosmic-randr-%{ver}-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 25 BuildRequires: rustc BuildRequires: lld BuildRequires: cargo BuildRequires: wayland-devel BuildRequires: just %global _description %{expand: Cosmic-randr command line interface.} %description %{_description} %prep %autosetup -n cosmic-randr-%{ver} -p1 -a1 %cargo_prep -N cat .vendor/config.toml >> .cargo/config %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install just rootdir=%{buildroot} prefix=%{_prefix} install %if %{with check} %check %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies # %%license cargo-vendor.txt %doc README.md %{_bindir}/cosmic-randr %changelog %autochangelog