diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c018966 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/async-io-1.3.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index e4bfab8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-async-io - -The rust-async-io package diff --git a/async-io-fix-metadata.diff b/async-io-fix-metadata.diff new file mode 100644 index 0000000..4a474e3 --- /dev/null +++ b/async-io-fix-metadata.diff @@ -0,0 +1,11 @@ +--- async-io-1.3.1/Cargo.toml 2020-11-30T18:04:21+00:00 ++++ async-io-1.3.1/Cargo.toml 2021-01-06T14:01:16.191679+00:00 +@@ -77,8 +77,3 @@ + version = "1.1.1" + [target."cfg(unix)".dependencies.libc] + version = "0.2.77" +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3.9" +-features = ["winsock2"] +-[target."cfg(windows)".dev-dependencies.uds_windows] +-version = "0.1.5" diff --git a/rust-async-io.spec b/rust-async-io.spec new file mode 100644 index 0000000..47e718c --- /dev/null +++ b/rust-async-io.spec @@ -0,0 +1,79 @@ +# Generated by rust2rpm 16 +# * resolve circular dependency between async-{channel,net} and async-io +%bcond_with check +%global debug_package %{nil} + +%global crate async-io + +Name: rust-%{crate} +Version: 1.3.1 +Release: 1%{?dist} +Summary: Async I/O and timers + +# Upstream license specification: Apache-2.0 OR MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/async-io +Source: %{crates_source} +# Initial patched metadata +# * drop Windows dependencies +Patch0: async-io-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Async I/O and timers.} + +%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-APACHE LICENSE-MIT +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Wed Jan 06 2021 Fabio Valentini - 1.3.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..3c4e3cf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (async-io-1.3.1.crate) = eb5c82de79d8be448b978832500d07bb3e85c3d322187a4f00551d95034f4c4cf4520c3b37059b5cef098d2b06062a2afcb24e7c4ad7228b3c1f2a3eb28f3d88