From 298cef3116bcc65c88039484653cc21f32af3c27 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 31 Oct 2023 22:28:09 +0100 Subject: [PATCH] Initial import (#2244275) --- .gitignore | 1 + README.md | 3 -- rust-powerfmt-macros.spec | 70 +++++++++++++++++++++++++++++++++++++++ rust2rpm.toml | 2 ++ sources | 1 + 5 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-powerfmt-macros.spec create mode 100644 rust2rpm.toml create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9728ecb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/powerfmt-macros-0.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 54a0bf2..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-powerfmt-macros - -The rust-powerfmt-macros package diff --git a/rust-powerfmt-macros.spec b/rust-powerfmt-macros.spec new file mode 100644 index 0000000..a344b3e --- /dev/null +++ b/rust-powerfmt-macros.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate powerfmt-macros + +Name: rust-powerfmt-macros +Version: 0.1.0 +Release: %autorelease +Summary: Procedural macros for powerfmt + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/powerfmt-macros +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Procedural macros for `powerfmt`. This crate is an implementation +detail and should not be relied upon directly.} + +%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}/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 + +%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/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..39cd3e1 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[package] +summary = "Procedural macros for powerfmt" diff --git a/sources b/sources new file mode 100644 index 0000000..d29af6c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (powerfmt-macros-0.1.0.crate) = 5cf1bf1146ef54ad9a89339627a75cc71879ada1bea0f32a75aa597446087a13de7da94f70d95cb56b919ec5798bd95a2c3ac39d1d5ef3b78925e3bc65301b37