Adapt to new packaging

epel9
Josh Stone 6 years ago
parent c378e7589e
commit 6856ee9266

@ -6,7 +6,7 @@
Name: rust-%{crate}
Version: 1.0.8
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Pest's derive macro
# Upstream license specification: MIT/Apache-2.0
@ -17,23 +17,40 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(pest) >= 1.0.0 with crate(pest) < 2.0.0)
BuildRequires: (crate(quote) >= 0.3.15 with crate(quote) < 0.4.0)
BuildRequires: (crate(syn) >= 0.11.0 with crate(syn) < 0.12.0)
BuildRequires: (crate(pest/default) >= 1.0.0 with crate(pest/default) < 2.0.0)
BuildRequires: (crate(quote/default) >= 0.3.15 with crate(quote/default) < 0.4.0)
BuildRequires: (crate(syn/default) >= 0.11.0 with crate(syn/default) < 0.12.0)
%description
%{summary}.
%global _description \
Pest's derive macro.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Pest's derive macro.
%description devel %{_description}
This package contains library source intended for building other packages
which use %{crate} from crates.io.
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
%prep
%autosetup -n %{crate}-%{version} -p1
@ -50,12 +67,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
* Fri Nov 09 2018 Josh Stone <jistone@redhat.com> - 1.0.8-2
- Adapt to new packaging
* Sat Sep 08 2018 Josh Stone <jistone@redhat.com> - 1.0.8-1
- Update to 1.0.8

Loading…
Cancel
Save