From 65e99ff2d15feeb99e56e610f5ea8b82236edddb Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 28 Oct 2018 02:46:15 +0100 Subject: [PATCH] Adapt to new packaging Signed-off-by: Igor Gnatenko --- rust-safemem.spec | 51 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 40 insertions(+), 11 deletions(-) diff --git a/rust-safemem.spec b/rust-safemem.spec index 911329f..c8f7787 100644 --- a/rust-safemem.spec +++ b/rust-safemem.spec @@ -7,9 +7,10 @@ Name: rust-%{crate} Version: 0.3.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Safe wrappers for memory-accessing functions, like `std::ptr::copy()` +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/safemem Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate @@ -18,18 +19,48 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +Safe wrappers for memory-accessing functions, like `std::ptr::copy()`. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Safe wrappers for memory-accessing functions, like `std::ptr::copy()`. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%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}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -46,12 +77,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sun Oct 28 2018 Igor Gnatenko - 0.3.0-4 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 0.3.0-3 - Run tests in infrastructure