diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a63507a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/konst_proc_macros-0.2.11.crate diff --git a/rust-konst_proc_macros.spec b/rust-konst_proc_macros.spec new file mode 100644 index 0000000..2b32f5f --- /dev/null +++ b/rust-konst_proc_macros.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate konst_proc_macros + +Name: rust-%{crate} +Version: 0.2.11 +Release: %autorelease +Summary: Implementation detail of the konst crate + +# Upstream license specification: Zlib +License: zlib +URL: https://crates.io/crates/konst_proc_macros +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Implementation detail of the konst crate.} + +%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-ZLIB.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..338f2a7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (konst_proc_macros-0.2.11.crate) = d859b6ed34a54bf26ef2e82779e6b9661ddcfcdab0a18ac45e51cc8332c2ee04561f71942f7f39e07ca08814cce0b5cfbf35f859b27f7843f1612f43fa698a2d