From 53fd556abd64fb1b5d29e9b18b2c5ef42abc94b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Wed, 17 Feb 2021 16:15:21 +0100 Subject: [PATCH] Initial import (#1927385) --- .gitignore | 1 + rust-cxxbridge-macro.spec | 79 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 81 insertions(+) create mode 100644 .gitignore create mode 100644 rust-cxxbridge-macro.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a220db0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cxxbridge-macro-0.5.10.crate diff --git a/rust-cxxbridge-macro.spec b/rust-cxxbridge-macro.spec new file mode 100644 index 0000000..e8ec675 --- /dev/null +++ b/rust-cxxbridge-macro.spec @@ -0,0 +1,79 @@ +# Generated by rust2rpm 16 +# --with=check introduces cyclic dependency with cxx +%bcond_with check +%global debug_package %{nil} + +%global crate cxxbridge-macro + +Name: rust-%{crate} +Version: 0.5.10 +Release: 2%{?dist} +Summary: Implementation detail of the `cxx` crate + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/cxxbridge-macro +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Implementation detail of the `cxx` crate.} + +%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 14:02:46 CET 2021 Jan Staněk - 0.5.10-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..2ba183c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cxxbridge-macro-0.5.10.crate) = ad5acbafff5041ee37c276d24337884c598de3122fe5855e59f65d52c40886048caaa083a1a588c464964efe632cc86cb61a457199067686211036c964dcf1a9