From e2df6fb9f1bd5c6815bec69717fc674ab1db1cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Thu, 18 Feb 2021 11:07:45 +0100 Subject: [PATCH] Initial import (#1927210) --- .gitignore | 1 + rust-cxx-gen.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 80 insertions(+) create mode 100644 .gitignore create mode 100644 rust-cxx-gen.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7d7eb04 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cxx-gen-0.6.7.crate diff --git a/rust-cxx-gen.spec b/rust-cxx-gen.spec new file mode 100644 index 0000000..a600290 --- /dev/null +++ b/rust-cxx-gen.spec @@ -0,0 +1,78 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate cxx-gen + +Name: rust-%{crate} +Version: 0.6.7 +Release: 2%{?dist} +Summary: C++ code generator for integrating `cxx` crate into higher level tools + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/cxx-gen +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 higher level tools.} + +%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-MIT +%license LICENSE-APACHE +%{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 +* Fri Feb 05 2021 Jan Staněk - 0.6.7-2 +- Install license files to appropriate places + +* Mon Feb 01 12:51:59 CET 2021 Jan Staněk - 0.6.7-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..adc0d64 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cxx-gen-0.6.7.crate) = f9f797fad688b8e9cec5e93bb4cfea81b91d13cc62e4af85cd599ee1b37278fd5d3df95b18f453df305f756f628d0a04e2e2ec26fc9ba9e16a889f1e5bc85b0d