From aa369f9fcb646c9e57ec652a4d7c86af35f7806b Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Nov 12 2018 23:49:37 +0000 Subject: Adapt to new packaging --- diff --git a/rust-foreign-types.spec b/rust-foreign-types.spec index b2b5bc5..f790306 100644 --- a/rust-foreign-types.spec +++ b/rust-foreign-types.spec @@ -6,9 +6,10 @@ Name: rust-%{crate} Version: 0.3.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Framework for Rust wrappers over C APIs +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/foreign-types Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate @@ -16,21 +17,38 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(foreign-types-shared) >= 0.1.0 with crate(foreign-types-shared) < 0.2.0) +BuildRequires: (crate(foreign-types-shared/default) >= 0.1.0 with crate(foreign-types-shared/default) < 0.2.0) -%description -%{summary}. +%global _description \ +A framework for Rust wrappers over C APIs. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A framework for Rust wrappers over C APIs. +%description devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -47,12 +65,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 +* Mon Nov 12 2018 Josh Stone - 0.3.2-5 +- Adapt to new packaging + * Sat Jul 14 2018 Fedora Release Engineering - 0.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild