# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate docmatic Name: rust-%{crate} Version: 0.1.2 Release: 1%{?dist} Summary: Test Rust examples in your documentation # https://github.com/assert-rs/docmatic/issues/6 License: MIT URL: https://crates.io/crates/docmatic Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(which/default) >= 2.0.0 with crate(which/default) < 3.0.0) %if %{with check} BuildRequires: /usr/bin/rustdoc %endif %global _description \ Test Rust examples in your documentation. %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: /usr/bin/rustdoc %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE-MIT LICENSE-APACHE %doc README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sat Apr 27 09:21:50 CEST 2019 Igor Gnatenko - 0.1.2-1 - Initial package