From 1cfdf89918345c9defd2d4056d18526ca4fa16b3 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Nov 10 2018 12:15:09 +0000 Subject: Update to 0.10.1 Adapt to new packaging Signed-off-by: Robert-André Mauchin --- diff --git a/.gitignore b/.gitignore index 5cab38a..557918c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /synstructure-0.8.1.crate /synstructure-0.9.0.crate /synstructure-0.10.0.crate +/synstructure-0.10.1.crate diff --git a/rust-synstructure.spec b/rust-synstructure.spec index 2f062a1..7cb26e2 100644 --- a/rust-synstructure.spec +++ b/rust-synstructure.spec @@ -6,7 +6,7 @@ %global crate synstructure Name: rust-%{crate} -Version: 0.10.0 +Version: 0.10.1 Release: 1%{?dist} Summary: Helper methods and macros for custom derives @@ -17,28 +17,58 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(proc-macro2) >= 0.4.0 with crate(proc-macro2) < 0.5.0) -BuildRequires: (crate(quote) >= 0.6.0 with crate(quote) < 0.7.0) -BuildRequires: ((crate(syn) >= 0.15.0 with crate(syn) < 0.16.0) with crate(syn/visit) with crate(syn/extra-traits)) -BuildRequires: (crate(unicode-xid) >= 0.1.0 with crate(unicode-xid) < 0.2.0) +BuildRequires: (crate(proc-macro2/default) >= 0.4.0 with crate(proc-macro2/default) < 0.5.0) +BuildRequires: (crate(quote/default) >= 0.6.0 with crate(quote/default) < 0.7.0) +BuildRequires: (crate(syn/default) >= 0.15.0 with crate(syn/default) < 0.16.0) +BuildRequires: (crate(syn/extra-traits) >= 0.15.0 with crate(syn/extra-traits) < 0.16.0) +BuildRequires: (crate(syn/visit) >= 0.15.0 with crate(syn/visit) < 0.16.0) +BuildRequires: (crate(unicode-xid/default) >= 0.1.0 with crate(unicode-xid/default) < 0.2.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(synstructure_test_traits) >= 0.1.0 with crate(synstructure_test_traits) < 0.2.0) +BuildRequires: (crate(synstructure_test_traits/default) >= 0.1.0 with crate(synstructure_test_traits/default) < 0.2.0) %endif -%description -%{summary}. +%global _description \ +Helper methods and macros for custom derives. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Helper methods and macros for custom derives. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE +%doc 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 + +%package -n %{name}+simple-derive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+simple-derive-devel %{_description} + +This package contains library source intended for building other packages +which use "simple-derive" feature of "%{crate}" crate. + +%files -n %{name}+simple-derive-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -55,12 +85,11 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Nov 10 2018 Robert-André Mauchin - 0.10.1-1 +- Update to 0.10.1 +- Adapt to new packaging + * Tue Sep 18 2018 Josh Stone - 0.10.0-1 - Update to 0.10.0 diff --git a/sources b/sources index 8af9693..4dc407f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (synstructure-0.10.0.crate) = 573212bfba512225dadf7928172489c7d9f74baa23779831eb1f4fc042f7f79a42d78eacc467e220914885cb3b0329e3cb7b65629f60d59bf1d1e1786c2c7963 +SHA512 (synstructure-0.10.1.crate) = 5830eea0eab15c7ed737bfa14c7bbfc73f28af6964ce3148542066fb9760a80dbba82fd9a55078426346ba757e0aaba9addecadb1d0f75eac4f029a6e4c7cc19 diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..503a97c --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..6eaae52 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-synstructure