diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe4bf51 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rustc-hash-1.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 6458529..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-rustc-hash1 - -The rust-rustc-hash1 package diff --git a/rust-rustc-hash1.spec b/rust-rustc-hash1.spec new file mode 100644 index 0000000..4be9612 --- /dev/null +++ b/rust-rustc-hash1.spec @@ -0,0 +1,83 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate rustc-hash + +Name: rust-rustc-hash1 +Version: 1.1.0 +Release: %autorelease +Summary: Speed, non-cryptographic hash used in rustc + +# Upstream license specification: Apache-2.0/MIT +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/rustc-hash +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Speed, non-cryptographic hash used in rustc.} + +%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}/CODE_OF_CONDUCT.md +%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 + +%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 the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -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..f96ed5d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rustc-hash-1.1.0.crate) = 84e673ea9b046f7b989d47f2c4505557fbd5de991e6fc9f56a03605d40e0b4ba5427cd566954890153cc033ccbec6c984306634571935bfe0d4cdfbe56f39544