Adapt to new packaging

epel9
Josh Stone 6 years ago
parent 809aebc9c4
commit 1ae91bef23

@ -7,9 +7,10 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.1.11 Version: 0.1.11
Release: 6%{?dist} Release: 7%{?dist}
Summary: LCS based slice and string diffing implementation Summary: LCS based slice and string diffing implementation
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0 License: MIT or ASL 2.0
URL: https://crates.io/crates/diff URL: https://crates.io/crates/diff
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
@ -21,13 +22,14 @@ ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
%if %{with check} %if %{with check}
# [dev-dependencies]
BuildRequires: (crate(quickcheck) >= 0.6.0 with crate(quickcheck) < 0.7.0) BuildRequires: (crate(quickcheck) >= 0.6.0 with crate(quickcheck) < 0.7.0)
BuildRequires: (crate(speculate) >= 0.0.25 with crate(speculate) < 0.0.26) BuildRequires: (crate(speculate/default) >= 0.0.25 with crate(speculate/default) < 0.0.26)
%endif %endif
%description %global _description \
%{summary}. An LCS based slice and string diffing implementation.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
@ -37,7 +39,24 @@ BuildArch: noarch
An LCS based slice and string diffing implementation. An LCS based slice and string diffing implementation.
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-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 %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -54,12 +73,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Tue Oct 30 2018 Josh Stone <jistone@redhat.com> - 0.1.11-7
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.11-6 * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save