diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0c1f720 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/phf_generator-0.7.24.crate diff --git a/rust-phf_generator0.7.spec b/rust-phf_generator0.7.spec new file mode 100644 index 0000000..86d4c91 --- /dev/null +++ b/rust-phf_generator0.7.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 13 +%bcond_with check +%global debug_package %{nil} + +%global crate phf_generator + +Name: rust-%{crate}0.7 +Version: 0.7.24 +Release: 1%{?dist} +Summary: PHF generation logic + +# Upstream license specification: MIT +# https://github.com/sfackler/rust-phf/pull/118 +License: MIT +URL: https://crates.io/crates/phf_generator +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +PHF generation logic.} + +%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 +%{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 +* Sat Feb 15 13:55:06 CET 2020 Igor Raits - 0.7.24-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..ebd450b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (phf_generator-0.7.24.crate) = 793d8d46fd2848f165099324ba36d6ee074a54e1c20236afa5c5429894bafd23740d1cb41f00b87e4d21fea1f78be7151ace7590e2e7cbc906d565e5eb7225f7