Adapt to new packaging

epel9
Josh Stone 6 years ago
parent f6de48debf
commit c439f56d77

@ -7,7 +7,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.9.5 Version: 0.9.5
Release: 1%{?dist} Release: 2%{?dist}
Summary: Macros 1.1 derive implementation for Pread and Pwrite traits from scroll crate Summary: Macros 1.1 derive implementation for Pread and Pwrite traits from scroll crate
License: MIT License: MIT
@ -17,28 +17,44 @@ 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(proc-macro2/default) >= 0.4.0 with crate(proc-macro2/default) < 0.5.0)
BuildRequires: (crate(proc-macro2) >= 0.4.0 with crate(proc-macro2) < 0.5.0) BuildRequires: (crate(quote/default) >= 0.6.0 with crate(quote/default) < 0.7.0)
BuildRequires: (crate(quote) >= 0.6.0 with crate(quote) < 0.7.0) BuildRequires: (crate(syn/default) >= 0.15.0 with crate(syn/default) < 0.16.0)
BuildRequires: (crate(syn) >= 0.15.0 with crate(syn) < 0.16.0)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(scroll/default) >= 0.9.0 with crate(scroll/default) < 0.10.0)
BuildRequires: (crate(scroll) >= 0.9.0 with crate(scroll) < 0.10.0)
%endif %endif
%description %global _description \
%{summary}. A macros 1.1 derive implementation for Pread and Pwrite traits from the scroll\
crate.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
A macros 1.1 derive implementation for Pread and Pwrite traits from the scroll
crate.
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 "%{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
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -55,12 +71,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Tue Nov 13 2018 Josh Stone <jistone@redhat.com> - 0.9.5-2
- Adapt to new packaging
* Fri Sep 28 2018 Josh Stone <jistone@redhat.com> - 0.9.5-1 * Fri Sep 28 2018 Josh Stone <jistone@redhat.com> - 0.9.5-1
- Update to 0.9.5 - Update to 0.9.5

Loading…
Cancel
Save