%global debug_package %{nil} # Generated by rust2rpm 28 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate regreet Name: rust-regreet Version: 0.3.0 Release: %autorelease Summary: Clean and customizable greeter for greetd License: GPL-3.0-or-later URL: https://github.com/rharish101/regreet Source: %{crates_source} Source: regreet-0.3.0-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: pango-devel BuildRequires: cairo-gobject-devel BuildRequires: gtk4-devel %global _description %{expand: Clean and customizable greeter for greetd.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: ( 0BSD OR MIT OR Apache-2.0 ) AND ( Apache-2.0 ) AND ( Apache-2.0 OR BSL-1.0 ) AND ( Apache-2.0 OR MIT ) AND ( Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT ) AND ( BSD-2-Clause OR Apache-2.0 OR MIT ) AND ( GPL-3.0-only ) AND ( GPL-3.0-or-later ) AND ( MIT ) AND ( MIT OR Apache-2.0 ) AND ( MIT OR Apache-2.0 OR LGPL-2.1-or-later ) AND ( MIT OR Zlib OR Apache-2.0 ) AND ( Unlicense OR MIT ) AND ( Zlib ) # LICENSE.dependencies contains a full license breakdown Requires: pango Requires: gtk4 Requires: libglvnd-gles Requires: accountsservice %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSES/GPL-3.0-or-later.txt %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/regreet %{_sysconfdir}/greetd/regreet.toml %{_prefix}/lib/tmpfiles.d/regreet.conf %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install install -p -Dm0644 regreet.sample.toml %{buildroot}%{_sysconfdir}/greetd/regreet.toml sed -i 's/greeter/greetd/g' systemd-tmpfiles.conf install -p -Dm0644 systemd-tmpfiles.conf %{buildroot}%{_prefix}/lib/tmpfiles.d/regreet.conf %if %{with check} %check %cargo_test %endif %changelog %autochangelog