Adapt to new packaging

epel9
Josh Stone 6 years ago
parent ab2647a5cd
commit 82f8079032

@ -6,7 +6,7 @@
Name: rust-%{crate}
Version: 0.5.0
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Simple crate for ensuring that version numbers in README files are updated
License: MIT
@ -21,16 +21,19 @@ Patch0002: 0002-Update-to-syn-0.14.patch
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(itertools) >= 0.7.0 with crate(itertools) < 0.8.0)
BuildRequires: (crate(itertools/default) >= 0.7.0 with crate(itertools/default) < 0.8.0)
BuildRequires: (crate(pulldown-cmark) >= 0.1.0 with crate(pulldown-cmark) < 0.2.0)
BuildRequires: (crate(semver-parser) >= 0.7.0 with crate(semver-parser) < 0.8.0)
BuildRequires: ((crate(syn) >= 0.14.0 with crate(syn) < 0.15.0) with crate(syn/full))
BuildRequires: (crate(toml) >= 0.4.0 with crate(toml) < 0.5.0)
BuildRequires: (crate(url) >= 1.5.1 with crate(url) < 2.0.0)
BuildRequires: (crate(semver-parser/default) >= 0.7.0 with crate(semver-parser/default) < 0.8.0)
BuildRequires: (crate(syn/default) >= 0.14.0 with crate(syn/default) < 0.15.0)
BuildRequires: (crate(syn/full) >= 0.14.0 with crate(syn/full) < 0.15.0)
BuildRequires: (crate(toml/default) >= 0.4.0 with crate(toml/default) < 0.5.0)
BuildRequires: (crate(url/default) >= 1.5.1 with crate(url/default) < 2.0.0)
%description
%{summary}.
%global _description \
Simple crate for ensuring that version numbers in README files are updated when\
the crate version changes.
%description %{_description}
%package devel
Summary: %{summary}
@ -43,6 +46,23 @@ updated when the crate version changes.
This package contains library source intended for building other packages
which use %{crate} from crates.io.
%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
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
@ -58,12 +78,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Sat Nov 10 2018 Josh Stone <jistone@redhat.com> - 0.5.0-8
- Adapt to new packaging
* Tue Sep 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.0-7
- Bump syn to 0.14

Loading…
Cancel
Save