# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate r-shquote Name: rust-r-shquote Version: 0.1.1 Release: %autorelease Summary: POSIX Shell Compatible Argument Parser License: Apache-2.0 OR LGPL-2.1-or-later URL: https://crates.io/crates/r-shquote Source: %{crates_source} # * Missing mandatory license text for Apache-2.0, referenced in AUTHORS. Source10: https://www.apache.org/licenses/LICENSE-2.0.txt # * Missing license text for LGPL-2.1-or-later, referenced in AUTHORS. Source11: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: POSIX Shell Compatible Argument Parser.} %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}/AUTHORS %license %{crate_instdir}/LICENSE-2.0.txt %license %{crate_instdir}/lgpl-2.1.txt %doc %{crate_instdir}/AUTHORS %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 cp -p '%{SOURCE10}' '%{SOURCE11}' . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog