From 0e27eb54c0c6df1f99e456c50349c5649a8501f2 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 24 Mar 2021 20:25:44 +0100 Subject: [PATCH] initial import (signal-hook 0.1 compat package) --- .gitignore | 4 + README.md | 3 - rust-signal-hook0.1.spec | 159 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 164 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-signal-hook0.1.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0697059 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/signal-hook-0.1.17.crate diff --git a/README.md b/README.md deleted file mode 100644 index 28ba126..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-signal-hook0.1 - -The rust-signal-hook0.1 package diff --git a/rust-signal-hook0.1.spec b/rust-signal-hook0.1.spec new file mode 100644 index 0000000..e3d0548 --- /dev/null +++ b/rust-signal-hook0.1.spec @@ -0,0 +1,159 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate signal-hook + +Name: rust-%{crate}0.1 +Version: 0.1.17 +Release: 1%{?dist} +Summary: Unix signal handling + +# Upstream license specification: Apache-2.0/MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/signal-hook +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Unix signal handling.} + +%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 +%{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 + +%package -n %{name}+futures-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-devel %{_description} + +This package contains library source intended for building other packages +which use "futures" feature of "%{crate}" crate. + +%files -n %{name}+futures-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+mio-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mio-devel %{_description} + +This package contains library source intended for building other packages +which use "mio" feature of "%{crate}" crate. + +%files -n %{name}+mio-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+mio-0_7-support-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mio-0_7-support-devel %{_description} + +This package contains library source intended for building other packages +which use "mio-0_7-support" feature of "%{crate}" crate. + +%files -n %{name}+mio-0_7-support-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+mio-support-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mio-support-devel %{_description} + +This package contains library source intended for building other packages +which use "mio-support" feature of "%{crate}" crate. + +%files -n %{name}+mio-support-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+mio_0_7-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mio_0_7-devel %{_description} + +This package contains library source intended for building other packages +which use "mio_0_7" feature of "%{crate}" crate. + +%files -n %{name}+mio_0_7-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+tokio-reactor-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-reactor-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-reactor" feature of "%{crate}" crate. + +%files -n %{name}+tokio-reactor-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+tokio-support-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-support-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-support" feature of "%{crate}" crate. + +%files -n %{name}+tokio-support-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 Mar 24 2021 Fabio Valentini - 0.1.17-1 +- Initial compat package for signal-hook 0.1 diff --git a/sources b/sources new file mode 100644 index 0000000..fa50d2c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (signal-hook-0.1.17.crate) = 253d1478d7a6491a0b423637a706c941cc2a9707d32d29126f48af808daf8acd88e59013936f8e164df687c04e3a8f5c201b5eeb1952e3269b1419efdb4df94f