diff --git a/rust-socket2.spec b/rust-socket2.spec index 37737d8..1b474bd 100644 --- a/rust-socket2.spec +++ b/rust-socket2.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.3.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Utilities for handling networking sockets # Upstream license specification: MIT/Apache-2.0 @@ -20,27 +20,79 @@ Patch0: socket2-0.3.7-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(cfg-if) >= 0.1.0 with crate(cfg-if) < 0.2.0) -BuildRequires: (crate(libc) >= 0.2.42 with crate(libc) < 0.3.0) +BuildRequires: (crate(cfg-if/default) >= 0.1.0 with crate(cfg-if/default) < 0.2.0) +BuildRequires: (crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(tempdir) >= 0.3.0 with crate(tempdir) < 0.4.0) +BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) < 0.4.0) %endif -%description -%{summary}. +%global _description \ +Utilities for handling networking sockets with a maximal amount of\ +configuration possible intended. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Utilities for handling networking sockets with a maximal amount of -configuration possible intended. +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+pair-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+pair-devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "pair" feature of "%{crate}" crate. + +%files -n %{name}+pair-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+reuseport-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+reuseport-devel %{_description} + +This package contains library source intended for building other packages +which use "reuseport" feature of "%{crate}" crate. + +%files -n %{name}+reuseport-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+unix-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unix-devel %{_description} + +This package contains library source intended for building other packages +which use "unix" feature of "%{crate}" crate. + +%files -n %{name}+unix-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -57,12 +109,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 +* Sat Nov 10 2018 Josh Stone - 0.3.8-2 +- Adapt to new packaging + * Sat Sep 08 2018 Josh Stone - 0.3.8-1 - Update to 0.3.8