From 16c9e50900607cce3e32340d58d8f3cf1c3a3a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Mon, 22 Feb 2021 11:05:40 +0100 Subject: [PATCH] Initial import (#1927353) --- .gitignore | 1 + rust-cxx-build.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 80 insertions(+) create mode 100644 .gitignore create mode 100644 rust-cxx-build.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f26178a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cxx-build-0.5.10.crate diff --git a/rust-cxx-build.spec b/rust-cxx-build.spec new file mode 100644 index 0000000..c487af3 --- /dev/null +++ b/rust-cxx-build.spec @@ -0,0 +1,78 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate cxx-build + +Name: rust-%{crate} +Version: 0.5.10 +Release: 2%{?dist} +Summary: C++ code generator for integrating `cxx` crate into a Cargo build + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/cxx-build +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +C++ code generator for integrating `cxx` crate into a Cargo build.} + +%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 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 +* Wed Feb 10 2021 Jan Staněk - 0.5.10-2 +- Mark license files + +* Mon Feb 01 11:47:39 CET 2021 Jan Staněk - 0.5.10-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..4d88384 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cxx-build-0.5.10.crate) = 7785082dad14fcc247eac54c6ac8fbeeae5472c188cdf80f21eda856b293fcec542060d0776d4b238ac86c41f95a467e2e7a010d896b5fcbbeaabf4d03166e83