diff --git a/rust-mime.spec b/rust-mime.spec index 26d7fa7..003a517 100644 --- a/rust-mime.spec +++ b/rust-mime.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.3.12 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Strongly Typed Mimes # Upstream license specification: MIT/Apache-2.0 @@ -17,21 +17,38 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(unicase) >= 2.0.0 with crate(unicase) < 3.0.0) +BuildRequires: (crate(unicase/default) >= 2.0.0 with crate(unicase/default) < 3.0.0) -%description -%{summary}. +%global _description \ +Strongly Typed Mimes. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Strongly Typed Mimes. +%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 CONTRIBUTING.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 @@ -48,12 +65,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CONTRIBUTING.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Tue Nov 27 2018 Josh Stone - 0.3.12-2 +- Adapt to new packaging + * Mon Oct 22 2018 Josh Stone - 0.3.12-1 - Update to 0.3.12