Bring spin back

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent d5e9788a64
commit a3c50e08fa
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,15 +0,0 @@
--- lazy_static-1.3.0/Cargo.toml 1969-12-31T16:00:00-08:00
+++ lazy_static-1.3.0/Cargo.toml 2019-02-28T09:25:59.738921-08:00
@@ -22,12 +22,7 @@
categories = ["no-std", "rust-patterns", "memory-management"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rust-lang-nursery/lazy-static.rs"
-[dependencies.spin]
-version = "0.5.0"
-optional = true
-[features]
-spin_no_std = ["spin"]
[badges.appveyor]
repository = "rust-lang-nursery/lazy-static.rs"

@ -7,20 +7,18 @@
Name: rust-%{crate}
Version: 1.3.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Macro for declaring lazily evaluated statics in Rust
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/lazy_static
Source: %{crates_source}
# Initial patched metadata
# * Remove spin, it is not usable on stable (FIXME: still true?)
Patch0: lazy_static-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(spin/default) >= 0.5.0 with crate(spin/default) < 0.6.0)
%global _description \
A macro for declaring lazily evaluated statics in Rust.
@ -53,6 +51,30 @@ which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+spin-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+spin-devel %{_description}
This package contains library source intended for building other packages
which use "spin" feature of "%{crate}" crate.
%files -n %{name}+spin-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+spin_no_std-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+spin_no_std-devel %{_description}
This package contains library source intended for building other packages
which use "spin_no_std" feature of "%{crate}" crate.
%files -n %{name}+spin_no_std-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
@ -69,6 +91,9 @@ which use "default" feature of "%{crate}" crate.
%endif
%changelog
* Sat Mar 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.0-2
- Bring spin back
* Thu Feb 28 2019 Josh Stone <jistone@redhat.com> - 1.3.0-1
- Update to 1.3.0

Loading…
Cancel
Save