From 96f0683717c2d7fb1b8d4b0aa99f5804e537e8ff Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Feb 15 2020 13:03:30 +0000 Subject: Initial import Signed-off-by: Igor Raits --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4576bf1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/phf_macros-0.7.24.crate diff --git a/rust-phf_macros0.7.spec b/rust-phf_macros0.7.spec new file mode 100644 index 0000000..190c02a --- /dev/null +++ b/rust-phf_macros0.7.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 13 +%bcond_with check +%global debug_package %{nil} + +%global crate phf_macros + +Name: rust-%{crate}0.7 +Version: 0.7.24 +Release: 1%{?dist} +Summary: Macros to generate types in the phf crate + +# Upstream license specification: MIT +# https://github.com/sfackler/rust-phf/pull/118 +License: MIT +URL: https://crates.io/crates/phf_macros +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Macros to generate types in the phf crate.} + +%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:59:23 CET 2020 Igor Raits - 0.7.24-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..5821cad --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (phf_macros-0.7.24.crate) = e295841ab2c1c68bccfca185a0991229bafa71df1f51e83d18cad52a089141761b62d118fd7e62e1816d7ab5825384d85b58d7bb6c47be09d19ff1cc75ad8bf3