From 0fe32a3e881d1f68ebe5229ab9b220f84478f824 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Wed, 29 Mar 2023 08:01:22 +0200 Subject: [PATCH] Initial import (phf_codegen 0.8 compat package) --- .gitignore | 1 + rust-phf_codegen0.8.spec | 68 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 70 insertions(+) create mode 100644 .gitignore create mode 100644 rust-phf_codegen0.8.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f272cc3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/phf_codegen-0.8.0.crate diff --git a/rust-phf_codegen0.8.spec b/rust-phf_codegen0.8.spec new file mode 100644 index 0000000..f91fb8f --- /dev/null +++ b/rust-phf_codegen0.8.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate phf_codegen + +Name: rust-phf_codegen0.8 +Version: 0.8.0 +Release: %autorelease +Summary: Codegen library for PHF types + +# https://github.com/sfackler/rust-phf/pull/118 +License: MIT +URL: https://crates.io/crates/phf_codegen +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Codegen library for PHF types.} + +%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 +# FIXME: no license files detected +%{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..c65643b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (phf_codegen-0.8.0.crate) = 6649779b50683b1b83c89da921ee52963fd517660540148e9ba4b59f9639c705e08400c4da972880ed161564816c7ad45704d6bd51d1429717137de8f46cb941