From d26483c9dd8775d96c30e2741120898a327d81bc Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 12 Feb 2020 11:04:21 +0100 Subject: [PATCH] initial import (#1800864) --- .gitignore | 4 +++ README.md | 3 -- rust-tower-layer.spec | 76 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 81 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-tower-layer.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b50059 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_* +/*.src.rpm + +/tower-layer-0.3.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index aef2fda..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-tower-layer - -The rust-tower-layer package \ No newline at end of file diff --git a/rust-tower-layer.spec b/rust-tower-layer.spec new file mode 100644 index 0000000..9e66f95 --- /dev/null +++ b/rust-tower-layer.spec @@ -0,0 +1,76 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate tower-layer + +Name: rust-%{crate} +Version: 0.3.0 +Release: 1%{?dist} +Summary: Decorates a Service to allow easy composition + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/tower-layer +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Decorates a Service to allow easy composition between Services.} + +%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 +%{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 +* Sat Feb 08 2020 Fabio Valentini - 0.3.0-1 +- Initial package + diff --git a/sources b/sources new file mode 100644 index 0000000..38179da --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tower-layer-0.3.0.crate) = 5422f3449651dc7c0c62989128018bea84dbbcde473a09e9e3761f2d343104a000a2d030f46685723537591077e0486bba626580df5056921f950035934ea52b