diff --git a/rust-pkg-config.spec b/rust-pkg-config.spec index 2159a5b..848d2d9 100644 --- a/rust-pkg-config.spec +++ b/rust-pkg-config.spec @@ -1,37 +1,42 @@ -# Generated by rust2rpm -# * Tests are run in infrastructure -%bcond_with check +# Generated by rust2rpm 9 +%bcond_without check %global debug_package %{nil} %global crate pkg-config Name: rust-%{crate} Version: 0.3.14 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Library to run the pkg-config system tool # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/pkg-config -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging +%if ! %{__cargo_skip_build} %if %{with check} BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0) +BuildRequires: /usr/bin/pkg-config +%endif %endif -%global _description \ -A library to run the pkg-config system tool at build time in order to be used\ -in Cargo build scripts. +%global _description %{expand: +Library to run the pkg-config system tool at build time in order to be used in +Cargo build scripts.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch -Requires: %{_bindir}/pkg-config +Requires: /usr/bin/pkg-config %description devel %{_description} @@ -56,7 +61,7 @@ which use "default" feature of "%{crate}" crate. %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -71,6 +76,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Sun Jun 09 11:21:52 CEST 2019 Igor Gnatenko - 0.3.14-5 +- Regenerate + * Sat Feb 02 2019 Fedora Release Engineering - 0.3.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild