From e2f73f51678a69365e006fc04f8b87ab15de30cc Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 19 Feb 2020 16:14:58 -0800 Subject: [PATCH] Initial package --- .gitignore | 1 + rust-target-lexicon.spec | 87 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 89 insertions(+) create mode 100644 .gitignore create mode 100644 rust-target-lexicon.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed36910 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target-lexicon-0.10.0.crate diff --git a/rust-target-lexicon.spec b/rust-target-lexicon.spec new file mode 100644 index 0000000..5d3049d --- /dev/null +++ b/rust-target-lexicon.spec @@ -0,0 +1,87 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate target-lexicon + +Name: rust-%{crate} +Version: 0.10.0 +Release: 1%{?dist} +Summary: Targeting utilities for compilers and related tools + +# Upstream license specification: Apache-2.0 WITH LLVM-exception +License: ASL 2.0 with exceptions +URL: https://crates.io/crates/target-lexicon +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Targeting utilities for compilers and related 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 +%doc README.md +%license LICENSE +%{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 + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-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 +* Wed Feb 19 2020 Josh Stone - 0.10.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..e4c23e8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (target-lexicon-0.10.0.crate) = 8c7e312993d34ce75caa484e5bdb8b32d1df31b36647a478d51d4ccb1c90728f1fc9a3aef2a3da7f2c19032f8e4655d0c3ddcd1c21b623a42f2cd13eb290c203