# Generated by rust2rpm 10 %bcond_without check %global debug_package %{nil} # Binary is useless %global __cargo_is_bin() false %global crate open Name: rust-%{crate} Version: 1.3.2 Release: 2%{?dist} Summary: Open a path or URL using the program configured on the system # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/open Source: %{crates_source} # Initial patched metadata # * No windows Patch0: open-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Open a path or URL using the program configured on the system.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: /usr/bin/xdg-open %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 %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Thu Jan 30 2020 Fedora Release Engineering - 1.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Nov 23 2019 Josh Stone - 1.3.2-1 - Update to 1.3.2 * Sat Aug 03 13:59:09 CEST 2019 Igor Gnatenko - 1.3.1-1 - Update to 1.3.1 * Fri Jul 26 2019 Fedora Release Engineering - 1.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jun 22 16:50:38 CEST 2019 Igor Gnatenko - 1.2.2-2 - Regenerate * Thu Mar 14 2019 Igor Gnatenko - 1.2.2-1 - Initial package