From 54c5e2e2a4c992c0b73909d16bf596d9c9a0d00b Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Jan 28 2019 21:53:10 +0000 Subject: Initial package --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e6910b2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tokio-sync-0.1.0.crate diff --git a/rust-tokio-sync.spec b/rust-tokio-sync.spec new file mode 100644 index 0000000..3686cfe --- /dev/null +++ b/rust-tokio-sync.spec @@ -0,0 +1,79 @@ +# Generated by rust2rpm +# Tests are disabled +# * tokio-sync(dev) → tokio → tokio-sync +# * loom isn't packaged +%bcond_with check +%global debug_package %{nil} + +%global crate tokio-sync + +Name: rust-%{crate} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Synchronization utilities + +License: MIT +URL: https://crates.io/crates/tokio-sync +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +BuildRequires: (crate(futures/default) >= 0.1.19 with crate(futures/default) < 0.2.0) +%if %{with check} +BuildRequires: (crate(env_logger) >= 0.5.0 with crate(env_logger) < 0.6.0) +BuildRequires: (crate(loom/default) >= 0.1.0 with crate(loom/default) < 0.2.0) +BuildRequires: (crate(loom/futures) >= 0.1.0 with crate(loom/futures) < 0.2.0) +BuildRequires: (crate(tokio-mock-task/default) >= 0.1.1 with crate(tokio-mock-task/default) < 0.2.0) +BuildRequires: (crate(tokio/default) >= 0.1.14 with crate(tokio/default) < 0.2.0) +%endif + +%global _description \ +Synchronization utilities. + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE +%doc README.md CHANGELOG.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 + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Jan 25 2019 Josh Stone - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..6df2917 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tokio-sync-0.1.0.crate) = 9e7f681fb71ddc8653e4ce669eeb37a2df2151a7dfb65191c7c460545bea382f754770187859703b1e866985db96138dd1c4f88e655b04fb2d0645485be77650