Adapt to new packaging

epel9
Josh Stone 6 years ago
parent d16f143800
commit 3990350f5c

@ -6,7 +6,7 @@
Name: rust-%{crate}
Version: 0.9.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Powerful, extensible, generic, endian-aware Read/Write traits for byte buffers
License: MIT
@ -16,29 +16,80 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(scroll_derive) >= 0.9.0 with crate(scroll_derive) < 0.10.0)
# [build-dependencies]
BuildRequires: (crate(rustc_version) >= 0.2.0 with crate(rustc_version) < 0.3.0)
BuildRequires: (crate(rustc_version/default) >= 0.2.0 with crate(rustc_version/default) < 0.3.0)
BuildRequires: (crate(scroll_derive/default) >= 0.9.0 with crate(scroll_derive/default) < 0.10.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0)
BuildRequires: (crate(rayon) >= 1.0.0 with crate(rayon) < 2.0.0)
BuildRequires: (crate(byteorder/default) >= 1.0.0 with crate(byteorder/default) < 2.0.0)
BuildRequires: (crate(rayon/default) >= 1.0.0 with crate(rayon/default) < 2.0.0)
%endif
%description
%{summary}.
%global _description \
A suite of powerful, extensible, generic, endian-aware Read/Write traits for\
byte buffers.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
A suite of powerful, extensible, generic, endian-aware Read/Write traits for
byte buffers.
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE
%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}+derive-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+derive-devel %{_description}
This package contains library source intended for building other packages
which use %{crate} from crates.io.
which use "derive" feature of "%{crate}" crate.
%files -n %{name}+derive-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+scroll_derive-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+scroll_derive-devel %{_description}
This package contains library source intended for building other packages
which use "scroll_derive" feature of "%{crate}" crate.
%files -n %{name}+scroll_derive-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+std-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+std-devel %{_description}
This package contains library source intended for building other packages
which use "std" feature of "%{crate}" crate.
%files -n %{name}+std-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
@ -55,12 +106,10 @@ which use %{crate} from crates.io.
%cargo_test -a
%endif
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Tue Nov 13 2018 Josh Stone <jistone@redhat.com> - 0.9.2-2
- Adapt to new packaging
* Fri Sep 28 2018 Josh Stone <jistone@redhat.com> - 0.9.2-1
- Update to 0.9.2

Loading…
Cancel
Save