From 8357649420059ad7e3dbd47ca3a0aba770ec010a Mon Sep 17 00:00:00 2001 From: Nick Black Date: Tue, 2 Feb 2021 19:42:04 -0500 Subject: [PATCH] initial import 0.2.1 --- .gitignore | 1 + rust-cty.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 rust-cty.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..848bfa4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cty-0.2.1.crate diff --git a/rust-cty.spec b/rust-cty.spec new file mode 100644 index 0000000..2950e4b --- /dev/null +++ b/rust-cty.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate cty + +Name: rust-%{crate} +Version: 0.2.1 +Release: 1%{?dist} +Summary: Type aliases to C types like c_int for use with bindgen + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/cty +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Type aliases to C types like c_int for use with bindgen.} + +%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-MIT 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 + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Tue Dec 08 09:24:38 EST 2020 nick black - 0.2.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..9a51e2c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cty-0.2.1.crate) = 59f4d2cb3d9c3d25ea61963e73b41f19cdd595d29120c98d595114cf75b698b2464b74437114c194ecec0b841bdcb1a245ed570bf38b78c480926a6cb40d7333