Adapt to new packaging

epel9
Josh Stone 6 years ago
parent 571028291c
commit c71f638548

@ -6,7 +6,7 @@
Name: rust-%{crate}
Version: 0.7.23
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Runtime support for perfect hash function data structures
# https://github.com/sfackler/rust-phf/pull/118
@ -20,21 +20,49 @@ Patch0: phf-0.7.22-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: crate(phf_shared) = 0.7.23
BuildRequires: crate(phf_shared/core) = 0.7.23
BuildRequires: crate(phf_shared/default) = 0.7.23
%description
%{summary}.
%global _description \
Runtime support for perfect hash function data structures.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Runtime support for perfect hash function data structures.
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%{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 %{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}+core-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+core-devel %{_description}
This package contains library source intended for building other packages
which use "core" feature of "%{crate}" crate.
%files -n %{name}+core-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
@ -51,10 +79,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Fri Nov 09 2018 Josh Stone <jistone@redhat.com> - 0.7.23-2
- Adapt to new packaging
* Sat Sep 08 2018 Josh Stone <jistone@redhat.com> - 0.7.23-1
- Update to 0.7.23

Loading…
Cancel
Save