# Generated by rust2rpm %bcond_without check %global debug_package %{nil} # Binary is useless %global __cargo_is_bin() false %global crate open Name: rust-%{crate} Version: 1.2.2 Release: 1%{?dist} Summary: Open a path or URL using the program configured on the system License: MIT URL: https://crates.io/crates/open Source: %{crates_source} # Initial patched metadata # * No windows # * Exclude unneeded files, https://github.com/Byron/open-rs/pull/18 Patch0: open-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %global _description \ Open a path or URL using the program configured on the system. %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE.md %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 * Thu Mar 14 2019 Igor Gnatenko - 1.2.2-1 - Initial package