Adapt to new packaging

epel9
Josh Stone 6 years ago
parent 1a717dc3b1
commit 98b7b7f9f6

@ -6,7 +6,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.3.8 Version: 0.3.8
Release: 1%{?dist} Release: 2%{?dist}
Summary: Utilities for handling networking sockets Summary: Utilities for handling networking sockets
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
@ -20,27 +20,79 @@ Patch0: socket2-0.3.7-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(cfg-if/default) >= 0.1.0 with crate(cfg-if/default) < 0.2.0)
BuildRequires: (crate(cfg-if) >= 0.1.0 with crate(cfg-if) < 0.2.0) BuildRequires: (crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0)
BuildRequires: (crate(libc) >= 0.2.42 with crate(libc) < 0.3.0)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) < 0.4.0)
BuildRequires: (crate(tempdir) >= 0.3.0 with crate(tempdir) < 0.4.0)
%endif %endif
%description %global _description \
%{summary}. Utilities for handling networking sockets with a maximal amount of\
configuration possible intended.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Utilities for handling networking sockets with a maximal amount of
configuration possible intended. 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 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 %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -57,12 +109,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Sat Nov 10 2018 Josh Stone <jistone@redhat.com> - 0.3.8-2
- Adapt to new packaging
* Sat Sep 08 2018 Josh Stone <jistone@redhat.com> - 0.3.8-1 * Sat Sep 08 2018 Josh Stone <jistone@redhat.com> - 0.3.8-1
- Update to 0.3.8 - Update to 0.3.8

Loading…
Cancel
Save