From dabfee9a44dbe000e30d445da852e43d7e1847ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Mon, 22 Feb 2021 10:51:47 +0100 Subject: [PATCH] Initial import (#1927248) --- .gitignore | 1 + rust-scratch.spec | 83 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 85 insertions(+) create mode 100644 .gitignore create mode 100644 rust-scratch.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0c21e7f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/scratch-1.0.0.crate diff --git a/rust-scratch.spec b/rust-scratch.spec new file mode 100644 index 0000000..0ce47f6 --- /dev/null +++ b/rust-scratch.spec @@ -0,0 +1,83 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate scratch + +Name: rust-%{crate} +Version: 1.0.0 +Release: 3%{?dist} +Summary: Shared compile-time directory + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/scratch +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Compile-time temporary directory shared by multiple crates and erased by `cargo +clean`.} + +%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 +%doc README.md +%license LICENSE-APACHE +%license LICENSE-MIT +%{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 -a + +%build +%cargo_build -a + +%install +%cargo_install -a + +%if %{with check} +%check +%cargo_test -a +%endif + +%changelog +* Mon Feb 15 2021 Jan Staněk - 1.0.0-3 +- Shorten summary field + +* Wed Feb 10 2021 Jan Staněk - 1.0.0-2 +- Mark license files + +* Mon Feb 01 13:02:33 CET 2021 Jan Staněk - 1.0.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..c2951e6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (scratch-1.0.0.crate) = e2cdacb1af24b765ebd87ec8e2d87cacbd4f7ea154d90010735cfbaf166f2f6ecd0f42b8b5a7bc2db518cf7e2f304a2a6d5cc67da0e1d6f08d6dfd427646a747