diff --git a/rust-grep-printer.spec b/rust-grep-printer.spec index 8597924..f39dcf5 100644 --- a/rust-grep-printer.spec +++ b/rust-grep-printer.spec @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.1.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Implementation of the grep crate's Sink trait # Upstream license specification: Unlicense/MIT @@ -18,32 +18,108 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(base64) >= 0.9.2 with crate(base64) < 0.10.0) -BuildRequires: (crate(grep-matcher) >= 0.1.1 with crate(grep-matcher) < 0.2.0) -BuildRequires: (crate(grep-searcher) >= 0.1.1 with crate(grep-searcher) < 0.2.0) -BuildRequires: (crate(serde) >= 1.0.77 with crate(serde) < 2.0.0) -BuildRequires: (crate(serde_derive) >= 1.0.77 with crate(serde_derive) < 2.0.0) -BuildRequires: (crate(serde_json) >= 1.0.27 with crate(serde_json) < 2.0.0) -BuildRequires: (crate(termcolor) >= 1.0.3 with crate(termcolor) < 2.0.0) +BuildRequires: (crate(base64/default) >= 0.9.2 with crate(base64/default) < 0.10.0) +BuildRequires: (crate(grep-matcher/default) >= 0.1.1 with crate(grep-matcher/default) < 0.2.0) +BuildRequires: (crate(grep-searcher/default) >= 0.1.1 with crate(grep-searcher/default) < 0.2.0) +BuildRequires: (crate(serde/default) >= 1.0.77 with crate(serde/default) < 2.0.0) +BuildRequires: (crate(serde_derive/default) >= 1.0.77 with crate(serde_derive/default) < 2.0.0) +BuildRequires: (crate(serde_json/default) >= 1.0.27 with crate(serde_json/default) < 2.0.0) +BuildRequires: (crate(termcolor/default) >= 1.0.3 with crate(termcolor/default) < 2.0.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(grep-regex) >= 0.1.1 with crate(grep-regex) < 0.2.0) +BuildRequires: (crate(grep-regex/default) >= 0.1.1 with crate(grep-regex/default) < 0.2.0) %endif -%description -%{summary}. +%global _description \ +An implementation of the grep crate's Sink trait that provides standard\ +printing of search results, similar to grep itself. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -An implementation of the grep crate's Sink trait that provides standard -printing of search results, similar to grep itself. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license UNLICENSE LICENSE-MIT +%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 + +%package -n %{name}+base64-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+base64-devel %{_description} + +This package contains library source intended for building other packages +which use "base64" feature of "%{crate}" crate. + +%files -n %{name}+base64-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "serde" feature of "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+serde1-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde1-devel %{_description} + +This package contains library source intended for building other packages +which use "serde1" feature of "%{crate}" crate. + +%files -n %{name}+serde1-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+serde_derive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde_derive-devel %{_description} + +This package contains library source intended for building other packages +which use "serde_derive" feature of "%{crate}" crate. + +%files -n %{name}+serde_derive-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+serde_json-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde_json-devel %{_description} + +This package contains library source intended for building other packages +which use "serde_json" feature of "%{crate}" crate. + +%files -n %{name}+serde_json-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -60,12 +136,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license UNLICENSE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sun Oct 28 2018 Igor Gnatenko - 0.1.1-3 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 0.1.1-2 - Run tests in infrastructure