iced_demo/packaging/iced_demo.spec
2024-06-09 02:02:49 +02:00

53 lines
1,007 B
RPMSpec

# Generated by rust2rpm 26
%bcond_without check
# prevent library files from being installed
%global cargo_install_lib 0
Name: iced_demo
Version: 0.1.0
Release: %autorelease
Summary: A demo application using the Iced toolkit
SourceLicense: MIT
# FIXME: paste output of %%cargo_license_summary here
License: MIT
# LICENSE.dependencies contains a full license breakdown
URL: https://git.silversoft.se/Imbus/iced_demo
Source: %{url}/archive/%{version}.tar.gz
BuildRequires: cargo-rpm-macros >= 26
%global _description %{expand:
%{summary}.}
%description %{_description}
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%files
%license LICENSE.md
%license LICENSE.dependencies
%{_bindir}/iced_demo
%changelog
%autochangelog