Adapt to new packaging

epel9
Josh Stone 6 years ago
parent 3bab41f35e
commit ce8dc5961a

@ -6,7 +6,7 @@
Name: rust-%{crate}
Version: 2.2.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Case-insensitive wrapper around strings
# Upstream license specification: MIT/Apache-2.0
@ -17,21 +17,39 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [build-dependencies]
BuildRequires: (crate(version_check) >= 0.1.0 with crate(version_check) < 0.2.0)
BuildRequires: (crate(version_check/default) >= 0.1.0 with crate(version_check/default) < 0.2.0)
%description
%{summary}.
%global _description \
A case-insensitive wrapper around strings.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
A case-insensitive wrapper around strings.
%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}/
%exclude %{cargo_registry}/%{crate}-%{version}/scripts
%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
@ -48,13 +66,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/scripts
%changelog
* Tue Nov 27 2018 Josh Stone <jistone@redhat.com> - 2.2.0-2
- Adapt to new packaging
* Fri Oct 05 2018 Josh Stone <jistone@redhat.com> - 2.2.0-1
- Update to 2.2.0

Loading…
Cancel
Save