diff --git a/.gitignore b/.gitignore index ccc537a..3992ec1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /cargo_metadata-0.7.3.crate /cargo_metadata-0.7.4.crate +/cargo_metadata-0.8.1.crate diff --git a/rust-cargo_metadata.spec b/rust-cargo_metadata.spec index 4cbade8..e6cac8d 100644 --- a/rust-cargo_metadata.spec +++ b/rust-cargo_metadata.spec @@ -1,36 +1,28 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate cargo_metadata Name: rust-%{crate} -Version: 0.7.4 -Release: 2%{?dist} +Version: 0.8.1 +Release: 1%{?dist} Summary: Structured access to the output of `cargo metadata` +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/cargo_metadata Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(error-chain) >= 0.12.0 with crate(error-chain) < 0.13.0) -BuildRequires: (crate(error-chain/backtrace) >= 0.12.0 with crate(error-chain/backtrace) < 0.13.0) -BuildRequires: (crate(semver/default) >= 0.9.0 with crate(semver/default) < 0.10.0) -BuildRequires: (crate(semver/serde) >= 0.9.0 with crate(semver/serde) < 0.10.0) -BuildRequires: (crate(serde/default) >= 1.0.79 with crate(serde/default) < 2.0.0) -BuildRequires: (crate(serde_derive/default) >= 1.0.79 with crate(serde_derive/default) < 2.0.0) -BuildRequires: (crate(serde_json/default) >= 1.0.1 with crate(serde_json/default) < 2.0.0) -%if %{with check} -BuildRequires: (crate(clap/default) >= 2.26.0 with crate(clap/default) < 3.0.0) -BuildRequires: (crate(docopt/default) >= 1.0.2 with crate(docopt/default) < 2.0.0) -BuildRequires: (crate(structopt/default) >= 0.2.10 with crate(structopt/default) < 0.3.0) -%endif -%global _description \ -Structured access to the output of `cargo metadata`. +%global _description %{expand: +Structured access to the output of `cargo metadata`.} %description %{_description} @@ -60,22 +52,13 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml -%package -n %{name}+backtrace-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+backtrace-devel %{_description} - -This package contains library source intended for building other packages -which use "backtrace" feature of "%{crate}" crate. - -%files -n %{name}+backtrace-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 @@ -88,6 +71,9 @@ which use "backtrace" feature of "%{crate}" crate. %endif %changelog +* Wed Jul 31 20:53:08 CEST 2019 Robert-André Mauchin - 0.8.1-1 +- Release 0.8.1 + * Fri Jul 26 2019 Fedora Release Engineering - 0.7.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 8015614..994cd6b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cargo_metadata-0.7.4.crate) = 9219add3d077e1271beb5603feaa0819d032ef9a55f057ac8625b19023d38fb1dd6c8b012253d0c863ca33e797c351feef2476febc65f49dbd98bb9e4974b246 +SHA512 (cargo_metadata-0.8.1.crate) = fd0ff1c3d9d7f8308a6377dc9719655dd491daeb85603c86ce5cd54f9eb095009a1774d418a58931d3f693e71042fcc96ed34d09201c824bcb7cabe5f1c845f3