# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate freedesktop_entry_parser Name: rust-freedesktop_entry_parser Version: 1.3.0 Release: %autorelease Summary: Library for parsing FreeDesktop entry files License: MPL-2.0 URL: https://crates.io/crates/freedesktop_entry_parser Source: %{crates_source} # * Missing test data Source2: https://git.sr.ht/~zethra/freedesktop_entry_parser/blob/main/test_data/firefox.desktop # * Missing test data Source3: https://git.sr.ht/~zethra/freedesktop_entry_parser/blob/main/test_data/gnome-index.theme # * Missing test data Source4: https://git.sr.ht/~zethra/freedesktop_entry_parser/blob/main/test_data/sshd.service # * Missing test data Source5: https://git.sr.ht/~zethra/freedesktop_entry_parser/blob/main/test_data/systemd-example.txt BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A library for parsing FreeDesktop entry files.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep mkdir -p test_data cp -p %SOURCE2 %SOURCE3 %SOURCE4 %SOURCE5 test_data/ %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog