From 33199fafde8dba5d8ef13647d40b51bbb17874ac Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 2 Nov 2018 17:39:02 +0100 Subject: [PATCH] Update to 0.6.7 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-cbindgen.spec | 71 ++++++++++++++++++++++++++++++---------------- sources | 2 +- 3 files changed, 48 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index 7c8042a..1f8320e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /cbindgen-0.6.3.crate /cbindgen-0.6.4.crate /cbindgen-0.6.6.crate +/cbindgen-0.6.7.crate diff --git a/rust-cbindgen.spec b/rust-cbindgen.spec index 8462e56..07e55b6 100644 --- a/rust-cbindgen.spec +++ b/rust-cbindgen.spec @@ -4,7 +4,7 @@ %global crate cbindgen Name: rust-%{crate} -Version: 0.6.6 +Version: 0.6.7 Release: 1%{?dist} Summary: Tool for generating C bindings to Rust code @@ -19,23 +19,30 @@ Patch1: cbindgen-test-release.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(clap) >= 2.0.0 with crate(clap) < 3.0.0) -BuildRequires: (crate(log) >= 0.4.0 with crate(log) < 0.5.0) -BuildRequires: ((crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) with crate(serde/derive)) -BuildRequires: crate(serde_derive) = 1.0.58 -BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0) -BuildRequires: ((crate(syn) >= 0.14.0 with crate(syn) < 0.15.0) with crate(syn/clone-impls) with crate(syn/derive) with crate(syn/extra-traits) with crate(syn/full) with crate(syn/parsing) with crate(syn/printing)) -BuildRequires: (crate(tempfile) >= 3.0.0 with crate(tempfile) < 4.0.0) -BuildRequires: (crate(toml) >= 0.4.0 with crate(toml) < 0.5.0) +BuildRequires: (crate(clap/default) >= 2.0.0 with crate(clap/default) < 3.0.0) +BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0) +BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) +BuildRequires: (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0) +BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0) +BuildRequires: (crate(syn/clone-impls) >= 0.14.0 with crate(syn/clone-impls) < 0.15.0) +BuildRequires: (crate(syn/derive) >= 0.14.0 with crate(syn/derive) < 0.15.0) +BuildRequires: (crate(syn/extra-traits) >= 0.14.0 with crate(syn/extra-traits) < 0.15.0) +BuildRequires: (crate(syn/full) >= 0.14.0 with crate(syn/full) < 0.15.0) +BuildRequires: (crate(syn/parsing) >= 0.14.0 with crate(syn/parsing) < 0.15.0) +BuildRequires: (crate(syn/printing) >= 0.14.0 with crate(syn/printing) < 0.15.0) +BuildRequires: (crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0) +BuildRequires: (crate(toml/default) >= 0.4.0 with crate(toml/default) < 0.5.0) +BuildRequires: crate(serde_derive/default) = 1.0.58 BuildRequires: /usr/bin/pathfix.py %if %{with check} BuildRequires: python3 BuildRequires: gcc-c++ %endif -%description -%{summary}. +%global _description \ +A tool for generating C bindings to Rust code. + +%description %{_description} %package -n %{crate} Summary: %{summary} @@ -43,15 +50,36 @@ Summary: %{summary} %description -n %{crate} %{summary}. +%files -n %{crate} +%license LICENSE +%doc README.md +%{_bindir}/cbindgen + %package devel Summary: %{summary} BuildArch: noarch -%description devel -A tool for generating C bindings to Rust code. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE +%doc ARCHITECTURE.md CONTRIBUTING.md README.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 %{crate} from crates.io. +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -70,17 +98,10 @@ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" test.py ./test.py -v %endif -%files -n %{crate} -%license LICENSE -%doc README.md -%{_bindir}/cbindgen - -%files devel -%license LICENSE -%doc ARCHITECTURE.md CONTRIBUTING.md README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Fri Nov 02 2018 Igor Gnatenko - 0.6.7-1 +- Adapt to new packaging + * Mon Oct 22 2018 Josh Stone - 0.6.6-1 - Update to 0.6.6 diff --git a/sources b/sources index 145834e..346d4a1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cbindgen-0.6.6.crate) = d51d17765d705424dead65e4240c52fe93da731d5ac1cc76fe79e2eb68a42c26a7de58b08149cccd6806ee5bb189df8c15c3a532a5f857a65c2fd69c656d7137 +SHA512 (cbindgen-0.6.7.crate) = 1a2a3f2055b0527b878b78834e6c802a171ed5f3494ff4819622f8244821d9a1b23d34d0c9370bee10a9f334cdbdfac43cb513f61bd49d57614f66825cd78030