Adapt to new packaging

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent ea84926e82
commit 181d34acb8
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,12 +1,13 @@
# Generated by rust2rpm # Generated by rust2rpm
%bcond_without check # * Tests are run in infrastructure
%bcond_with check
%global debug_package %{nil} %global debug_package %{nil}
%global crate bincode %global crate bincode
Name: rust-%{crate} Name: rust-%{crate}
Version: 1.0.1 Version: 1.0.1
Release: 2%{?dist} Release: 3%{?dist}
Summary: Binary serialization / deserialization strategy that uses Serde Summary: Binary serialization / deserialization strategy that uses Serde
License: MIT License: MIT
@ -16,28 +17,57 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(byteorder/default) >= 1.2.0 with crate(byteorder/default) < 2.0.0)
BuildRequires: (crate(byteorder) >= 1.2.0 with crate(byteorder) < 2.0.0) BuildRequires: (crate(byteorder/i128) >= 1.2.0 with crate(byteorder/i128) < 2.0.0)
BuildRequires: (crate(serde) >= 1.0.63 with crate(serde) < 2.0.0) BuildRequires: (crate(serde/default) >= 1.0.63 with crate(serde/default) < 2.0.0)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(serde_bytes/default) >= 0.10.3 with crate(serde_bytes/default) < 0.11.0)
BuildRequires: (crate(serde_bytes) >= 0.10.3 with crate(serde_bytes) < 0.11.0) BuildRequires: (crate(serde_derive/default) >= 1.0.27 with crate(serde_derive/default) < 2.0.0)
BuildRequires: (crate(serde_derive) >= 1.0.27 with crate(serde_derive) < 2.0.0)
%endif %endif
%description %global _description \
%{summary}. A binary serialization / deserialization strategy that uses Serde for\
transforming structs into bytes and vice versa!
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
A binary serialization / deserialization strategy that uses Serde for
transforming structs into bytes and vice versa! This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE.md
%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 This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+i128-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+i128-devel %{_description}
This package contains library source intended for building other packages
which use "i128" feature of "%{crate}" crate.
%files -n %{name}+i128-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -54,12 +84,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE.md
%doc readme.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Sat Nov 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-3
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2 * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save