From ac46659abe26691afc95c37be2277101e1dcf6f8 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 12 Apr 2021 20:42:10 +0200 Subject: [PATCH] initial import (#1948152) --- .gitignore | 4 +++ .rust2rpm.conf | 6 ++++ README.md | 3 -- rust-ena.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 .rust2rpm.conf delete mode 100644 README.md create mode 100644 rust-ena.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b35b1f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/ena-0.14.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..2717226 --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,6 @@ +[DEFAULT] +unwanted-features = + congruence-closure + dogged + persistent + petgraph diff --git a/README.md b/README.md deleted file mode 100644 index e7338a8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-ena - -The rust-ena package diff --git a/rust-ena.spec b/rust-ena.spec new file mode 100644 index 0000000..931b1ac --- /dev/null +++ b/rust-ena.spec @@ -0,0 +1,88 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate ena + +Name: rust-%{crate} +Version: 0.14.0 +Release: 1%{?dist} +Summary: Union-find, congruence closure, and other unification code + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/ena +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Union-find, congruence closure, and other unification code. Based on code from +rustc.} + +%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-MIT +%doc README.md +%{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}+bench-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bench-devel %{_description} + +This package contains library source intended for building other packages +which use "bench" feature of "%{crate}" crate. + +%files -n %{name}+bench-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 +* Thu Apr 08 2021 Fabio Valentini - 0.14.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..37c28da --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ena-0.14.0.crate) = bcf842f8f5da8a7e9b8e51df50bdf3f00234534f1d59d96bb1e45b0ee4fa74847eb8b9b5ca615a66d84d23c629d7386f28294a5c64d22efdf2903bc89faab2d4