# Generated by rust2rpm 25 # https://github.com/marirs/nparse/issues/4 %bcond_without check %global debug_package %{nil} %global crate nparse %global nparse_commit 4024e57a6dd46716631a092cd9864dd0cfe9e02e %global nparse_shortcommit %(c=%{nparse_commit}; echo ${c:0:7}) Name: rust-nparse Version: 0.0.9 Release: %autorelease Summary: Parser in rust for specific use-cases License: MIT # FIXME: https://github.com/marirs/nparse/issues/5 URL: https://crates.io/crates/nparse # Tests available only on Github %if %{with check} Source: https://github.com/marirs/%{crate}/archive/%{nparse_commit}/%{crate}-%{nparse_shortcommit}.tar.gz %else Source: %{crates_source} %endif BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Parser in rust for specific use-cases.} %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 %if %{with check} %autosetup -n %{crate}-%{nparse_commit} %else %autosetup -n %{crate}-%{version} -p1 %endif %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog