diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..35e4700 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/equivalent-1.0.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 58e4d39..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-equivalent - -The rust-equivalent package diff --git a/rust-equivalent.spec b/rust-equivalent.spec new file mode 100644 index 0000000..36079db --- /dev/null +++ b/rust-equivalent.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate equivalent + +Name: rust-equivalent +Version: 1.0.0 +Release: %autorelease +Summary: Traits for key comparison in maps + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/equivalent +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Traits for key comparison in maps.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..fd9cb25 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (equivalent-1.0.0.crate) = 006fd57e6829b1dd9644abaa6f650098f22302e9882fa5b852c695aecdead8e353426626c56b772ab362303dff23777cc7012ec04f9618403d54f0e03e29278e